ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Yarbrough" <JYarbro...@ritchiecapital.com>
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}"
       eol="lf"
       includes="**/*.xml **/*.props **/*.mf **/*.MF"/>
  
			
		<jar jarfile="${outputdir}/servercoreEJB.jar" compress="FALSE"
			manifest="./servercore/resources/ejb-jar/META-INF/MANIFEST.MF">
			<fileset dir="." includes="**/*ejb-jar.xml" />
			<fileset dir="${outputdir}/classes" excludes="**/jndi/*.class " />
			</jar>
			
---------------------------
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
file.


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.

-Jay

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message