You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by jl...@apache.org on 2012/12/09 09:50:09 UTC

svn commit: r1418868 - in /incubator/easyant/plugins/trunk/rat/src: main/resources/rat.ant test/antunit/rat-test.xml

Author: jlboudart
Date: Sun Dec  9 09:50:08 2012
New Revision: 1418868

URL: http://svn.apache.org/viewvc?rev=1418868&view=rev
Log:
Fix rat unit test

Modified:
    incubator/easyant/plugins/trunk/rat/src/main/resources/rat.ant
    incubator/easyant/plugins/trunk/rat/src/test/antunit/rat-test.xml

Modified: incubator/easyant/plugins/trunk/rat/src/main/resources/rat.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/rat/src/main/resources/rat.ant?rev=1418868&r1=1418867&r2=1418868&view=diff
==============================================================================
--- incubator/easyant/plugins/trunk/rat/src/main/resources/rat.ant (original)
+++ incubator/easyant/plugins/trunk/rat/src/main/resources/rat.ant Sun Dec  9 09:50:08 2012
@@ -38,8 +38,8 @@
         <mkdir dir="${rat.report.dir}" />
         <echo>Generating rat report ...</echo>
         <ea:parameter property="rat.report.filename" default="rat-report.txt" description="rat report filename" />
-
-        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report.dir}/${rat.report.filename}">
+        <property name="rat.report" value="${rat.report.dir}/${rat.report.filename}"/>
+        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report}">
             <fileset refid="rat.fileset" />
         </rat:report>
 

Modified: incubator/easyant/plugins/trunk/rat/src/test/antunit/rat-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/rat/src/test/antunit/rat-test.xml?rev=1418868&r1=1418867&r2=1418868&view=diff
==============================================================================
--- incubator/easyant/plugins/trunk/rat/src/test/antunit/rat-test.xml (original)
+++ incubator/easyant/plugins/trunk/rat/src/test/antunit/rat-test.xml Sun Dec  9 09:50:08 2012
@@ -36,14 +36,13 @@
     <target name="tearDown" depends="clean" />
 
     <target name="test-rat:init" depends="rat:init">
-        <au:assertPropertyEquals name="target.reports" value="${target}/.reports/rat" />
+        <au:assertPropertyEquals name="target.reports" value="${target}/reports" />
         <au:assertPropertyEquals name="rat.report.dir" value="${target.reports}/rat" />
         <au:assertPropertyEquals name="rat.failOnError" value="true" />
         <au:assertReferenceSet refid="rat.fileset" />
     </target>
 
     <target name="test-rat:rat" depends="rat:rat">
-        <au:assertFileExists file="${rat.report.ivy}" />
         <au:assertLogContains text="Generating rat report ..." />
         <au:assertPropertyEquals name="rat.report.filename" value="rat-report.txt" />
         <au:assertFileExists file="${rat.report.dir}/${rat.report.filename}" />