VMware Cloud Community
AnonymousDefaul
Enthusiast
Enthusiast

use installer variable in CDROM directory definition

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?

Labels (1)
0 Kudos
1 Reply
AnonymousDefaul
Enthusiast
Enthusiast

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 
0 Kudos