ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Yarbrough" <>
Subject Jar task, manifest files and CRLF
Date Thu, 19 Sep 2002 14:51:09 GMT
I appreciate the patience of the folks on the list, but I've still got a problem with this...

I'm currently using the following code, to create an EJB jar file, and use a pre-existing
manifest file.
 <fixcrlf srcdir="./${product}"
       includes="**/*.xml **/*.props **/*.mf **/*.MF"/>
		<jar jarfile="${outputdir}/servercoreEJB.jar" compress="FALSE"
			<fileset dir="." includes="**/*ejb-jar.xml" />
			<fileset dir="${outputdir}/classes" excludes="**/jndi/*.class " />
When I check the file, "./servercore/resources/ejb-jar/META-INF/MANIFEST.MF", it appears the
fixcrlf task 
has worked just fine.  It shows no ^M characters.  However, when I unpack the jar file.  The
enclosed manifest, has the correct data, but it also has ^M characters.

It would appear that ANT is opening the file, adding the "Created-By" line and closing the
file in the current OS (Win32), and in the process assumes I want the ^M's put back in the

Manifest-Version: 1.0^M
Created-By: Apache Ant 1.5.1beta1^M
Class-Path: servercore.jar quantapi.jar^M
Class-Path: olympuscore.jar^M

Is there a way to keep Ant from doing this, so I can create a jar with the appropriate manifest?

Thanks in advance.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message