antlets/pmd/src xbuild.xml,1.4,1.5
[email protected] Wed, 25 Feb 2004 14:09:51 -0800
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/antlets/pmd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14395/pmd/src
Modified Files:
xbuild.xml
Log Message:
use get to retrieve jars from internet
Index: xbuild.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/pmd/src/xbuild.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** xbuild.xml 23 Feb 2004 12:11:59 -0000 1.4
--- xbuild.xml 25 Feb 2004 22:09:48 -0000 1.5
***************
*** 1,18 ****
<?xml version="1.0"?>
<!-- $Header$ -->
! <project default="pmd" name="pmd.antlet">
!
! <dirname property="pmd.antlet.dir" file="${ant.file.pmd.antlet}"/>
!
! <!-- Classpath for my jars -->
! <path id="pmd.classpath">
! <fileset dir="${pmd.antlet.dir}/lib/">
! <include name="*.jar"/>
! </fileset>
! <!-- path refid="centipede.classpath"/ --> <!-- TODO: where to find this classpath -->
! </path>
!
! <taskdef file="${pmd.antlet.dir}/tasks.properties" classpathref="pmd.classpath"/>
!
<description>
Runs a set of static code analysis rules on some Java source code files
--- 1,5 ----
<?xml version="1.0"?>
<!-- $Header$ -->
! <project default="pmd.report" name="pmd.antlet">
<description>
Runs a set of static code analysis rules on some Java source code files
***************
*** 20,23 ****
--- 7,19 ----
</description>
+ <dirname property="pmd.antlet.dir" file="${ant.file.pmd.antlet}"/>
+ <property name="pmd.antlet.build.dir" value="${project.build.dir}/pmd"/>
+ <property name="pmd.repository" value="http://www.ibiblio.org/maven/pmd/jars/"/>
+ <property name="pmd.jar" value="pmd-1.3.jar"/>
+ <property name="jaxen.repository" value="http://www.ibiblio.org/maven/jaxen/jars/"/>
+ <property name="jaxen.jar" value="jaxen-1.0-FCS-full.jar"/>
+ <property name="saxpath.repository" value="http://www.ibiblio.org/maven/saxpath/jars/"/>
+ <property name="saxpath.jar" value="saxpath-1.0-FCS.jar"/>
+
<!-- Verbose output - names of files processed, rule counts, etc. -->
***************
*** 34,43 ****
<property name="pmd.antlet.printToConsole" value="false"/>
! <property name="pmd.antlet.build.dir"
! value="${project.build.dir}/pmd"/>
! <mkdir dir="${pmd.antlet.build.dir}"/>
<!-- processes the input xml to add the dir info where there is a pmd tag -->
! <target name="pmd"
description="Runs PMD and makes report.">
--- 30,65 ----
<property name="pmd.antlet.printToConsole" value="false"/>
! <target name="-pmd.init">
! <property name="pmd.antlet.xdocs.dir" value="${build.dir}/documentation/content/xdocs/reports"/>
!
! <mkdir dir="${pmd.antlet.build.dir}"/>
! <mkdir dir="${pmd.antlet.dir}/lib"/>
! <get
! src="${pmd.repository}${pmd.jar}"
! dest="${pmd.antlet.dir}/lib/${pmd.jar}"
! verbose="true" usetimestamp="true"/>
! <get
! src="${jaxen.repository}${jaxen.jar}"
! dest="${pmd.antlet.dir}/lib/${jaxen.jar}"
! verbose="true" usetimestamp="true"/>
! <get
! src="${saxpath.repository}${saxpath.jar}"
! dest="${pmd.antlet.dir}/lib/${saxpath.jar}"
! verbose="true" usetimestamp="true"/>
!
!
! <!-- Classpath for my jars -->
! <path id="pmd.classpath">
! <fileset dir="${pmd.antlet.dir}/lib/">
! <include name="*.jar"/>
! </fileset>
! <!-- path refid="centipede.classpath"/ --> <!-- TODO: where to find this classpath -->
! </path>
! <taskdef file="${pmd.antlet.dir}/tasks.properties" classpathref="pmd.classpath"/>
! </target>
!
<!-- processes the input xml to add the dir info where there is a pmd tag -->
! <target name="pmd.xml" depends="-pmd.init"
description="Runs PMD and makes report.">
***************
*** 55,64 ****
</fileset>
</pmd>
- </target>
- <target name="-pmd.antlet.init">
- <property name="pmd.antlet.xdocs.dir" value="${build.dir}/documentation/content/xdocs/reports"/>
-
- <echo message="Comparing ${pmd.antlet.dir}/resources/files/empty.xml to ${pmd.antlet.build.dir}/pmd_raw.xml"/>
<condition property="pmd.empty">
<or>
--- 77,81 ----
***************
*** 69,73 ****
</or>
</condition>
! <echo message="Result of compare: ${pmd.empty}"/>
</target>
--- 86,90 ----
</or>
</condition>
!
</target>
***************
*** 88,92 ****
</target>
! <target name="pmd-report" depends="pmd, -pmd.antlet.init, -pmd.empty, -pmd.filled"/>
</project>
--- 105,109 ----
</target>
! <target name="pmd.report" depends="pmd.xml, -pmd.empty, -pmd.filled"/>
</project>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click