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 48330] New: taskdef task fails to include ant-contrib tasks unless environment classpath is set
Date Wed, 02 Dec 2009 18:21:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48330

           Summary: taskdef task fails to include ant-contrib tasks unless
                    environment classpath is set
           Product: Ant
           Version: 1.7.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jdbertron@gmail.com


The task: <taskdef resource="net/sf/antcontrib/antlib.xml"/> fails to find the
ant-contrib tasks, despite the ant-contrib.jar appearing in both the ant.lib
and java.class.path when running ant -diagnostics (below).
However, when setting the environment variable CLASSPATH to equal the value of
java.class.path, the taskdef succeeds.
NOTE: The new value reflected by java.class.path is now double the original
size and references ant-contrib.jar twice.

ant-contrib.jar (196528 bytes)
java.class.path :
/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/bsf.jar:/usr/share/java/ant/ant-apache-bsf.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/jakarta-commons-logging.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/jakarta-commons-net.jar:/usr/share/java/ant/ant-commons-net.jar:/usr/share/java/javamail.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/sh
 are/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/java/jdk1.5.0_16//lib/tools.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-jakarta-bcel.jar:/usr/share/ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant-apache-oro-1.7.1.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-commons-net-1.7.1.jar:/usr/share/ant/lib/ant-nodeps-1.7.1.jar:/usr/share/ant/lib/ant-antlr-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-regexp.jar:/usr/share/ant/lib/ant-apache-bsf-1.7.1.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-jsch-1.7.1.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-apache-regexp-1.7.1.jar:/usr/share/ant/lib/ant-swing-1.7.1.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-javamail.j
 ar:/usr/share/ant/lib/ant-jdepend-1.7.1.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-apache-resolver-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-oro.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-javamail-1.7.1.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-jakarta-log4j.jar:/usr/share/ant/lib/ant-apache-bcel-1.7.1.jar:/usr/share/ant/lib/ant-junit-1.7.1.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-commons-logging-1.7.1.jar:/usr/share/ant/lib/ant-trax-1.7.1.jar:/usr/share/ant/lib/ant-apache-log4j-1.7.1.jar:/usr/share/ant/lib/GenJar.jar


After exporting CLASSPATH:

ant-contrib.jar (196528 bytes)
java.class.path :
/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/bsf.jar:/usr/share/java/ant/ant-apache-bsf.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/jakarta-commons-logging.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/jakarta-commons-net.jar:/usr/share/java/ant/ant-commons-net.jar:/usr/share/java/javamail.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/sh
 are/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/java/jdk1.5.0_16//lib/tools.jar:/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/bsf.jar:/usr/share/java/ant/ant-apache-bsf.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/jakarta-commons-logging.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/jakarta-co
 mmons-net.jar:/usr/share/java/ant/ant-commons-net.jar:/usr/share/java/javamail.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/java/jdk1.5.0_16//lib/tools.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-jakarta-bcel.jar:/usr/share/ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant-apache-oro-1.7.1.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-commons-net-1.7.1.jar:/usr/share/ant/lib/ant-nodeps-1.7.1.jar:/usr/share/ant/lib/ant-antlr-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-regexp.jar:/usr/share/ant/lib/ant-apache-bsf-1.7.1.jar:/usr/share
 /ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-jsch-1.7.1.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-apache-regexp-1.7.1.jar:/usr/share/ant/lib/ant-swing-1.7.1.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-jdepend-1.7.1.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-apache-resolver-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-oro.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-javamail-1.7.1.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-jakarta-log4j.jar:/usr/share/ant/lib/ant-apache-bcel-1.7.1.jar:/usr/share/ant/lib/ant-junit-1.7.1.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-commons-logging-1.7.1.jar:/usr/share/ant/lib/ant-trax-1.7.1.jar:/usr/sha
 re/ant/lib/ant-apache-log4j-1.7.1.jar:/usr/share/ant/lib/GenJar.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-jakarta-bcel.jar:/usr/share/ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant-apache-oro-1.7.1.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-commons-net-1.7.1.jar:/usr/share/ant/lib/ant-nodeps-1.7.1.jar:/usr/share/ant/lib/ant-antlr-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-regexp.jar:/usr/share/ant/lib/ant-apache-bsf-1.7.1.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-jsch-1.7.1.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-apache-regexp-1.7.1.jar:/usr/share/ant/lib/ant-swing-1.7.1.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-jdepend-1.7.1.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-apache-resolver-1.7.1.jar:/usr/share/ant/lib/ant-jakarta-or
 o.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-javamail-1.7.1.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-jakarta-log4j.jar:/usr/share/ant/lib/ant-apache-bcel-1.7.1.jar:/usr/share/ant/lib/ant-junit-1.7.1.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-commons-logging-1.7.1.jar:/usr/share/ant/lib/ant-trax-1.7.1.jar:/usr/share/ant/lib/ant-apache-log4j-1.7.1.jar:/usr/share/ant/lib/GenJar.jar

-- 
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