Skip to content

Commit 5977a1b

Browse files
committed
build integration module
1 parent d2a2e75 commit 5977a1b

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

‎build.xml‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@
5757
<generate-module-factory modulename="hamcrest-library" configurationfile="matchers.xml" targetclass="org.hamcrest.Matchers"/>
5858
</target>
5959

60+
<target name="integration" depends="library" description="Build integration with external tools">
61+
<path id="cp-hamcrest-integration-main">
62+
<fileset file="build/hamcrest-core-${version}.jar"/>
63+
<fileset file="build/hamcrest-library-${version}.jar"/>
64+
<fileset dir="lib/integration" includes="**/*.jar"/>
65+
</path>
66+
<path id="cp-hamcrest-integration-test" path="lib/integration/junit-dep-4.10.jar;build/hamcrest-core-${version}-test.jar"/>
67+
<compile-module modulename="hamcrest-integration"/>
68+
<test-module modulename="hamcrest-integration"/>
69+
</target>
70+
6071
<macrodef name="compile-module">
6172
<attribute name="modulename" description="Name of the module to jar"/>
6273

@@ -114,14 +125,6 @@
114125
</jar>
115126
</sequential>
116127
</macrodef>
117-
118-
119-
<target name="integration" depends="core, library" description="Build integration with external tools">
120-
<java-to-jar srcdir="hamcrest-integration/src/main/java"
121-
modulename="hamcrest-integration"
122-
classpath="build/hamcrest-core-${version}.jar;
123-
build/hamcrest-library-${version}.jar"/>
124-
</target>
125128

126129
<target name="examples" depends="core, library, integration" description="Build and run unit tests.">
127130
<java-to-jar srcdir="hamcrest-examples/src/main/java"

0 commit comments

Comments
 (0)