|
94 | 94 | classpath="build/hamcrest-core-${version}.jar"/> |
95 | 95 | </target> |
96 | 96 |
|
| 97 | + <target name="text" |
| 98 | + depends="core, library" |
| 99 | + description="Build text pattern matcher"> |
| 100 | + <java-to-jar srcdir="hamcrest-text/src/main/java" |
| 101 | + destjar="build/hamcrest-text-${version}.jar" |
| 102 | + classpath=" |
| 103 | + build/hamcrest-core-${version}.jar; |
| 104 | + build/hamcrest-library-${version}.jar"/> |
| 105 | + </target> |
| 106 | + |
97 | 107 | <target name="integration" |
98 | 108 | depends="core, library" |
99 | 109 | description="Build integration with external tools"> |
|
103 | 113 | build/hamcrest-core-${version}.jar; |
104 | 114 | build/hamcrest-library-${version}.jar"/> |
105 | 115 | </target> |
106 | | - |
| 116 | + |
107 | 117 | <target name="unit-test" |
108 | | - depends="core, library, integration, generator" |
| 118 | + depends="core, library, text, integration, generator" |
109 | 119 | description="Build and run unit tests."> |
110 | 120 | <java-to-jar srcdir="hamcrest-unit-test/src/main/java" |
111 | 121 | destjar="build/hamcrest-unit-test-${version}.jar" |
112 | 122 | classpath=" |
113 | 123 | build/hamcrest-core-${version}.jar; |
114 | | - build/hamcrest-library-${version}.jar; |
| 124 | + build/hamcrest-library-${version}.jar; |
| 125 | + build/hamcrest-text-${version}.jar; |
115 | 126 | build/hamcrest-integration-${version}.jar; |
116 | 127 | build/hamcrest-generator-${version}.jar"/> |
117 | 128 | <junit printsummary="no" fork="no" haltonfailure="${haltonfailure}"> |
|
122 | 133 | </fileset> |
123 | 134 | <pathelement path="build/hamcrest-core-${version}.jar"/> |
124 | 135 | <pathelement path="build/hamcrest-library-${version}.jar"/> |
| 136 | + <pathelement path="build/hamcrest-text-${version}.jar"/> |
125 | 137 | <pathelement path="build/hamcrest-integration-${version}.jar"/> |
126 | 138 | <pathelement path="build/hamcrest-generator-${version}.jar"/> |
127 | 139 | <pathelement path="build/hamcrest-unit-test-${version}.jar"/> |
|
147 | 159 | </target> |
148 | 160 |
|
149 | 161 | <target name="bigjar" |
150 | | - depends="core, library, integration, generator" |
| 162 | + depends="core, library, text, integration, generator" |
151 | 163 | description="Build a single Jar (hamcrest-all.jar) that contains core, library, generator and integration."> |
152 | 164 | <jar jarfile="build/hamcrest-all-${version}.jar" duplicate="preserve"> |
153 | 165 | <zipfileset src="build/hamcrest-core-${version}.jar"/> |
154 | 166 | <zipfileset src="build/hamcrest-library-${version}.jar"/> |
| 167 | + <zipfileset src="build/hamcrest-text-${version}.jar"/> |
155 | 168 | <zipfileset src="build/hamcrest-generator-${version}.jar"/> |
156 | 169 | <zipfileset src="build/hamcrest-integration-${version}.jar"/> |
157 | 170 | </jar> |
158 | 171 | </target> |
159 | 172 |
|
160 | 173 | <target name="package" |
161 | | - depends="core,generator,library,integration,bigjar,unit-test,examples" |
| 174 | + depends="core, generator, library, text, integration, bigjar, unit-test, examples" |
162 | 175 | description="Package for distribution"> |
163 | 176 | <zip zipfile="build/hamcrest-${version}.zip"> |
164 | 177 | <zipfileset dir="." prefix="hamcrest-${version}"> |
|
207 | 220 |
|
208 | 221 | <packageset dir="hamcrest-core/src/main/java"/> |
209 | 222 | <packageset dir="hamcrest-library/src/main/java" excludes="org/hamcrest/internal"/> |
| 223 | + <packageset dir="hamcrest-text/src/main/java" excludes="**/internal/**"/> |
210 | 224 | <packageset dir="hamcrest-integration/src/main/java"/> |
211 | 225 | <packageset dir="build/generated-code"/> |
212 | 226 |
|
|
0 commit comments