click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r728323 - in /incubator/click/trunk/click: build/build.xml lib/checkstyle-all-4.4.jar
Date Sat, 20 Dec 2008 17:53:57 GMT
Author: sabob
Date: Sat Dec 20 09:53:56 2008
New Revision: 728323

URL: http://svn.apache.org/viewvc?rev=728323&view=rev
Log:
removed checkstyle.jar and updated build to download checkstyle as dependency

Removed:
    incubator/click/trunk/click/lib/checkstyle-all-4.4.jar
Modified:
    incubator/click/trunk/click/build/build.xml

Modified: incubator/click/trunk/click/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/build/build.xml?rev=728323&r1=728322&r2=728323&view=diff
==============================================================================
--- incubator/click/trunk/click/build/build.xml (original)
+++ incubator/click/trunk/click/build/build.xml Sat Dec 20 09:53:56 2008
@@ -53,16 +53,16 @@
     -->
 	
    <taskdef name="linetrim"
-   	        classname="dev.LineTrimTask" 
-   	        classpath="lib/dev.jar"/>
+   	        classname="org.apache.click.tools.devtasks.LineTrimTask"
+   	        classpath="lib/click-dev-tasks-1.0.jar"/>
 							
    <taskdef name="replacetabs" 
-   	        classname="dev.ReplaceTabsTask" 
-   	        classpath="lib/dev.jar"/>
+   	        classname="org.apache.click.tools.devtasks.ReplaceTabsTask"
+   	        classpath="lib/click-dev-tasks-1.0.jar"/>
             
    <taskdef name="package" 
-   	        classname="dev.PackageTask" 
-   	        classpath="lib/dev.jar"/>
+   	        classname="org.apache.click.tools.devtasks.PackageTask"
+   	        classpath="lib/click-dev-tasks-1.0.jar"/>
             
    <taskdef resource="checkstyletask.properties"
             classpath="lib/${jar.checkstyle}"/>
@@ -268,8 +268,8 @@
             <exclude name="**/package.html"/>
          </fileset>
       </copy>
- 	  <copy file="LICENSE.txt" todir="extras/classes/META-INF"/>
- 	  <copy file="NOTICE.txt" todir="extras/classes/META-INF"/>
+ 	    <copy file="LICENSE.txt" todir="extras/classes/META-INF"/>
+ 	    <copy file="NOTICE.txt" todir="extras/classes/META-INF"/>
       <javac srcdir="extras/src"
              destdir="extras/classes"
              debug="true"
@@ -451,6 +451,12 @@
 
 
    <target name="checkstyle" description="run checkstyle report on Java soruce">
+      <available file="lib/${jar.checkstyle}" property="isJarAvail"/>
+      <fail message="The Checkstyle JAR is not on the classpath. To resolve this download
the JAR dependencies with 'ant get-deps'.">
+         <condition>
+  	        <or><isfalse value="${isJarAvail}"/></or>
+  	     </condition>
+      </fail>
       <checkstyle config="build/checkstyle-checks.xml">
          <fileset dir="framework/src/net" includes="**/*.java"/>
          <fileset dir="extras/src" includes="**/*.java"/>
@@ -521,6 +527,10 @@
       <get src="${repository}/maven2/org/freemarker/freemarker/2.3.12/${jar.freemarker}"

  	       dest="lib/${jar.freemarker}"
  	       verbose="true"
+ 	       usetimestamp="true"/>
+      <get src="http://clickclick.googlecode.com/svn/trunk/checkstyle/${jar.checkstyle}"
+ 	       dest="lib/${jar.checkstyle}"
+ 	       verbose="true"
  	       usetimestamp="true"/> 
       <ant antfile="build.xml" 
            dir="examples"



Mime
View raw message