ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19737] - <loadproperties> does not load updated file in same target
Date Wed, 07 May 2003 20:13:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19737>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19737

<loadproperties> does not load updated file in same target





------- Additional Comments From mhilpert@gmx.de  2003-05-07 20:13 -------
nope, as the code states:

    <target name="build.number++" depends="info" description="increase build 
number">
        <!-- increase build number in file build.number: -->
        <buildnumber file="${java}${fs}build.number"/>
        
        <!-- get new build number: -->
        <loadproperties srcfile="${java}${fs}build.number"/>
        <property name="bn" value="BUILD_NUMBER = ${build.number}"/>
        <!-- update build number in Version class: -->
        <replace file="${src}${fs}de${fs}icomps${fs}amc${fs}amr${fs}
Version.java" token="${oldbn}" value="${bn}"/>
    </target>

the property is just loaded once (this is the only target in the ant build file 
that handles with the build.number). so the property is just set once, after the 
<buildnumber> task was called. and i assume that this <buildnumber> task does

not have an internal property "build.number" ... ?

Mime
View raw message