Lines Matching +full:- +full:- +full:build
3 <property name="version" value="SNAPSHOT" description="Version number to use in build files"/>
4 …<property name="haltonfailure" value="true" description="Whether to halt the build if the tests fa…
5 <property name="debug" value="true" description="Whether to build with debug information"/>
7 … <tstamp><format property="build.timestamp" pattern="yyyy-MM-dd HH:mm:ss" timezone="GMT"/></tstamp>
8 …ache.tools.ant.taskdefs.optional.junit.JUnitTask" classpath="lib/integration/ant-junit-1.8.4.jar"/>
11 …<target name="all" depends="clean, bigjar, javadoc" description="Performs clean build, runs tests …
14 <delete dir="build"/>
17 <target name="api" description="Build Hamcrest APIs">
18 <path id="cp-hamcrest-api-main" path=""/>
19 <path id="cp-hamcrest-api-test" path=""/>
20 <compile-module modulename="hamcrest-api"/>
21 <jar-module modulename="hamcrest-api"/>
22 <test-module modulename="hamcrest-api"/>
25 <target name="generator" depends="api" description="Build code generator tool">
26 …<path id="cp-hamcrest-generator-main" path="lib/generator/qdox-2.0-M2.jar;build/hamcrest-api-${ver…
27 <path id="cp-hamcrest-generator-test" path=""/>
28 <compile-module modulename="hamcrest-generator"/>
29 <jar-module modulename="hamcrest-generator"/>
30 <test-module modulename="hamcrest-generator"/>
32 …<!-- Include QDox classes in hamcrest-generator.jar using JarJar to place classes under a differen…
33 …="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/generator/jarjar-1.3.jar"/>
34 …<copy file="build/hamcrest-generator-${version}.jar" tofile="build/hamcrest-generator-${version}-n…
35 <jarjar jarfile="build/hamcrest-generator-${version}.jar">
36 <zipfileset src="build/hamcrest-generator-${version}-nodep.jar"/>
37 <zipfileset src="lib/generator/qdox-2.0-M2.jar"/>
42 <target name="core" depends="generator" description="Build core Hamcrest library">
43 <path id="cp-hamcrest-core-main" path="build/hamcrest-api-${version}.jar"/>
44 <path id="cp-hamcrest-core-test" path=""/>
45 <compile-module modulename="hamcrest-core"/>
46 …-module-factory modulename="hamcrest-core" configurationfile="hamcrest-core/core-matchers.xml" tar…
47 <jar-module modulename="hamcrest-core"/>
48 <test-module modulename="hamcrest-core"/>
51 <target name="library" depends="core" description="Build library of matchers">
52 …<path id="cp-hamcrest-library-main" path="build/hamcrest-api-${version}.jar;build/hamcrest-core-${…
53 <path id="cp-hamcrest-library-test" path="build/hamcrest-core-${version}-tests.jar"/>
54 <compile-module modulename="hamcrest-library"/>
55 …-module-factory modulename="hamcrest-library" configurationfile="hamcrest-library/matchers.xml" ta…
56 <jar-module modulename="hamcrest-library"/>
57 <test-module modulename="hamcrest-library"/>
60 … <target name="integration" depends="library" description="Build integration with external tools">
61 <path id="cp-hamcrest-integration-main">
62 <fileset file="build/hamcrest-api-${version}.jar"/>
63 <fileset file="build/hamcrest-core-${version}.jar"/>
64 <fileset file="build/hamcrest-library-${version}.jar"/>
67 <path id="cp-hamcrest-integration-test" path="build/hamcrest-core-${version}-tests.jar"/>
68 <compile-module modulename="hamcrest-integration"/>
69 <jar-module modulename="hamcrest-integration"/>
70 <test-module modulename="hamcrest-integration"/>
73 …<target name="examples" depends="core, library, integration" description="Build and run unit tests…
74 <path id="cp-hamcrest-examples-main">
75 <fileset file="build/hamcrest-api-${version}.jar"/>
76 <fileset file="build/hamcrest-core-${version}.jar"/>
77 <fileset file="build/hamcrest-library-${version}.jar"/>
78 <fileset file="build/hamcrest-integration-${version}.jar"/>
81 <compile-module modulename="hamcrest-examples"/>
82 <jar-module modulename="hamcrest-examples"/>
85 …<target name="bigjar" depends="core,library,integration,generator" description="Build composite ja…
86 <!-- Bundle api into core jar -->
87 <copy todir="build/temp/hamcrest-core-${version}.jar.contents">
88 <fileset dir="build/temp/hamcrest-api-${version}.jar.contents"/>
90 <copy todir="build/temp/hamcrest-core-${version}-sources.jar.contents">
91 <fileset dir="build/temp/hamcrest-api-${version}-sources.jar.contents"/>
93 <jar-module modulename="hamcrest-core"/>
95 <!-- Bundle core, library, integration, and generator into all jar-->
96 <copy todir="build/temp/hamcrest-all-${version}.jar.contents">
97 <fileset dir="build/temp/hamcrest-core-${version}.jar.contents"/>
98 <fileset dir="build/temp/hamcrest-library-${version}.jar.contents"/>
99 <fileset dir="build/temp/hamcrest-integration-${version}.jar.contents"/>
100 <fileset dir="build/temp/hamcrest-generator-${version}.jar.contents"/>
102 <copy todir="build/temp/hamcrest-all-${version}-sources.jar.contents">
103 <fileset dir="build/temp/hamcrest-core-${version}-sources.jar.contents"/>
104 <fileset dir="build/temp/hamcrest-library-${version}-sources.jar.contents"/>
105 <fileset dir="build/temp/hamcrest-integration-${version}-sources.jar.contents"/>
106 <fileset dir="build/temp/hamcrest-generator-${version}-sources.jar.contents"/>
108 <path id="cp-hamcrest-all-main">
109 <path refid="cp-hamcrest-core-main"/>
110 <path refid="cp-hamcrest-library-main"/>
111 <path refid="cp-hamcrest-integration-main"/>
112 <path refid="cp-hamcrest-generator-main"/>
114 <jar-module modulename="hamcrest-all"/>
117 <target name="javadoc" depends="bigjar" description="build javadoc jars">
118 <javadoc-module modulename="hamcrest-generator"/>
119 <javadoc-module modulename="hamcrest-core"/>
120 <javadoc-module modulename="hamcrest-library"/>
121 <javadoc-module modulename="hamcrest-integration"/>
122 <javadoc-module modulename="hamcrest-all"/>
126 <copy todir="build">
129 <mapper type="regexp" from="(.*)\.pom" to="\1-${version}.pom"/>
132 <sign target="hamcrest-parent-${version}.pom"/>
133 <jar-bundle modulename="hamcrest-parent"/>
135 <bundle-module modulename="hamcrest-core"/>
136 <bundle-module modulename="hamcrest-generator"/>
137 <bundle-module modulename="hamcrest-library"/>
138 <bundle-module modulename="hamcrest-integration"/>
139 <bundle-module modulename="hamcrest-all"/>
142 <macrodef name="make-manifest">
145 <mkdir dir="build/temp/@{modulename}-${version}.jar.manifest"/>
146 <manifest file="build/temp/@{modulename}-${version}.jar.manifest/MANIFEST.MF">
147 <attribute name="Implementation-Title" value="@{modulename}"/>
148 <attribute name="Implementation-Vendor" value="hamcrest.org"/>
149 <attribute name="Implementation-Version" value="${version}"/>
150 <attribute name="Built-By" value="${user.name}"/>
151 <attribute name="Built-Date" value="${build.timestamp}"/>
156 <macrodef name="compile-module">
159 …<compile-content srcdir="@{modulename}/src/main/java" jarname="@{modulename}-${version}" classpath…
160 <path id="cp-@{modulename}-test-complete">
161 <path path="lib/integration/junit-dep-4.11.jar"/>
162 <path refid="cp-@{modulename}-main"/>
163 <path refid="cp-@{modulename}-test"/>
164 <path path="build/temp/@{modulename}-${version}.jar.contents"/>
166 …<compile-content srcdir="@{modulename}/src/test/java" jarname="@{modulename}-${version}-tests" cla…
170 <macrodef name="compile-content">
175 <mkdir dir="build/temp/@{jarname}-sources.jar.contents"/>
176 <copy failonerror="false" todir="build/temp/@{jarname}-sources.jar.contents">
179 <mkdir dir="build/temp/@{jarname}.jar.contents"/>
180 <javac srcdir="build/temp/@{jarname}-sources.jar.contents"
181 destdir="build/temp/@{jarname}.jar.contents"
188 <macrodef name="jar-module">
191 <make-manifest modulename="@{modulename}"/>
192 <jar-module-component modulename="@{modulename}"/>
193 <jar-module-component modulename="@{modulename}" suffix="-tests"/>
194 <jar-module-component modulename="@{modulename}" suffix="-sources"/>
198 <macrodef name="jar-module-component">
202 …<copy file="LICENSE.txt" todir="build/temp/@{modulename}-${version}@{suffix}.jar.contents/META-INF…
203 …<jar jarfile="build/@{modulename}-${version}@{suffix}.jar" manifest="build/temp/@{modulename}-${ve…
204 <fileset dir="build/temp/@{modulename}-${version}@{suffix}.jar.contents"/>
209 … <macrodef name="generate-module-factory" description="Generate one class with all static imports">
213 <attribute name="sources" description="comma-separated source directories"/>
215 <mkdir dir="build/temp/@{modulename}/generated-code"/>
217 <classpath path="build/hamcrest-generator-${version}.jar"/>
218 <classpath refid="cp-@{modulename}-main"/>
219 <classpath path="build/temp/@{modulename}-${version}.jar.contents"/>
223 <arg value="build/temp/@{modulename}/generated-code"/>
226 <copy todir="build/temp/@{modulename}-${version}-sources.jar.contents">
227 <fileset dir="build/temp/@{modulename}/generated-code"/>
229 <compile-module modulename="@{modulename}"/>
233 <macrodef name="test-module" description="run unit tests.">
236 <mkdir dir="build/temp/@{modulename}/test-wrk"/>
237 …<junit printsummary="no" forkmode="once" tempdir="build/temp/@{modulename}/test-wrk" haltonfailure…
239 <classpath refid="cp-@{modulename}-test-complete"/>
240 <classpath path="build/@{modulename}-${version}-tests.jar"/>
241 <batchtest fork="yes" todir="${build.dir}/testreport">
242 <zipfileset src="build/@{modulename}-${version}-tests.jar">
251 <macrodef name="javadoc-module" description="Generate javadoc for a module and build a Jar">
254 …<javadoc packagenames="org.hamcrest.*" sourcepath="build/temp/@{modulename}-${version}-sources.jar…
255 … destdir="build/temp/@{modulename}-${version}-javadoc.jar.contents" author="true" version="true"
257 <classpath refid="cp-@{modulename}-main"/>
259 <jar-module-component modulename="@{modulename}" suffix="-javadoc"/>
263 <macrodef name="bundle-module" description="Generate maven bundle jar for a module">
266 <sign target="@{modulename}-${version}.pom"/>
267 <sign target="@{modulename}-${version}.jar"/>
268 <sign target="@{modulename}-${version}-javadoc.jar"/>
269 <sign target="@{modulename}-${version}-sources.jar"/>
270 <jar-bundle modulename="@{modulename}"/>
274 <macrodef name="jar-bundle" description="Jar maven bundle contents">
277 <jar destfile="build/maven-bundle-@{modulename}.jar">
278 <fileset dir="build"><include name="@{modulename}-${version}*"/></fileset>
286 <exec executable="gpg" dir="build"><arg value="-ab"/><arg value="@{target}"/></exec>