Bug 20778 - using ant with a propertyfile from within eclipse
Summary: using ant with a propertyfile from within eclipse
Status: RESOLVED DUPLICATE of bug 25133
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on: 24318
Blocks:
  Show dependency tree
 
Reported: 2002-06-21 04:47 EDT by Roel De Meester CLA
Modified: 2002-10-25 11:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roel De Meester CLA 2002-06-21 04:47:42 EDT
Similar to bug 13130   This bug is still not fixed!!!

I use build 20020618.
in 
preferences/external tools/ant 
i'v removed the ant.jar and optional.jar and replaced them 
by their counterparts from ant1.5beta2. But i don't know if this is relevant.

I've a 
build.xml with a build.properties in the same directory
build.propties contains
--------------------------------------------------

someproperty = OKIDOKI
--------------------------------------------------

build task contains
--------------------------------------------------
<?xml version = '1.0' encoding = 'ISO-
8859-1' ?>
<project name="test" default="ECHO">
  <target name="ECHO">
    <echo>    

someproperty=${someproperty}
basedir=${basedir}
ant.file=${ant.file}
ant.version=${ant.version}
ant.project.name=${ant.project.name}
ant.java.version=${ant.java.version}
 
   </echo>
  </target>  
</project>
--------------------------------------------------


If I than right click one the build.xml, select the 
echo task
and enter following in arguments
-propertyfile build.properties

than i get 
this result
**********
Arguments: -logfile build.log 

    

someproperty=${someproperty}
basedir=D:\views\test\src
ant.file=d:\views\test\src\build.xml
ant.version=Ant 
version 1.5Beta2 compiled on May 31 
2002
ant.project.name=test
ant.java.version=1.3
*****************
If i so the same 
on the command line 
shell>  ant -propertyfile build.properties
i 
get
******************
Buildfile: build.xml

ECHO:
     [echo]
     [echo] 
someproperty=OKIDOKI
     [echo] basedir=D:\views\test\src
     [echo] 
ant.file=D:\views\test\src\build.xml
     [echo] ant.version=Apache Ant version 1.5Beta2 
compiled on May 31 2002
     [echo] ant.project.name=test
     [echo] ant.java.version=1.3
     
[echo]

BUILD SUCCESSFUL
Total time: 1 second
*********************



SO i 
guess the antrunner just doesn't use the arguments?
Comment 1 Rodrigo Peretti CLA 2002-06-21 14:40:58 EDT
Could you try setting the value in the argumment to see if this is a 
regression of bug 13130?
   -Dsomeproperty=OKIDOKI
Comment 2 Rodrigo Peretti CLA 2002-06-21 14:47:02 EDT
Is the argument -propertyfile new to 1.5? If so, that is the problem and will 
be addressed once we migrate to Ant 1.5 (after 2.0).
Comment 3 Roel De Meester CLA 2002-06-21 15:24:39 EDT
The setting propertyfile is indeed new to the 1.5
I'll try to do the  -
Dsomeproperty=OKIDOKI
Back later
Comment 4 Rodrigo Peretti CLA 2002-06-25 15:56:11 EDT
Defer after 2.0. Please reopen if you find it is a regression.
Comment 5 DJ Houghton CLA 2002-09-10 16:56:37 EDT
Reopening for investigation now that Ant 1.5 is released.
Comment 6 Roel De Meester CLA 2002-09-11 03:58:43 EDT
OK, i'm following the progress .. :)

Comment 7 Darin Swanson CLA 2002-10-25 11:42:37 EDT
This bug has been fixed through fixing of several others.
See bug 23924 , bug 25133.

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