Community
Participate
Working Groups
Ant build doesnt use global properties defined in Ant Runtime preferences Here is the sample: <target name="Create TelegramViewer.zip" depends="Create ucp.jar"> <copy todir="build" file="lib/log4j.jar"/> <copy todir="build" file="${eclipse.home}/plugins/org.eclipse.swt.win32_3.1.0.jar"/> ... </target> eclipse.home is defined in Ant Runtime preferenses. this sample gives error: BUILD FAILED Warning: Could not find file C:\eclipse\workspace\ucp\${eclipse.home}\plugins\org.eclipse.swt.win32_3.1.0.jar to copy. if make explicit <property name="eclipse.home" value="c:\eclipse"/> in target then build runs just fine.
*** Bug 93228 has been marked as a duplicate of this bug. ***
The properties that are available for a specific Ant build are designated on the Ant properties tab of that particular launch. Run As>Ant Build...>Properties tab When set to run in a separate JRE, eclipse.home is not set When set to run in the same JRE, eclipse.home is set To set which JRE your build occurs in see the Ant JRE tab for your launch. *** This bug has been marked as a duplicate of 78298 ***