ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Lewis" <>
Subject RE: property passed via ant to build file not being set
Date Tue, 13 Jul 2010 10:09:53 GMT

I am not clear on what you want.  Are you wanting the label to be build.1 or not?

Cc by design sets a property called label.  From

The default label incrementer (<labelincrementer>) uses the format string.number, providing
the initial default label of build.1.

-----Original Message-----
From: Eric Fetzer [] 
Sent: Monday, July 12, 2010 6:06 PM
To: Ant Users
Subject: property passed via ant to build file not being set

OK, I am totally stumped!  I have some behavior that works correctly when I call 
from the command line, but differently when cruise control calls it.  I don't 
understand.  Here's the skinny:

1)  cc calls my build.xml file
2)  my build file calls another build file
3)  the other build file calls another build file like this:

      <echo>The label I'm going to pass is ${st.label}</echo>
      <ant antfile="${dir.webmethods}/IntegrationServer/build/jcode.xml" 
        <property name="label" value="${st.label}"/>
        <property name="checkoutbylabel" value="true"/>
        <property name="include.nwcg_adapter_connections" 

4) note that the echo statement produces the correct label
5) the first thing the jcode.xml file puts out is a echo:

    <echo message="label is ${label}"/>

6) and label is set to "build.1"

Now when this exact same build process is called directly from ant rather than 
cc, label is correct in jcode.xml.  Anybody have any clue what's going on here.



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

View raw message