</antcall>
</target>
+<target name="commons-beanutils.d">
+ <antcall target="download.dep">
+ <param name="group" value="commons-beanutils"/>
+ <param name="version" value="1.7.0"/>
+ </antcall>
+</target>
+
+<target name="commons-collections.d">
+ <antcall target="download.dep">
+ <param name="group" value="commons-collections"/>
+ <param name="version" value="3.1"/>
+ </antcall>
+</target>
+
+
<target name="commons-logging.d">
<antcall target="download.dep">
<param name="group" value="commons-logging"/>
</antcall>
</target>
+
+<target name="antlr.d">
+ <antcall target="download.dep">
+ <param name="group" value="antlr"/>
+ <param name="version" value="2.7.2"/>
+ </antcall>
+</target>
+
+<target name="checkstyle.d" depends="antlr.d,commons-beanutils.d,commons-logging.d,commons-collections.d">
+ <antcall target="download.dep">
+ <param name="group" value="checkstyle"/>
+ <param name="version" value="4.1"/>
+ </antcall>
+</target>
+
<!-- common test dependencies for all test code -->
<target name="test.d" depends="junit.d,jmock.d,dbunit.d,emma.d">
</target>
+<!-- downloaded dependencies for ant tasks -->
+<target name="ant.d" depends="checkstyle.d">
+</target>
+
<target name="import_header" unless="build_header_included">
<property name="build.dir" value="${project.home}/build"/>
<property name="lib.dir" value="${project.home}/lib/wamblee"/>
<property name="ant.lib.dir" value="${project.home}/lib/ant"/>
+ <property name="ant.downloaded.lib.dir" value="${project.home}/lib/ant/downloaded"/>
<property name="external.lib.dir" value="lib/external"/>
<property name="test.lib.dir" value="lib/test"/>
<property name="special.lib.dir" value="${project.home}/lib/special"/>
<property name="emma.enabled" value="false"/>
<!-- checkstyle -->
- <!-- TMP download this dependence as well
- <property name="checkstyle.home" value="${lib.dir}/checkstyle-3.5"/>
- <taskdef resource="checkstyletask.properties"
- classpath="${checkstyle.home}/checkstyle-all-3.5.jar"/>
- <property name="checkstyle.rules" value="coding-rules.xml"/>
- <property name="checkstyle.test.rules" value="coding-rules-test.xml"/>
- -->
+ <property name="checkstyle.home" value="${ant.downloaded.lib.dir}"/>
+ <taskdef resource="checkstyletask.properties">
+ <classpath>
+ <fileset dir="${checkstyle.home}">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+ <property name="checkstyle.rules" value="style.xml"/>
+ <property name="checkstyle.test.rules" value="test-style.xml"/>
+
<!-- jalopy -->
<!-- TMP download this dependence as well
<antcall target="test.d">
<param name="download.dir" value="${test.lib.dir}"/>
</antcall>
+ <antcall target="ant.d">
+ <param name="download.dir" value="${ant.downloaded.lib.dir}"/>
+ </antcall>
<antcall target="module.test.deps">
<param name="download.dir" value="${test.lib.dir}"/>
</antcall>
<target name="clean-deps" depends="init_directory_properties">
<delete dir="${external.lib.dir}"/>
+ <mkdir dir="${external.lib.dir}"/>
<delete dir="${test.lib.dir}"/>
+ <mkdir dir="${test.lib.dir}"/>
+ <delete dir="${ant.downloaded.lib.dir}"/>
+ <mkdir dir="${ant.downloaded.lib.dir}"/>
</target>
<!-- ============================================================================
<target name="checkstyle" depends="testclasses">
<checkstyle config="${build.dir}/${checkstyle.rules}"
- failOnViolation="false" classpathref="module.testbuild.path">
+ failOnViolation="false">
+ <classpath>
+ <path refid="module.build.path"/>
+ </classpath>
<fileset dir="${module.source.dir}" includes="**/*.java" />
<formatter type="plain" />
</checkstyle>
+ <!--
<checkstyle config="${build.dir}/${checkstyle.test.rules}"
- failOnViolation="false" classpathref="module.testbuild.path">
+ failOnViolation="false">
+ <classpath>
+ <pathelement path="${module.testbuild.path}"/>
+ </classpath>
<fileset dir="${module.test.dir}" includes="**/*.java" />
<formatter type="plain" />
</checkstyle>
+ -->
</target>
<!-- ============================================================================