Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 93228

Summary: [3.1M6] Ant build doesnt use global properties defined in Ant Runtime preferences
Product: [Eclipse Project] Platform Reporter: Alexander Mitin <diam>
Component: AntAssignee: Platform-Ant-Inbox <platform-ant-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alexander Mitin CLA 2005-04-29 01:52:50 EDT
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.
Comment 1 Darin Swanson CLA 2005-04-29 09:53:07 EDT

*** This bug has been marked as a duplicate of 93227 ***