ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Lewis" <JohnW.Le...@sas.com>
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 http://cruisecontrol.sourceforge.net/main/configxml.html:

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



-----Original Message-----
From: Eric Fetzer [mailto:elstonkers@yahoo.com] 
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" 
dir="${dir.webmethods}/IntegrationServer/build" 
output="${log.webmethods.jcode}">
        <property name="label" value="${st.label}"/>
        <property name="checkoutbylabel" value="true"/>
        <property name="include.nwcg_adapter_connections" 
value="${include.nwcg_adapter_connections}"/>
      </ant>

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.

Thanks,
Eric


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message