You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by de...@apache.org on 2012/10/15 23:10:08 UTC
svn commit: r1398524 - in /creadur/rat/trunk: ./
apache-rat-core/src/test/java/org/apache/rat/
apache-rat-core/src/test/java/org/apache/rat/analysis/
apache-rat-core/src/test/java/org/apache/rat/analysis/license/
apache-rat-core/src/test/java/org/apach...
Author: dennisl
Date: Mon Oct 15 21:10:08 2012
New Revision: 1398524
URL: http://svn.apache.org/viewvc?rev=1398524&view=rev
Log:
Replace tab characters with spaces.
Modified:
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/HeaderCheckWorkerTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/MockLicenseMatcher.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlUtils.java
creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/Resources.java
creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
creadur/rat/trunk/pom.xml
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/ReportTest.java Mon Oct 15 21:10:08 2012
@@ -37,8 +37,8 @@ public class ReportTest {
"-------\n" +
"Generated at: ";
- private static String getElementsReports(String pElementsPath) {
- return
+ private static String getElementsReports(String pElementsPath) {
+ return
"Notes: 2\n" +
"Binaries: 1\n" +
"Archives: 1\n" +
@@ -102,7 +102,7 @@ public class ReportTest {
"==" + pElementsPath + "/sub/Empty.txt\n" +
"=======================================================================\n" +
"\n";
- }
+ }
@Test
public void plainReport() throws Exception {
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/HeaderCheckWorkerTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/HeaderCheckWorkerTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/HeaderCheckWorkerTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/HeaderCheckWorkerTest.java Mon Oct 15 21:10:08 2012
@@ -32,11 +32,11 @@ import static org.junit.Assert.assertTru
public class HeaderCheckWorkerTest {
@Test
- public void isFinished() throws Exception {
+ public void isFinished() throws Exception {
final Document subject = new MockLocation("subject");
- HeaderCheckWorker worker = new HeaderCheckWorker(new StringReader(""), new ApacheSoftwareLicense20(), subject);
- assertFalse(worker.isFinished());
- worker.read();
- assertTrue(worker.isFinished());
- }
+ HeaderCheckWorker worker = new HeaderCheckWorker(new StringReader(""), new ApacheSoftwareLicense20(), subject);
+ assertFalse(worker.isFinished());
+ worker.read();
+ assertTrue(worker.isFinished());
+ }
}
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/MockLicenseMatcher.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/MockLicenseMatcher.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/MockLicenseMatcher.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/MockLicenseMatcher.java Mon Oct 15 21:10:08 2012
@@ -25,17 +25,17 @@ import java.util.List;
public class MockLicenseMatcher implements IHeaderMatcher {
- public final List<String> lines = new ArrayList<String>();
- public int resets = 0;
+ public final List<String> lines = new ArrayList<String>();
+ public int resets = 0;
public boolean result = true;
-
- public boolean match(Document subject, String line) {
- lines.add(line);
- return result;
- }
- public void reset() {
- resets++;
- }
+ public boolean match(Document subject, String line) {
+ lines.add(line);
+ return result;
+ }
+
+ public void reset() {
+ resets++;
+ }
}
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/license/ApacheSoftwareLicense20Test.java Mon Oct 15 21:10:08 2012
@@ -32,30 +32,30 @@ public class ApacheSoftwareLicense20Test
MockClaimReporter reporter;
@Before
- public void setUp() throws Exception {
+ public void setUp() throws Exception {
reporter = new MockClaimReporter();
- }
+ }
- @Test
+ @Test
public void matches() throws Exception {
- ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
- assertTrue(worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
- assertTrue(worker.matches(" Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches("Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" * Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" // Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" /* Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" ## Licensed under the Apache License, Version 2.0 (the \"License\");"));
- assertTrue(worker.matches(" ## Licensed under the Apache License, Version 2.0 (the \"License\") ##);"));
- assertFalse(worker.matches("'Behold, Telemachus! (nor fear the sight,)"));
- }
-
- @Test
+ ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
+ assertTrue(worker.matches(ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
+ assertTrue(worker.matches(" Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches("Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" * Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" // Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" /* Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" ## Licensed under the Apache License, Version 2.0 (the \"License\");"));
+ assertTrue(worker.matches(" ## Licensed under the Apache License, Version 2.0 (the \"License\") ##);"));
+ assertFalse(worker.matches("'Behold, Telemachus! (nor fear the sight,)"));
+ }
+
+ @Test
public void match() throws Exception {
- ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
- final Document subject = new MockLocation("subject");
- assertTrue(worker.match(subject, ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
+ ApacheSoftwareLicense20 worker = new ApacheSoftwareLicense20();
+ final Document subject = new MockLocation("subject");
+ assertTrue(worker.match(subject, ApacheSoftwareLicense20.FIRST_LICENSE_LINE));
assertTrue(worker.match(subject, " Licensed under the Apache License, Version 2.0 (the \"License\");"));
assertTrue(worker.match(subject, "Licensed under the Apache License, Version 2.0 (the \"License\");"));
assertTrue(worker.match(subject, " * Licensed under the Apache License, Version 2.0 (the \"License\");"));
@@ -65,6 +65,6 @@ public class ApacheSoftwareLicense20Test
assertTrue(worker.match(subject, " ## Licensed under the Apache License, Version 2.0 (the \"License\");"));
assertTrue(worker.match(subject, " ## Licensed under the Apache License, Version 2.0 (the \"License\") ##);"));
assertFalse(worker.match(subject, "'Behold, Telemachus! (nor fear the sight,)"));
- }
-
+ }
+
}
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java Mon Oct 15 21:10:08 2012
@@ -28,50 +28,50 @@ import org.apache.rat.report.claim.impl.
public class MatcherMultiplexerTest extends TestCase {
- private static final String LINE_ONE = "Line One";
- private static final String LINE_TWO = "Line Two";
-
+ private static final String LINE_ONE = "Line One";
+ private static final String LINE_TWO = "Line Two";
+
MockClaimReporter reporter;
- MockLicenseMatcher matcherOne;
- MockLicenseMatcher matcherTwo;
+ MockLicenseMatcher matcherOne;
+ MockLicenseMatcher matcherTwo;
+
+ HeaderMatcherMultiplexer multiplexer;
- HeaderMatcherMultiplexer multiplexer;
-
- protected void setUp() throws Exception {
- super.setUp();
- matcherOne = new MockLicenseMatcher();
- matcherTwo = new MockLicenseMatcher();
- IHeaderMatcher[] matchers = {matcherOne, matcherTwo};
- multiplexer = new HeaderMatcherMultiplexer(matchers);
+ protected void setUp() throws Exception {
+ super.setUp();
+ matcherOne = new MockLicenseMatcher();
+ matcherTwo = new MockLicenseMatcher();
+ IHeaderMatcher[] matchers = {matcherOne, matcherTwo};
+ multiplexer = new HeaderMatcherMultiplexer(matchers);
reporter = new MockClaimReporter();
- }
+ }
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testMatcherLine() throws Exception {
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testMatcherLine() throws Exception {
matcherOne.result = false;
matcherTwo.result = false;
final Document subject = new MockLocation("subject");
- multiplexer.match(subject, LINE_ONE);
- assertEquals("One line", 1, matcherOne.lines.size());
- assertEquals("Same as line passed", LINE_ONE, matcherOne.lines.get(0));
- assertEquals("One line", 1, matcherTwo.lines.size());
- assertEquals("Same as line passed", LINE_ONE, matcherTwo.lines.get(0));
- multiplexer.match(subject, LINE_TWO);
- assertEquals("One line", 2, matcherOne.lines.size());
- assertEquals("Same as line passed", LINE_TWO, matcherOne.lines.get(1));
- assertEquals("One line", 2, matcherTwo.lines.size());
- assertEquals("Same as line passed", LINE_TWO, matcherTwo.lines.get(1));
- }
-
- public void testReset() {
- multiplexer.reset();
- assertEquals("Reset once", 1, matcherOne.resets);
- assertEquals("Reset once", 1, matcherTwo.resets);
- multiplexer.reset();
- assertEquals("Reset twice", 2, matcherOne.resets);
- assertEquals("Reset twice", 2, matcherTwo.resets);
- }
+ multiplexer.match(subject, LINE_ONE);
+ assertEquals("One line", 1, matcherOne.lines.size());
+ assertEquals("Same as line passed", LINE_ONE, matcherOne.lines.get(0));
+ assertEquals("One line", 1, matcherTwo.lines.size());
+ assertEquals("Same as line passed", LINE_ONE, matcherTwo.lines.get(0));
+ multiplexer.match(subject, LINE_TWO);
+ assertEquals("One line", 2, matcherOne.lines.size());
+ assertEquals("Same as line passed", LINE_TWO, matcherOne.lines.get(1));
+ assertEquals("One line", 2, matcherTwo.lines.size());
+ assertEquals("Same as line passed", LINE_TWO, matcherTwo.lines.get(1));
+ }
+
+ public void testReset() {
+ multiplexer.reset();
+ assertEquals("Reset once", 1, matcherOne.resets);
+ assertEquals("Reset once", 1, matcherTwo.resets);
+ multiplexer.reset();
+ assertEquals("Reset twice", 2, matcherOne.resets);
+ assertEquals("Reset twice", 2, matcherTwo.resets);
+ }
}
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/document/impl/SingularFileDocumentTest.java Mon Oct 15 21:10:08 2012
@@ -31,8 +31,8 @@ import static org.junit.Assert.assertEqu
import static org.junit.Assert.assertNotNull;
public class SingularFileDocumentTest {
- private Document document;
- private File file;
+ private Document document;
+ private File file;
@Before
public void setUp() throws Exception {
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportFactoryTest.java Mon Oct 15 21:10:08 2012
@@ -57,7 +57,7 @@ public class XmlReportFactoryTest {
@Test
public void standardReport() throws Exception {
- final String elementsPath = Resources.getResourceDirectory("elements/Source.java");
+ final String elementsPath = Resources.getResourceDirectory("elements/Source.java");
final MockLicenseMatcher mockLicenseMatcher = new MockLicenseMatcher();
DirectoryWalker directory = new DirectoryWalker(new File(elementsPath), IGNORE_EMPTY);
final ClaimStatistic statistic = new ClaimStatistic();
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlReportTest.java Mon Oct 15 21:10:08 2012
@@ -76,7 +76,7 @@ public class XmlReportTest {
@Test
public void baseReport() throws Exception {
- final String elementsPath = Resources.getResourceDirectory("elements/Source.java");
+ final String elementsPath = Resources.getResourceDirectory("elements/Source.java");
DirectoryWalker directory = new DirectoryWalker(new File(elementsPath), IGNORE);
report.startReport();
report(directory);
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlUtils.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlUtils.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlUtils.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/report/xml/XmlUtils.java Mon Oct 15 21:10:08 2012
@@ -46,29 +46,29 @@ public final class XmlUtils {
}
public static final XMLReader newXMLReader() throws SAXException, ParserConfigurationException {
- final SAXParserFactory spf = SAXParserFactory.newInstance();
- spf.setValidating(false);
- spf.setNamespaceAware(true);
- return spf.newSAXParser().getXMLReader();
+ final SAXParserFactory spf = SAXParserFactory.newInstance();
+ spf.setValidating(false);
+ spf.setNamespaceAware(true);
+ return spf.newSAXParser().getXMLReader();
}
public static final boolean isWellFormedXml(final InputSource isource) {
- try {
- newXMLReader().parse(isource);
- return true;
- } catch (SAXException e) {
- System.out.println(e);
- e.printStackTrace();
- return false;
- } catch (IOException e) {
- throw new UndeclaredThrowableException(e);
- } catch (ParserConfigurationException e) {
- throw new UndeclaredThrowableException(e);
- }
+ try {
+ newXMLReader().parse(isource);
+ return true;
+ } catch (SAXException e) {
+ System.out.println(e);
+ e.printStackTrace();
+ return false;
+ } catch (IOException e) {
+ throw new UndeclaredThrowableException(e);
+ } catch (ParserConfigurationException e) {
+ throw new UndeclaredThrowableException(e);
+ }
}
public static final boolean isWellFormedXml(final InputStream in) throws Exception {
- return isWellFormedXml(new InputSource(in));
+ return isWellFormedXml(new InputSource(in));
}
public static final Document toDom(final InputStream in) throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError {
Modified: creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/Resources.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/Resources.java?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/Resources.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/test/java/org/apache/rat/test/utils/Resources.java Mon Oct 15 21:10:08 2012
@@ -35,52 +35,52 @@ import org.apache.rat.document.impl.Docu
* test cases.
*/
public class Resources {
- /**
- * Private constructor, to prevent accidental instantiation.
- */
- private Resources() {
- // Does nothing
- }
+ /**
+ * Private constructor, to prevent accidental instantiation.
+ */
+ private Resources() {
+ // Does nothing
+ }
- /**
- * Locates a resource file in the class path.
- */
- public static File getResourceFile(String pResource) throws IOException {
- final File f = new File("src/test/resources", pResource);
- if (!f.isFile()) {
- throw new FileNotFoundException("Unable to locate resource file: " + pResource);
- }
- return f;
- }
+ /**
+ * Locates a resource file in the class path.
+ */
+ public static File getResourceFile(String pResource) throws IOException {
+ final File f = new File("src/test/resources", pResource);
+ if (!f.isFile()) {
+ throw new FileNotFoundException("Unable to locate resource file: " + pResource);
+ }
+ return f;
+ }
- /**
- * Locates a resource file in the class path and returns an {@link InputStream}.
- */
- public static InputStream getResourceStream(String pResource) throws IOException {
- return new FileInputStream(getResourceFile(pResource));
- }
+ /**
+ * Locates a resource file in the class path and returns an {@link InputStream}.
+ */
+ public static InputStream getResourceStream(String pResource) throws IOException {
+ return new FileInputStream(getResourceFile(pResource));
+ }
- /**
- * Locates a resource file in the class path and returns a {@link Reader}.
- */
- public static Reader getResourceReader(String pResource) throws IOException {
- return new InputStreamReader(getResourceStream(pResource), "UTF-8");
- }
+ /**
+ * Locates a resource file in the class path and returns a {@link Reader}.
+ */
+ public static Reader getResourceReader(String pResource) throws IOException {
+ return new InputStreamReader(getResourceStream(pResource), "UTF-8");
+ }
- /**
- * Locates a resource file in the class path and returns a {@link BufferedReader}.
- */
- public static BufferedReader getBufferedResourceReader(String pResource) throws IOException {
- return new BufferedReader(getResourceReader(pResource));
- }
+ /**
+ * Locates a resource file in the class path and returns a {@link BufferedReader}.
+ */
+ public static BufferedReader getBufferedResourceReader(String pResource) throws IOException {
+ return new BufferedReader(getResourceReader(pResource));
+ }
- /**
- * Locates the name of a directory, which contains the given
- * resource file.
- */
- public static String getResourceDirectory(String pResource) throws IOException {
- final File resource = getResourceFile(pResource);
- final File dir = resource.getParentFile();
- return DocumentImplUtils.toName(dir);
- }
+ /**
+ * Locates the name of a directory, which contains the given
+ * resource file.
+ */
+ public static String getResourceDirectory(String pResource) throws IOException {
+ final File resource = getResourceFile(pResource);
+ final File dir = resource.getParentFile();
+ return DocumentImplUtils.toName(dir);
+ }
}
Modified: creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml (original)
+++ creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-bad-configurations.xml Mon Oct 15 21:10:08 2012
@@ -21,20 +21,20 @@
-->
<project default="allTests"
- name='report-bad-configurations'
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:rat="antlib:org.apache.rat.anttasks">
+ name='report-bad-configurations'
+ xmlns:au="antlib:org.apache.ant.antunit"
+ xmlns:rat="antlib:org.apache.rat.anttasks">
- <taskdef uri="antlib:org.apache.ant.antunit"
- resource="org/apache/ant/antunit/antlib.xml"
- classpath="${test.classpath}" />
-
- <taskdef uri="antlib:org.apache.rat.anttasks" resource="org/apache/rat/anttasks/antlib.xml">
- <classpath>
- <pathelement location="${jar.name}" />
- <pathelement path='${test.classpath}' />
- </classpath>
- </taskdef>
+ <taskdef uri="antlib:org.apache.ant.antunit"
+ resource="org/apache/ant/antunit/antlib.xml"
+ classpath="${test.classpath}" />
+
+ <taskdef uri="antlib:org.apache.rat.anttasks" resource="org/apache/rat/anttasks/antlib.xml">
+ <classpath>
+ <pathelement location="${jar.name}" />
+ <pathelement path='${test.classpath}' />
+ </classpath>
+ </taskdef>
<target name="allTests">
<au:antunit xmlns:au="antlib:org.apache.ant.antunit"
Modified: creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml (original)
+++ creadur/rat/trunk/apache-rat-tasks/src/test/resources/antunit/report-normal-operation.xml Mon Oct 15 21:10:08 2012
@@ -21,9 +21,9 @@
-->
<project name='report-normal-operation'
- default="allTests"
- xmlns:au="antlib:org.apache.ant.antunit"
- xmlns:rat="antlib:org.apache.rat.anttasks">
+ default="allTests"
+ xmlns:au="antlib:org.apache.ant.antunit"
+ xmlns:rat="antlib:org.apache.rat.anttasks">
<property name="output.dir" location="../../../../target/testoutput"/>
<mkdir dir="${output.dir}/dest"/>
@@ -42,7 +42,7 @@
resource="org/apache/rat/anttasks/antlib.xml"
classpathref="all-classes-needed-for-tests"
loaderref="testloader"/>
-
+
<target name="setUp">
<pathconvert dirsep="/" property="file.name">
<path>
@@ -308,15 +308,15 @@ import org.apache.rat.analysis.license.B
import org.apache.rat.analysis.RatHeaderAnalysisException;
public class Matcher extends BaseLicense implements IHeaderMatcher {
public Matcher() {
- super(new MetaData.Datum(MetaData.RAT_URL_LICENSE_FAMILY_CATEGORY, "EXMPL"),
+ 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(Document subject, String line) throws RatHeaderAnalysisException {
- reportOnLicense(subject);
- return true;
+ reportOnLicense(subject);
+ return true;
}
}
]]></echo>
@@ -325,8 +325,8 @@ package org.example;
import org.apache.rat.license.ILicenseFamily;
public class LicenseFamily implements ILicenseFamily {
public String getFamilyName() {
- return "Example License";
- }
+ return "Example License";
+ }
}
]]></echo>
<javac srcdir="${output.dir}/src" destdir="${output.dir}/dest"
Modified: creadur/rat/trunk/pom.xml
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/pom.xml?rev=1398524&r1=1398523&r2=1398524&view=diff
==============================================================================
--- creadur/rat/trunk/pom.xml (original)
+++ creadur/rat/trunk/pom.xml Mon Oct 15 21:10:08 2012
@@ -82,7 +82,7 @@ agnostic home for software distribution
<rat.snapshots.name>${distMgmtSnapshotsName}</rat.snapshots.name> <!-- Parent POM uses these properties -->
<rat.snapshots.url>${distMgmtSnapshotsUrl}</rat.snapshots.url>
- <!-- maven plugn versions -->
+ <!-- maven plugin versions -->
<surefire.version>2.12.3</surefire.version>
</properties>
@@ -275,14 +275,14 @@ agnostic home for software distribution
<version>${surefire.version}</version>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <outputEncoding>${project.build.sourceEncoding}</outputEncoding>
- <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
- <relativizeDecorationLinks>false</relativizeDecorationLinks>
- </configuration>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.1</version>
+ <configuration>
+ <outputEncoding>${project.build.sourceEncoding}</outputEncoding>
+ <inputEncoding>${project.build.sourceEncoding}</inputEncoding>
+ <relativizeDecorationLinks>false</relativizeDecorationLinks>
+ </configuration>
</plugin>
</plugins>
</pluginManagement>
@@ -464,7 +464,7 @@ agnostic home for software distribution
</licenses>
<organization>
- <name>Apache Software Foundation</name>
- <url>http://www.apache.org</url>
+ <name>Apache Software Foundation</name>
+ <url>http://www.apache.org</url>
</organization>
</project>
\ No newline at end of file