You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by wg...@apache.org on 2005/09/15 06:27:58 UTC

svn commit: r289143 - /jakarta/velocity/core/trunk/build/build.xml

Author: wglass
Date: Wed Sep 14 21:27:54 2005
New Revision: 289143

URL: http://svn.apache.org/viewcvs?rev=289143&view=rev
Log:
Added manifest info to jar files.  VELOCITY-147.

Modified:
    jakarta/velocity/core/trunk/build/build.xml

Modified: jakarta/velocity/core/trunk/build/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/build/build.xml?rev=289143&r1=289142&r2=289143&view=diff
==============================================================================
--- jakarta/velocity/core/trunk/build/build.xml (original)
+++ jakarta/velocity/core/trunk/build/build.xml Wed Sep 14 21:27:54 2005
@@ -276,11 +276,22 @@
 
     <jar jarfile="${build.dir}/${project}-dep-${version}.jar">
 
+      <metainf dir=".." includes="LICENSE.txt"/>
       <fileset dir="${build.dest}">
         <exclude name="**/package.html"/>
         <exclude name="org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.class"/>
       </fileset>
-     
+      <manifest>
+        <attribute name="Created-By" value="Apache Ant"/>
+        <attribute name="Package" value="org.apache.velocity"/>
+        <attribute name="Build-Jdk" value="${java.version}"/>
+        <attribute name="Extension-Name" value="${project}"/>
+        <attribute name="Specification-Title" value="Velocity is a Java-based template engine" />
+        <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Title" value="org.apache.velocity"/>
+        <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Version" value="${version}"/>
+      </manifest>
     </jar>
   
   </target>
@@ -293,11 +304,22 @@
          
     <jar jarfile="${build.dir}/${project}-${version}.jar">
 
+      <metainf dir=".." includes="LICENSE.txt"/>
       <fileset dir="${build.dest}">
         <exclude name="**/package.html"/>
         <exclude name="org/apache/velocity/runtime/resource/loader/DataSourceResourceLoader.class"/>
       </fileset>
-     
+      <manifest>
+        <attribute name="Created-By" value="Apache Ant"/>
+        <attribute name="Package" value="org.apache.velocity"/>
+        <attribute name="Build-Jdk" value="${java.version}"/>
+        <attribute name="Extension-Name" value="${project}"/>
+        <attribute name="Specification-Title" value="Velocity is a Java-based template engine" />
+        <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Title" value="org.apache.velocity"/>
+        <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Version" value="${version}"/>
+      </manifest>
     </jar>
   
   </target>
@@ -315,10 +337,23 @@
 
     <delete dir="${build.dest}/meta-inf" quiet="true"/>
 
-    <jar jarfile="${build.dir}/${project}-J2EE-dep-${version}.jar"
-      basedir="${build.dest}"
-      excludes="**/package.html"
-    />
+    <jar jarfile="${build.dir}/${project}-J2EE-dep-${version}.jar">
+      <metainf dir=".." includes="LICENSE.txt"/>
+      <fileset dir="${build.dest}">
+        <exclude name="**/package.html"/>
+      </fileset>
+      <manifest>
+        <attribute name="Created-By" value="Apache Ant"/>
+        <attribute name="Package" value="org.apache.velocity"/>
+        <attribute name="Build-Jdk" value="${java.version}"/>
+        <attribute name="Extension-Name" value="${project}"/>
+        <attribute name="Specification-Title" value="Velocity is a Java-based template engine" />
+        <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Title" value="org.apache.velocity"/>
+        <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Version" value="${version}"/>
+      </manifest>
+    </jar>
   
   </target>
 
@@ -329,10 +364,23 @@
   <!-- =================================================================== -->
   <target name="jar-J2EE" depends="compile-J2EE" if="J2EE.present">
         
-    <jar jarfile="${build.dir}/${project}-J2EE-${version}.jar"
-      basedir="${build.dest}"
-      excludes="**/package.html"
-    />
+    <jar jarfile="${build.dir}/${project}-J2EE-${version}.jar">
+      <metainf dir=".." includes="LICENSE.txt"/>
+      <fileset dir="${build.dest}">
+        <exclude name="**/package.html"/>
+      </fileset>
+      <manifest>
+        <attribute name="Created-By" value="Apache Ant"/>
+        <attribute name="Package" value="org.apache.velocity"/>
+        <attribute name="Build-Jdk" value="${java.version}"/>
+        <attribute name="Extension-Name" value="${project}"/>
+        <attribute name="Specification-Title" value="Velocity is a Java-based template engine" />
+        <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Title" value="org.apache.velocity"/>
+        <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+        <attribute name="Implementation-Version" value="${version}"/>
+      </manifest>
+    </jar>
   
   </target>
 



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