Ok ${man2} has what I want. Though the JAR take wants a FILE for the
manifest. So how do I dump ${man2} temporarily to a file for the task. I
don't want
to overwrite MANIFEST1.MF or MANIFEST2.MF
Thanks!
<project>
<loadfile srcfile="MANIFEST1.MF" property="man1" />
<loadfile srcfile="MANIFEST2.MF" property="man2">
<filterchain>
<headfilter lines="15" skip="1" />
<concatfilter prepend="MANIFEST1.MF" />
</filterchain>
</loadfile>
<echo>First:</echo>
<echo>${man1}</echo>
<echo>Second:</echo>
<echo>${man2}</echo>
</project>
Juergen Hermann wrote:
On Fri, 08 Jul 2005 17:37:53 +1000, Kai Hendry wrote:
Seems easy enough.
use <loadfile> and a <tail> filter to load the ear manifest EXCEPT the first
line (<tail lines=-1 skip=1> I think). btw, you could also load this easy
manifest file as a property file, giving you a "class-path" property in
memory.
then use a 2nd filterchain to insert that property into the main manifest,
using a <replaceregex> to insert the loaded ear manifest at the place you
want.
Something specific to EAR
[EMAIL PROTECTED] SABSJ2EE]$ cat ./sabs/META-INF/MANIFEST.MF
Manifest-Version: 1.0
Class-Path: sabs-common.jar lots.jar more.jar jars.jar
With a base for the entire project:
[EMAIL PROTECTED] SABSJ2EE]$ cat ../SABSBuild/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.4
Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)
Build-Master: hendry
Name: common
Build-Version: 4.0
Build-Number: 3268
Build-Date: 08 Jul 2005
Vendor: SoltecSoftware.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ciao, Jürgen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]