Skip to content

Commit b297d34

Browse files
author
joeretro
committed
Added easy to use hamcrest-all.jar to distribution
1 parent 8dc3d8c commit b297d34

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

build.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,19 @@
107107
build/hamcrest-integration-${version}.jar"/>
108108
</target>
109109

110+
<target name="bigjar"
111+
depends="api, library, integration, generator"
112+
description="Build a single Jar (hamcrest-all.jar) that contains api, library, generator and integration.">
113+
<jar jarfile="build/hamcrest-all-${version}.jar" duplicate="preserve">
114+
<fileset dir="build/temp/build/hamcrest-api-${version}.jar.contents"/>
115+
<fileset dir="build/temp/build/hamcrest-library-${version}.jar.contents"/>
116+
<fileset dir="build/temp/build/hamcrest-generator-${version}.jar.contents"/>
117+
<fileset dir="build/temp/build/hamcrest-integration-${version}.jar.contents"/>
118+
</jar>
119+
</target>
120+
110121
<target name="package"
111-
depends="api,generator,library,integration,unit-test,examples"
122+
depends="api,generator,library,integration,bigjar,unit-test,examples"
112123
description="Package for distribution">
113124
<zip zipfile="build/hamcrest-${version}.zip">
114125
<zipfileset dir="." prefix="hamcrest-${version}">
@@ -119,8 +130,10 @@
119130
</zipfileset>
120131
<zipfileset dir="build" prefix="hamcrest-${version}">
121132
<include name="hamcrest-api-${version}.jar"/>
133+
<include name="hamcrest-generator-${version}.jar"/>
122134
<include name="hamcrest-library-${version}.jar"/>
123135
<include name="hamcrest-integration-${version}.jar"/>
136+
<include name="hamcrest-all-${version}.jar"/>
124137
</zipfileset>
125138
</zip>
126139
</target>

0 commit comments

Comments
 (0)