ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knuplesch, Jürgen <>
Subject Refid and antcontrib if
Date Wed, 05 Dec 2007 13:39:01 GMT

I use antcontribs "if" and have the following strange effect:

If I define a refid in antfile-passage, that is never reached (using if, else) ant then
Try to access the refid it has the value that ist set in the not reached code!

Is this correct behaviour?

My Antfile looks like:
dope.fix is false

    <property name="dope.fix" value="false"/>
        <equals arg1="${dope.fix}" arg2="true" />
        <path id="junit.classpath">
          <pathelement location="${dope.javac.dest}"/>
          <pathelement location="${cvs.fixexportboxbase}/config"/>
          <pathelement location="${cvs.exportboxbase}/DOPE/lib/dope.jar"/>
        <echo>Kein Fix, also Klassenpfad JUnit nicht erweitern</echo>
    <echo>Klassenpfad in junit: classpath=${toString:junit.classpath}</echo>

The output looks like:
     [echo] Kein Fix, also Klassenpfad JUnit nicht erweitern
     [echo] Klassenpfad in junit: classpath=D:\nightlybuild\exportbaseHEAD\DOPE\code;D:\nightlybuild\exportbaseHEAD_FIX\config;D:\nightlybuild\exportbaseHEAD\DOPE\lib\dope.jar



Jürgen Knuplesch          
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message