You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/05/19 23:50:53 UTC

svn commit: r946425 - /jakarta/bsf/branches/bsf3.x/distribution/build.xml

Author: sebb
Date: Wed May 19 21:50:53 2010
New Revision: 946425

URL: http://svn.apache.org/viewvc?rev=946425&view=rev
Log:
Tidy up bsf-all jar; add Main-Class for Utils

Modified:
    jakarta/bsf/branches/bsf3.x/distribution/build.xml

Modified: jakarta/bsf/branches/bsf3.x/distribution/build.xml
URL: http://svn.apache.org/viewvc/jakarta/bsf/branches/bsf3.x/distribution/build.xml?rev=946425&r1=946424&r2=946425&view=diff
==============================================================================
--- jakarta/bsf/branches/bsf3.x/distribution/build.xml (original)
+++ jakarta/bsf/branches/bsf3.x/distribution/build.xml Wed May 19 21:50:53 2010
@@ -29,11 +29,27 @@
         <unzip src="${basedir}/../bsf-engines/target/bsf-engines-${bsf.version}.jar" dest="${basedir}/target/bsf-all" overwrite="false"/>
         <unzip src="${basedir}/../bsf-utils/target/bsf-utils-${bsf.version}.jar" dest="${basedir}/target/bsf-all" overwrite="false"/>
 
-        <copy file="${basedir}/src/bin/LICENSE" tofile="${basedir}/target/bsf-all/LICENSE" overwrite="true" />
-        <copy file="${basedir}/src/bin/NOTICE" tofile="${basedir}/target/bsf-all/NOTICE" overwrite="true" />
-
-        <zip destfile="${basedir}/target/bsf-all-${bsf.version}.jar" basedir="${basedir}/target/bsf-all" />
-    	
+        <!-- Proper versions will be created in the META-INF directory -->
+    	<delete file="${basedir}/target/bsf-all/LICENSE"/>
+        <delete file="${basedir}/target/bsf-all/NOTICE"/>
+
+        <copy file="${basedir}/src/bin/LICENSE" tofile="${basedir}/target/bsf-all/META-INF/LICENSE" overwrite="true" />
+        <copy file="${basedir}/src/bin/NOTICE" tofile="${basedir}/target/bsf-all/META-INF/--NOTICE" overwrite="true" />
+
+        <!-- Now package all that up into a single jar -->
+        <jar destfile="${basedir}/target/bsf-all-${bsf.version}.jar" basedir="${basedir}/target/bsf-all">
+            <manifest>
+                <attribute name="Main-Class" value="org.apache.bsf.Main"/>
+            	<attribute name="Extension-Name" value="org.apache.bsf"/>
+            	<attribute name="Implementation-Title" value="Apache BSF"/>
+            	<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+            	<attribute name="Implementation-Vendor-Id" value="org.apache"/>
+            	<attribute name="Implementation-Version" value="${bsf.version}"/>
+            	<attribute name="X-Compile-Source-JDK" value="${maven.compile.source}"/>
+            	<attribute name="X-Compile-Target-JDK" value="${maven.compile.target}"/>
+            </manifest>
+    	</jar>
+        
     	<!-- Remove work directory -->
     	<delete dir="${basedir}/target/bsf-all"/>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org