tomdz 2005/12/22 00:41:15
Modified: . Tag: OJB_1_0_RELEASE build.xml
Removed: lib Tag: OJB_1_0_RELEASE checkstyle-all-4.1.jar
Log:
Removed checkstyle from distribution due to licensing issues (Ant target is
still available though)
Revision Changes Path
No revision
No revision
1.144.2.31 +31 -22 db-ojb/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/db-ojb/build.xml,v
retrieving revision 1.144.2.30
retrieving revision 1.144.2.31
diff -u -r1.144.2.30 -r1.144.2.31
--- build.xml 21 Dec 2005 22:19:38 -0000 1.144.2.30
+++ build.xml 22 Dec 2005 08:41:14 -0000 1.144.2.31
@@ -1583,27 +1583,36 @@
</condition>
</target>
- <!-- ==================================================================
-->
- <!-- Runs Checkstyle over OJB -->
- <!-- ==================================================================
-->
- <target name="checkstyle"
- depends="prepare"
- description="Checks the sourcecode via Checkstyle">
- <taskdef resource="checkstyletask.properties"
- classpathref="compilation-classpath"/>
-
- <mkdir dir="${build.check}"/>
- <checkstyle config="${src.check}/ojb-checks.xml"
- failOnViolation="false"
- classpathref="compilation-classpath">
- <fileset dir="${src.java}"
- includes="**/*.java"/>
-
- <formatter type="plain" usefile="false"/>
- <!-- Location of cache-file (project specific) -->
- <property key="checkstyle.cache.file"
file="${build.check}/checkstyle/cachefile"/>
- </checkstyle>
- </target>
+ <!-- ================================================================== -->
+ <!-- Runs Checkstyle over OJB -->
+ <!-- ================================================================== -->
+ <target name="checkstyle"
+ depends="prepare"
+ description="Checks the sourcecode via Checkstyle">
+ <fail message="Due to licensing issues, OJB is not distributed with
Checkstyle. If you want to use this task, then please put the checkstyle jar
into the lib subdirectory.">
+ <condition>
+ <not>
+ <available classpathref="compilation-classpath"
+ resource="checkstyletask.properties"/>
+ </not>
+ </condition>
+ </fail>
+
+ <taskdef resource="checkstyletask.properties"
+ classpathref="compilation-classpath"/>
+
+ <mkdir dir="${build.check}"/>
+ <checkstyle config="${src.check}/ojb-checks.xml"
+ failOnViolation="false"
+ classpathref="compilation-classpath">
+ <fileset dir="${src.java}"
+ includes="**/*.java"/>
+
+ <formatter type="plain" usefile="false"/>
+ <!-- Location of cache-file (project specific) -->
+ <property key="checkstyle.cache.file"
file="${build.check}/checkstyle/cachefile"/>
+ </checkstyle>
+ </target>
<!-- ==================================================================
-->
<!-- Targets for the sample session bean ejb jar
-->
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]