Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 93227 - [3.1M6] Ant build doesnt use global properties defined in Ant Runtime preferences
Summary: [3.1M6] Ant build doesnt use global properties defined in Ant Runtime prefere...
Status: RESOLVED DUPLICATE of bug 78298
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 93228 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-29 01:39 EDT by Alexander Mitin CLA
Modified: 2005-04-29 09:58 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mitin CLA 2005-04-29 01:39:55 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:08 EDT
*** Bug 93228 has been marked as a duplicate of this bug. ***
Comment 2 Darin Swanson CLA 2005-04-29 09:58:07 EDT
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 ***