Hi all,
I an trying to set a headless of a simple RCP. These are the relevant parts of my files
1. build.properties
product= ${env.WORKSPACE}/net.morcate.moviesviewer.releng/moviesviewer.product
......
pde.buildfile=${env.WORKSPACE}/net.morcate.moviesviewer.releng/productBuild.xml
2. build.xml
<!-- Import enviromental variables -->
<property environment="env" />
....
<target name="pdebuild" description="Build Eclipse Product">
<java jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar" fork="true" failonerror="true">
<arg line="-application org.eclipse.ant.core.antRunner " />
<arg line="-buildfile ${pde.buildfile} " />
<arg line="-DbuildDirectory=${env.WORKSPACE}/stage " />
</java>
</target>
where WORKSPACE is an environment variable. If I try to build the application I see that the value for "product" is not expanded. If I echo ${product} in the generateFeature target in productBuild.xml I get
[java] generateFeature:
[java] [echo]
${env.WORKSPACE}/net.morcate.moviesviewer.releng/moviesviewer.product
In the other hand if I enter the real path for the product file in build.properties
product= /home/joaquin/RCP/net.morcate.moviesviewer.releng/moviesviewer.product
everything goes perfect. So the "product" property is visible but not expanded. Any idea why the ${env.WORKSPACE} is not expanded?
Thank you very much.
Joaquin Morcate