Anonymous avatar Anonymous committed 4ec92fc

Implemented jar packaging of classes, sources, and test classes.

git-svn-id: http://svn.opensymphony.com/svn/propertyset/branches/ivy_build@200 bf3cbcdd-1c1a-0410-9a68-d6f521e3fa7b

Comments (0)

Files changed (1)

ant/package-plugin.xml

      ********************************************************************** -->
 
 	<target name="package:jar">
-		<ivy:retrieve conf="runtime" />
+		<ivy:retrieve conf="runtime" pattern="${build.lib.pattern}" sync="true" />
+
+		<jar basedir="${project.build.output.dir}" jarfile="${project.build.dir}/${project.build.final.name}.jar">
+			<manifest>
+				<attribute name="Implementation-Title" value="${project.artifact.id}"/>
+				<attribute name="Implementation-Version" value="${project.version}"/>
+				<attribute name="Implementation-Vendor" value="OpenSymphony"/>
+			</manifest>
+		</jar>
 	</target>
 
 	<target name="package:test-jar">
+		<jar basedir="${project.build.test.output.dir}" jarfile="${project.build.dir}/${project.build.final.name}-tests.jar">
+			<manifest>
+				<attribute name="Implementation-Title" value="${project.artifact.id}"/>
+				<attribute name="Implementation-Version" value="${project.version}"/>
+				<attribute name="Implementation-Vendor" value="OpenSymphony"/>
+			</manifest>
+		</jar>
 	</target>
 
 	<target name="package:source-jar">
+		<jar basedir="${project.build.source.dir}" jarfile="${project.build.dir}/${project.build.final.name}-sources.jar">
+			<manifest>
+				<attribute name="Implementation-Title" value="${project.artifact.id}"/>
+				<attribute name="Implementation-Version" value="${project.version}"/>
+				<attribute name="Implementation-Vendor" value="OpenSymphony"/>
+			</manifest>
+		</jar>
 	</target>
 
 	<target name="package:help">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.