ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6921] New: - java.class.path not updated with Class-Path from Manifest of jar used in user's defined tasks
Date Wed, 06 Mar 2002 15:34:34 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: francis.andre@e-xmlmedia.fr


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message