antlets/pmd/src xbuild.xml,1.2,1.3
| 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-serv20104/pmd/src
Modified Files:
xbuild.xml
Log Message:
Check empty result from pmd
Index: xbuild.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/pmd/src/xbuild.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** xbuild.xml 17 Feb 2004 21:45:14 -0000 1.2
--- xbuild.xml 22 Feb 2004 20:38:46 -0000 1.3
***************
*** 59,72 ****
<target name="-pmd.antlet.init">
<property name="pmd.antlet.xdocs.dir" value="${build.dir}/documentation/content/xdocs/reports"/>
- </target>
! <target name="pmd-report" depends="pmd, -pmd.antlet.init"
description="Creates the xdoc pmd report.">
! <!-- TODO: where to put the resulting xdoc so that forrest will pick it up. -->
<xslt in="${pmd.antlet.build.dir}/pmd_raw.xml"
out="${pmd.antlet.xdocs.dir}/pmd.xml"
style="${pmd.antlet.dir}/resources/stylesheets/pmd2docbook.xsl"/>
</target>
!
</project>
--- 59,85 ----
<target name="-pmd.antlet.init">
<property name="pmd.antlet.xdocs.dir" value="${build.dir}/documentation/content/xdocs/reports"/>
+ <condition property="pmd.empty">
+ <filesmatch file1="${pmd.antlet.dir}/resources/files/empty.xml" file2="${pmd.antlet.build.dir}/pmd_raw.xml"/>
+ </condition>
+ </target>
! <target name="-pmd.filled" unless="pmd.empty"
description="Creates the xdoc pmd report.">
!
<xslt in="${pmd.antlet.build.dir}/pmd_raw.xml"
out="${pmd.antlet.xdocs.dir}/pmd.xml"
style="${pmd.antlet.dir}/resources/stylesheets/pmd2docbook.xsl"/>
</target>
!
! <target name="-pmd.empty" if="pmd.empty"
! description="Creates the empty xdoc pmd report.">
!
! <xslt in="${pmd.antlet.dir}/resources/files/emptypmd.xml"
! out="${pmd.antlet.xdocs.dir}/pmd.xml"
! style="${pmd.antlet.dir}/resources/stylesheets/pmd2docbook.xsl"/>
! </target>
!
! <target name="pmd-report" depends="pmd, -pmd.antlet.init, -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