Commits

skanjo  committed 4ec92fc

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

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

  • Participants
  • Parent commits 3c017b4

Comments (0)

Files changed (1)

File 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">