DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6921>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6921 java.class.path not updated with Class-Path from Manifest of jar used in user's defined tasks Summary: java.class.path not updated with Class-Path from Manifest of jar used in user's defined tasks Product: Ant Version: 1.4.1 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hello When using a user's defined task, it seems that the Class-Path specified in the Manifest of cascaded jars are not taken into account in the global classpath of the JVM. When using directly the JVM without ant as in the following bat: @setlocal set classpath=../../dist/HEAD/repository/jar/repository.jar java com.exmlmedia.repository.helpers.XMLManager %1 %2 %3 %4 %5 %6 %7 %8 @endlocal the JVM include all manifests Class-Path When using ant with manager as target as in: <?xml version="1.0" encoding="UTF-8"?> <!-- $Id: build.xml,v 1.53 2002/03/06 14:20:44 francis Exp $ --> <project basedir="." default="xquery" name="repository"> <path id="dist.build.class.path"> <pathelement path="../build"/> <pathelement location="../../dist/HEAD/repository/jar/repository.jar"/> </path> <path id="dist.run.class.path"> <pathelement path="build"/> <path refid="dist.build.class.path"/> </path> <taskdef classname="com.exmlmedia.repository.helpers.XMLManager" name="manager"> <classpath refid="dist.run.class.path"/> </taskdef> <target name="manager" depends="compile" > <manager> <classpath refid="dist.run.class.path"/> </manager> </target> </project> one got: C:\exmlmedia\qa\repositoryV2\build.xml:78: Could not create task of type: manage r due to java.lang.NoClassDefFoundError: com/exmlmedia/xml/serialize/CompactXMLS erializer -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
