antlets/pmd/src xbuild.xml,1.3,1.4

[email protected]
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-serv29868/pmd/src

Modified Files:
	xbuild.xml 
Log Message:
fixed problems that showed up in an empty install

Index: xbuild.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/pmd/src/xbuild.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** xbuild.xml	22 Feb 2004 20:38:46 -0000	1.3
--- xbuild.xml	23 Feb 2004 12:11:59 -0000	1.4
***************
*** 45,54 ****
      <echo message="This may take a while, please wait..." />
      
!     <pmd reportFile="${pmd.antlet.build.dir}/pmd_raw.xml" 
!          rulesetfiles="${pmd.antlet.rulesetfiles}"
!          format="xml"
           failonerror="${pmd.antlet.failonerror}"
-          verbose="${pmd.antlet.verbose}"
           printToConsole="${pmd.antlet.printToConsole}">
  	     <fileset dir="${project.src.dir}">
  	       <include name="**/*.java"/>
--- 45,54 ----
      <echo message="This may take a while, please wait..." />
      
!     <!-- removed verbose="${pmd.antlet.verbose}" -->
!     <pmd rulesetfiles="${pmd.antlet.rulesetfiles}"
           failonerror="${pmd.antlet.failonerror}"
           printToConsole="${pmd.antlet.printToConsole}">
+          <formatter type="xml" toFile="${pmd.antlet.build.dir}/pmd_raw.xml"/>
+          
  	     <fileset dir="${project.src.dir}">
  	       <include name="**/*.java"/>
***************
*** 60,66 ****
      <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>
  
--- 60,73 ----
      <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>
! 			<not>
! 				<available file="${pmd.antlet.build.dir}/pmd_raw.xml"/>
! 			</not>
! 			<filesmatch file1="${pmd.antlet.dir}/resources/files/empty.xml" file2="${pmd.antlet.build.dir}/pmd_raw.xml"/>
! 		</or>
  	</condition>
+ 	<echo message="Result of compare: ${pmd.empty}"/>
    </target>
  



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.