I'm trying to use the folder <name>prefix_dest</name> as the variable ${prefix_dest} within a component, but it doesn't seem to work. Should it?

asked 19 Oct '12, 21:48

tahoar's gravatar image

accept rate: 42%

Some tags cannot contain variables. Names of components, folders or parameters cannot contain variables.

One reason is that because their value is sometimes read before any variables are set or when doing unique name validations.


answered 21 Oct '12, 13:28

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

Thanks wojciechka, but that's not exactly what I meant. In reverse, it is possible to refer to folder by its name as a variable within the component? For example, where the value of <name>prefix_dest</name> is <destination>/usr/local/lib/myfolder</destination>, I want to use the variable ${prefix_dest} to refer to that destination from in the component. This does not seem to work.

(26 Oct '12, 20:34) tahoar

It is not possible to access destination for a folder this way. However, it can be done the opposite way - specify ${prefix_dest} as <destination> and then have prefix_dest parameter or set it via actions to be able to access that folder's destination directory from other actions.

(30 Oct '12, 04:24) wojciechka ♦♦

Yes, I've done that. It just gets complicated with 12 subcomponents in one project.

(30 Oct '12, 11:11) tahoar
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 19 Oct '12, 21:48

Seen: 1,138 times

Last updated: 30 Oct '12, 11:11