ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50645] New: Order of classpathref and taskdef
Date Tue, 25 Jan 2011 06:33:39 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50645

           Summary: Order of classpathref and taskdef
           Product: Ant
           Version: 1.8.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Build Process
        AssignedTo: notifications@ant.apache.org
        ReportedBy: ashish.soni@siemens.com


Below Sample BUILD FILE is working fine with Apche ANT 1.7.1 but not Apache ANT
1.8.2.

Sample BUILD FILE:
<project name="ReferenceCheck" default="TestRef" basedir="D:\testView\myvob">   
    <property file="${basedir}/build/build-common.properties" />
    <property file="${basedir}/build/versions.properties" />

<!—
Here taskdef is defined before path id that currently we have in build. 
This is working fine with Apache ANT 1.7.1 but if we switch to Apache ANT 1.8.2
this will create a problem
and we are getting the error for classpathref is not found i.e.
catalina-ant.path.
 -->
    <taskdef name="install" classname="org.apache.catalina.ant.InstallTask"
classpathref="catalina-ant.path" />

    <path id="catalina-ant.path">
        <pathelement path="${catalina-ant.path}" />
    </path>    
    <target name="TestRef">
        <echo message="Hello!!"/>
        <echo message="${catalina-ant.path}"/>
    </target>
</project>

RESULT USING Apache ANT 1.8.2
D:\testView\myvob\build>D:\testView\myvob\extern\mix\java\ant\apache-ant-1.8.2\bin\ant
-f checkReference.xml
Buildfile: D:\testView\myvob\build\checkReference.xml

BUILD FAILED
D:\testView\myvob\build\checkReference.xml:5: Reference catalina-ant.path not
found.

Total time: 0 seconds

D:\testView\myvob\build>

RESULT USING Apache ANT 1.7.1

D:\testView\myvob\build>D:\testView\extern\mix\java\ant\apache-ant-1.7.1\bin\ant
-f checkReference.xml
Buildfile: checkReference.xml
Warning: Reference catalina-ant.path has not been set at runtime, but was found
during
build file parsing, attempting to resolve. Future versions of Ant may support
 referencing ids defined in non-executed targets.

TestRef:
     [echo] Hello!!
     [echo]
D:\testView\myvob/../extern/mix/java/tomcat/tomcat-6.0.20/lib/catalina-ant.jar

BUILD SUCCESSFUL
Total time: 0 seconds
D:\testView\myvob\build>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
Mime
View raw message