|
41 | 41 | <path id="cp-hamcrest-core-main" path="build/hamcrest-api-${version}.jar"/> |
42 | 42 | <path id="cp-hamcrest-core-test" path=""/> |
43 | 43 | <compile-module modulename="hamcrest-core"/> |
44 | | - <generate-module-factory modulename="hamcrest-core" configurationfile="core-matchers.xml" targetclass="org.hamcrest.CoreMatchers"/> |
| 44 | + <generate-module-factory modulename="hamcrest-core" configurationfile="core-matchers.xml" targetclass="org.hamcrest.CoreMatchers" sources="hamcrest-core/src/main/java"/> |
45 | 45 | <jar-module modulename="hamcrest-core"/> |
46 | 46 | <test-module modulename="hamcrest-core"/> |
47 | 47 | </target> |
|
50 | 50 | <path id="cp-hamcrest-library-main" path="build/hamcrest-api-${version}.jar;build/hamcrest-core-${version}.jar"/> |
51 | 51 | <path id="cp-hamcrest-library-test" path="build/hamcrest-core-${version}-tests.jar"/> |
52 | 52 | <compile-module modulename="hamcrest-library"/> |
53 | | - <generate-module-factory modulename="hamcrest-library" configurationfile="matchers.xml" targetclass="org.hamcrest.Matchers"/> |
| 53 | + <generate-module-factory modulename="hamcrest-library" configurationfile="matchers.xml" targetclass="org.hamcrest.Matchers" sources="hamcrest-core/src/main/java,hamcrest-library/src/main/java"/> |
54 | 54 | <jar-module modulename="hamcrest-library"/> |
55 | 55 | <test-module modulename="hamcrest-library"/> |
56 | 56 | </target> |
|
208 | 208 | <attribute name="modulename" description="Name of the module to jar"/> |
209 | 209 | <attribute name="configurationfile" description="xml configuration file"/> |
210 | 210 | <attribute name="targetclass" description="factory class to generate"/> |
| 211 | + <attribute name="sources" description="comma-separated source directories"/> |
211 | 212 | <sequential> |
212 | 213 | <mkdir dir="build/temp/@{modulename}/generated-code"/> |
213 | 214 | <java classname="org.hamcrest.generator.config.XmlConfigurator" fork="yes" failonerror="yes"> |
214 | 215 | <classpath path="build/hamcrest-generator-${version}.jar"/> |
215 | 216 | <classpath refid="cp-@{modulename}-main"/> |
216 | 217 | <classpath path="build/temp/@{modulename}-${version}.jar.contents"/> |
217 | 218 | <arg value="@{configurationfile}"/> |
218 | | - <arg value="@{modulename}/src/main/java"/> |
| 219 | + <arg value="@{sources}"/> |
219 | 220 | <arg value="@{targetclass}"/> |
220 | 221 | <arg value="build/temp/@{modulename}/generated-code"/> |
221 | 222 | </java> |
|
0 commit comments