You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by bo...@apache.org on 2010/06/01 14:47:45 UTC
svn commit: r950047 - in /incubator/rat/main/trunk/apache-rat-tasks:
run-antunit.xml src/test/resources/antunit/report-normal-operation.xml
Author: bodewig
Date: Tue Jun 1 12:47:45 2010
New Revision: 950047
URL: http://svn.apache.org/viewvc?rev=950047&view=rev
Log:
make AntUnit tests compile again
Modified:
incubator/rat/main/trunk/apache-rat-tasks/run-antunit.xml
incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
Modified: incubator/rat/main/trunk/apache-rat-tasks/run-antunit.xml
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-tasks/run-antunit.xml?rev=950047&r1=950046&r2=950047&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-tasks/run-antunit.xml (original)
+++ incubator/rat/main/trunk/apache-rat-tasks/run-antunit.xml Tue Jun 1 12:47:45 2010
@@ -31,6 +31,7 @@
<pathelement location="${user.home}/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
<pathelement location="${user.home}/.m2/repository/commons-cli/commons-cli/1.1/commons-cli-1.1.jar"/>
<pathelement location="${user.home}/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar"/>
+ <pathelement location="${user.home}/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar"/>
</path>
<property name="test.classpath" refid="test-classpath"/>
Modified: incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml?rev=950047&r1=950046&r2=950047&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml (original)
+++ incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml Tue Jun 1 12:47:45 2010
@@ -160,18 +160,21 @@
<mkdir dir="${output.dir}/src/org/example"/>
<echo file="${output.dir}/src/org/example/Matcher.java"><![CDATA[
package org.example;
+import org.apache.rat.api.Document;
+import org.apache.rat.api.MetaData;
import org.apache.rat.analysis.IHeaderMatcher;
import org.apache.rat.analysis.license.BaseLicense;
-import org.apache.rat.report.claim.IClaimReporter;
import org.apache.rat.analysis.RatHeaderAnalysisException;
public class Matcher extends BaseLicense implements IHeaderMatcher {
public Matcher() {
- super("EXMPL", "Example License", "");
+ super(new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, "EXMPL"),
+ new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_NAME, "Example License"),
+ "");
}
public void reset() {}
- public boolean match(String subject, String line, IClaimReporter reporter) throws RatHeaderAnalysisException {
- reportOnLicense(subject, reporter);
+ public boolean match(Document subject, String line) throws RatHeaderAnalysisException {
+ reportOnLicense(subject);
return true;
}
}