|
43 | 43 | <generate-module-factory modulename="hamcrest-core" configurationfile="core-matchers.xml" targetclass="org.hamcrest.CoreMatchers"/> |
44 | 44 | <jar-module modulename="hamcrest-core"/> |
45 | 45 | <test-module modulename="hamcrest-core"/> |
46 | | - |
47 | | - <!-- Bundle api into core jar --> |
48 | | - <copy file="build/hamcrest-core-${version}.jar" tofile="build/hamcrest-core-${version}-nodep.jar"/> |
49 | | - <jar jarfile="build/hamcrest-core-${version}.jar" duplicate="preserve"> |
50 | | - <zipfileset src="build/hamcrest-api-${version}.jar"/> |
51 | | - <zipfileset src="build/hamcrest-core-${version}-nodep.jar"/> |
52 | | - </jar> |
53 | 46 | </target> |
54 | 47 |
|
55 | 48 | <target name="library" depends="core" description="Build library of matchers"> |
56 | | - <path id="cp-hamcrest-library-main" path="build/hamcrest-core-${version}.jar"/> |
| 49 | + <path id="cp-hamcrest-library-main" path="build/hamcrest-api-${version}.jar;build/hamcrest-core-${version}.jar"/> |
57 | 50 | <path id="cp-hamcrest-library-test" path="lib/integration/junit-dep-4.10.jar;build/hamcrest-core-${version}-tests.jar"/> |
58 | 51 | <compile-module modulename="hamcrest-library"/> |
59 | 52 | <generate-module-factory modulename="hamcrest-library" configurationfile="matchers.xml" targetclass="org.hamcrest.Matchers"/> |
|
63 | 56 |
|
64 | 57 | <target name="integration" depends="library" description="Build integration with external tools"> |
65 | 58 | <path id="cp-hamcrest-integration-main"> |
| 59 | + <fileset file="build/hamcrest-api-${version}.jar"/> |
66 | 60 | <fileset file="build/hamcrest-core-${version}.jar"/> |
67 | 61 | <fileset file="build/hamcrest-library-${version}.jar"/> |
68 | 62 | <fileset dir="lib/integration" includes="**/*.jar"/> |
|
75 | 69 |
|
76 | 70 | <target name="examples" depends="core, library, integration" description="Build and run unit tests."> |
77 | 71 | <path id="cp-hamcrest-examples-main"> |
| 72 | + <fileset file="build/hamcrest-api-${version}.jar"/> |
78 | 73 | <fileset file="build/hamcrest-core-${version}.jar"/> |
79 | 74 | <fileset file="build/hamcrest-library-${version}.jar"/> |
80 | 75 | <fileset file="build/hamcrest-integration-${version}.jar"/> |
|
159 | 154 |
|
160 | 155 | <target name="bigjar" depends="core, library, integration, generator" |
161 | 156 | description="Build a single Jar (hamcrest-all.jar) that contains core, library, generator and integration."> |
162 | | - <mkdir dir="build/temp/hamcrest-all-${version}.jar.manifest"/> |
| 157 | + <!-- Bundle api into core jar --> |
| 158 | + <copy file="build/hamcrest-core-${version}.jar" tofile="build/hamcrest-core-${version}-nodep.jar"/> |
| 159 | + <jar jarfile="build/hamcrest-core-${version}.jar" duplicate="preserve"> |
| 160 | + <zipfileset src="build/hamcrest-api-${version}.jar"/> |
| 161 | + <zipfileset src="build/hamcrest-core-${version}-nodep.jar"/> |
| 162 | + </jar> |
| 163 | + |
| 164 | + <mkdir dir="build/temp/hamcrest-all-${version}.jar.manifest"/> |
163 | 165 | <make-manifest modulename="hamcrest-all"/> |
164 | 166 | <jar jarfile="build/hamcrest-all-${version}.jar" duplicate="preserve" manifest="build/temp/hamcrest-all-${version}.jar.manifest/MANIFEST.MF"> |
165 | 167 | <zipfileset src="build/hamcrest-core-${version}.jar"/> |
|
0 commit comments