ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Brown" <jsbr...@hotels.com>
Subject RE: Having problems with reference not being found in 1.6.2
Date Wed, 11 Aug 2004 19:04:32 GMT
We have a ton of <ant> tasks. We have a cmbuild.xml file that does the
following:

	<target name="build.hcom" depends="init, mks.tasks.hcom,
clean.base" if="doH
COM">
        	<ant dir="${hcomjava}/build" target="full-deploy">
            <property name="newLabel" value="${cm.build.newLabel}"/>
        	</ant>
    	</target>

which in turn does this in a build.xml file in another directory:
 
	<target name="hcom-build" if="doHCOM">
        	<!-- Build the jar, this will do a full clean build,
clean the jars, and
 copy the new jar. -->
        	<if>
            	<isset property="newLabel"/>
            	<then>
                	<!-- checkin new jar with label. -->
                	<ant dir="${hcom}/build" inheritAll="false"
target="build-deploy
">
                    	<property name="deploy.dir"
value="${base.deploy.dir}/HRN/li
b"/>
                    	<property name="newLabel" value="${newLabel}"/>
                	</ant>
            </then>
            <else>
                	<!-- do not checkin the jar. -->
                	<ant dir="${hcom}/build" inheritAll="false"
target="build-deploy
">
                    	<property name="deploy.dir"
value="${base.deploy.dir}/HRN/li
b"/>
                	</ant>
            </else>
        	</if>
        </target>	

which in turn does this in a targets.xml snippet in yet another
directory:

	<target name="compile" description="compiles all source into
${build}" depends="
init,doclasspath,wsdlcompile" unless="doWdslClient">
        	<ant antfile="${masterbuild.dir}/compile.xml"
dir="${src}" inheritall="f
alse">
                <property name="masterbuild.dir"
value="${masterbuild.dir}"/>
                <reference refid="compile.classpath"/>
                <property name="src" value="${src}"/>
                <property name="build" value="${build}"/>
        	</ant>
        	<antcall target="jar"/>
	</target>

which in turn does the compile task I spoke of in the initial message in
a compile.xml file:

	<javac debug="${compile.debug}" srcdir="${src}"
             destdir="${build}" target="${javac.target}">
            <classpath refid="compile.classpath"/>
      </javac>

>From your reply I am supposing that something has changed in the <ant>
task. What is the difference? I make a lot of <ant> calls in my scripts,
so this is likely to blow me up in a lot a spots.

Thanks.
JB
	
> 
> If your build file doesn't have any <ant> or <antcall>, then 
> this should
> work in Ant 1.6.2. What you describe sounds like a regression, but
> please provide more context to access it fully. We'd need to know the
> sequence of targets called that defines the ID'd <fileset> and the
> <path> and the one leading to <javac> using the Path id. If you could
> boil it down to a very simple build that also fails with 
> 1.6.2 but works
> with 1.5.4, that would be even better. Thanks, --DD
> 

Mime
View raw message