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

manifest task munges classpath entries

           Summary: manifest task munges classpath entries
           Product: Ant
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When creating an executable JAR, the resultant classpath entry in the manifest 
is unreadable by the JDK/JRE.

I've seen the bug reports that have been marked as being invalid due to the 
spec, but it's still not being handled correctly.  I'm not sure if it's a case 
of missing the right line continuation, or the word breaking.

here's the task snippet

<fileset id="tempt" dir="${neweden.client-bld.dir}" includes="*.jar" />

<path id='client.classpath.id'>
        <fileset dir="${neweden.client-bld.dir}" includes="*.jar" />
</path>

<pathconvert 
  pathsep=" " 
  refid='client.classpath.id' 
  property='client.classpath'>

   <map from="C:\source\issues\build\client\" 
        to=""/>
</pathconvert>

<echo> ${client.classpath} </echo>

 <jar
      destfile="/source/issueclient2.jar"
      basedir="${neweden.client-bld.dir}"
      compress="false" >

      <manifest>
        <attribute name="Class-Path" value="${client.classpath}"/>
        <attribute name="Main-Class" value="com.foo.MainClass"/>
      </manifest>


I will attempt to attach the physical file, but just in case, I've pasted it 
here, placing an asterisk at the end of the line for each line:

Manifest-Version: 1.0*
Ant-Version: Apache Ant 1.6.0*
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)*
Main-Class: com.foo.MainClass*
Class-Path: JCalendar4.jar MDateSelector.jar forms-1.0.2.jar j2ee.jar *
 jboss-client.jar jboss-common-client.jar jboss-j2ee.jar jbosssx-clien*
 t.jar jnp-client.jar log4j.jar*



output from java -version:

java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

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

Reply via email to