defaultManifest.mf is not included in the ant.jar ... so it is not possible to
generate any jarfile without setting the manifest attribute
here is the patch (i took it from ant1.2 sources ;-)
martin
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-ant/build.xml,v
retrieving revision 1.112
diff -u -r1.112 build.xml
--- build.xml 2001/01/23 14:06:40 1.112
+++ build.xml 2001/01/23 16:41:36
@@ -199,9 +199,6 @@
<replace file="${build.src}/org/apache/tools/ant/Main.java"
token="@DATE@"
value="${date}"/>
- <replace file="${build.src}/org/apache/tools/ant/defaultManifest.mf"
- token="@VERSION@"
- value="${version}"/>
</target>
@@ -244,6 +241,15 @@
<exclude name="${optional.package}/perforce/*.java"
unless="jakarta.oro.present" />
<exclude name="${optional.package}/sound/*.java" unless="jmf.present" />
</javac>
+
+ <filter token="VERSION" value="${version}" />
+ <copy todir="${build.classes}"
+ overwrite="true"
+ filtering="on">
+ <fileset dir="${src.dir}/main">
+ <include name="**/defaultManifest.mf" />
+ </fileset>
+ </copy>
</target>
The command completed successfully.