I would like to use installer variable I have defined in pre-build action as part of CDROM directory definition, for example: I have defined timestamp and I would like the CDROM directory be specified as ${project.vendor}-${product_version}-${product_shortname}-${timestamo} Directory that is created has "unknown variable timestamp". It looks like directory is created before the variable is defined. Is there a way to implement the described above configuration?

asked 13 May '12, 03:53

NicoleH's gravatar image

NicoleH
66202023
accept rate: 50%


Creating the CDROM directory happens before preBuild actions are run - this is because <preBuildActionList> actions are run for each platform being built, which requires <cdromDirectory> created before that.

What you can do is set project.cdromDirectory from command line when making a custom build - for example:

$ bin/builder build project.xml --setvars project.cdromDirectory=path/to/custom-directory
link

answered 14 May '12, 05:14

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Unfortunatelly it will work only from the command line but not from GUI. We need to find a solution for GUI.

(16 May '12, 02:11) NicoleH

You can also pass the --setvars arguments in GUI mode as: bin/builder --setvars project.cdromDirectory=path/to/custom-directory

(30 May '12, 14:41) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×41
×15

Asked: 13 May '12, 03:53

Seen: 1,197 times

Last updated: 30 May '12, 14:41