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=21716>.
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=21716

trying to execute jars created with jar task fail because java do not get the 
manifest classpath

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2003-07-21 11:38 -------
The following works for me:
<project name="manifest" default="manifest">
  <target name="manifest">
    <mkdir dir="classes"/>
    <javac srcdir="src" destdir="classes"/>
    <jar  destfile="hello.jar">
      <fileset dir="classes" includes="Hello.class"/>
    </jar>
    <delete quiet="yes" file="callhello.jar"/>
    <jar  destfile="callhello.jar">
      <manifest>
        <attribute name="Class-Path" value="hello.jar"/>
        <attribute name="Main-Class" value="CallHello"/>
      </manifest>
      <fileset dir="classes" includes="CallHello.class"/>
    </jar>
    <exec executable="java" dir="${basedir}">
      <arg value="-jar"/>
      <arg value="callhello.jar"/>
    </exec>
  </target>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to