PDA

View Full Version : Test if Build Target includes embedded jre



dziants
05-23-2012, 09:34 AM
How can one write a rule to check if ones Build Target includes embedded jvm or not? Is there a variable that one can test?

Many thanks
David

madhavbantwal
05-24-2012, 12:27 AM
Hi dziants,

Can you please be more elaborative on your requirement

Thanks,
MAdhav Pai

dziants
05-24-2012, 02:46 AM
I have already worked out a reply to my question :)
The variable: $INSTALLER_LAUNCH_DIR$
contains the path to the directory of the build for this target and if this is a non embedded JVM build, the path string will end with NoVM .

I can thus check this variable using "ends in" test.

Has anyone a better solution?

dziants
05-24-2012, 09:30 AM
I actually found that "end with" didn' t work - possibly because of hidden characters at the end of the string. I thus used "contains" to check whether the string noVM is in the path.

David