ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Fetzer <elstonk...@yahoo.com>
Subject property passed via ant to build file not being set
Date Mon, 12 Jul 2010 22:05:57 GMT
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


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message