incubator-rat-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r964315 - in /incubator/rat/main/trunk: apache-rat-core/src/main/java/org/apache/rat/ apache-rat-core/src/main/java/org/apache/rat/report/ apache-rat-core/src/main/java/org/apache/rat/report/claim/util/ apache-rat-plugin/src/test/it3/ apach...
Date Thu, 15 Jul 2010 06:49:53 GMT
Author: bodewig
Date: Thu Jul 15 06:49:52 2010
New Revision: 964315

URL: http://svn.apache.org/viewvc?rev=964315&view=rev
Log:
linefeeds

Modified:
    incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
  (contents, props changed)
    incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java
  (contents, props changed)
    incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
  (contents, props changed)
    incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt   (contents, props changed)
    incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt   (contents,
props changed)
    incubator/rat/main/trunk/src/site/apt/downloads.apt   (contents, props changed)

Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
(original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
Thu Jul 15 06:49:52 2010
@@ -1,124 +1,124 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- */ 
-package org.apache.rat;
-
-import org.apache.rat.analysis.IHeaderMatcher;
-import org.apache.rat.license.ILicenseFamily;
-
-
-/**
- * A configuration object is used by the frontend to invoke the
- * {@link Report}. Basically, the sole purpose of the frontends is
- * to create the configuration and invoke the {@link Report}.
- */
-public class ReportConfiguration {
-    private IHeaderMatcher headerMatcher;
-    private ILicenseFamily[] approvedLicenseNames;
-    private boolean addingLicenses;
-    private boolean addingLicensesForced;
-    private String copyrightMessage;
-
-    /**
-     * Returns the header matcher.
-     */
-    public IHeaderMatcher getHeaderMatcher() {
-        return headerMatcher;
-    }
-
-    /**
-     * Sets the header matcher.
-     */
-    public void setHeaderMatcher(IHeaderMatcher headerMatcher) {
-        this.headerMatcher = headerMatcher;
-    }
-
-    /**
-     * Returns the set of approved license names.
-     */
-    public ILicenseFamily[] getApprovedLicenseNames() {
-        return approvedLicenseNames;
-    }
-
-    /**
-     * Sets the set of approved license names.
-     */
-    public void setApprovedLicenseNames(ILicenseFamily[] approvedLicenseNames) {
-        this.approvedLicenseNames = approvedLicenseNames;
-    }
-
-    /**
-     * If RAT is adding license headers: Returns the optional
-     * copyright message. This value is ignored, if no
-     * license headers are added.
-     * @see #isAddingLicenses()
-     */
-    public String getCopyrightMessage() {
-        return copyrightMessage;
-    }
-
-    /**
-     * If RAT is adding license headers: Sets the optional
-     * copyright message. This value is ignored, if no
-     * license headers are added.
-     * @see #setAddingLicenses(boolean)
-     */
-    public void setCopyrightMessage(String copyrightMessage) {
-        this.copyrightMessage = copyrightMessage;
-    }
-
-    /**
-     * If RAT is adding license headers: Returns, whether adding
-     * license headers is enforced. This value is ignored, if no
-     * license headers are added.
-     * @see #isAddingLicenses()
-     */
-    public boolean isAddingLicensesForced() {
-        return addingLicensesForced;
-    }
-
-    /**
-     * If RAT is adding license headers: Sets, whether adding
-     * license headers is enforced. This value is ignored, if no
-     * license headers are added.
-     * @see #isAddingLicenses()
-     */
-    public void setAddingLicensesForced(boolean addingLicensesForced) {
-        this.addingLicensesForced = addingLicensesForced;
-    }
-
-    /**
-     * Returns, whether RAT should add missing license headers.
-     * @see #isAddingLicensesForced()
-     * @see #getCopyrightMessage()
-     */
-    public boolean isAddingLicenses() {
-        return addingLicenses;
-    }
-
-    /**
-     * Returns, whether RAT should add missing license headers.
-     * @see #setAddingLicensesForced(boolean)
-     * @see #setCopyrightMessage(String)
-     */
-    public void setAddingLicenses(boolean addingLicenses) {
-        this.addingLicenses = addingLicenses;
-    }
-
-    
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ */ 
+package org.apache.rat;
+
+import org.apache.rat.analysis.IHeaderMatcher;
+import org.apache.rat.license.ILicenseFamily;
+
+
+/**
+ * A configuration object is used by the frontend to invoke the
+ * {@link Report}. Basically, the sole purpose of the frontends is
+ * to create the configuration and invoke the {@link Report}.
+ */
+public class ReportConfiguration {
+    private IHeaderMatcher headerMatcher;
+    private ILicenseFamily[] approvedLicenseNames;
+    private boolean addingLicenses;
+    private boolean addingLicensesForced;
+    private String copyrightMessage;
+
+    /**
+     * Returns the header matcher.
+     */
+    public IHeaderMatcher getHeaderMatcher() {
+        return headerMatcher;
+    }
+
+    /**
+     * Sets the header matcher.
+     */
+    public void setHeaderMatcher(IHeaderMatcher headerMatcher) {
+        this.headerMatcher = headerMatcher;
+    }
+
+    /**
+     * Returns the set of approved license names.
+     */
+    public ILicenseFamily[] getApprovedLicenseNames() {
+        return approvedLicenseNames;
+    }
+
+    /**
+     * Sets the set of approved license names.
+     */
+    public void setApprovedLicenseNames(ILicenseFamily[] approvedLicenseNames) {
+        this.approvedLicenseNames = approvedLicenseNames;
+    }
+
+    /**
+     * If RAT is adding license headers: Returns the optional
+     * copyright message. This value is ignored, if no
+     * license headers are added.
+     * @see #isAddingLicenses()
+     */
+    public String getCopyrightMessage() {
+        return copyrightMessage;
+    }
+
+    /**
+     * If RAT is adding license headers: Sets the optional
+     * copyright message. This value is ignored, if no
+     * license headers are added.
+     * @see #setAddingLicenses(boolean)
+     */
+    public void setCopyrightMessage(String copyrightMessage) {
+        this.copyrightMessage = copyrightMessage;
+    }
+
+    /**
+     * If RAT is adding license headers: Returns, whether adding
+     * license headers is enforced. This value is ignored, if no
+     * license headers are added.
+     * @see #isAddingLicenses()
+     */
+    public boolean isAddingLicensesForced() {
+        return addingLicensesForced;
+    }
+
+    /**
+     * If RAT is adding license headers: Sets, whether adding
+     * license headers is enforced. This value is ignored, if no
+     * license headers are added.
+     * @see #isAddingLicenses()
+     */
+    public void setAddingLicensesForced(boolean addingLicensesForced) {
+        this.addingLicensesForced = addingLicensesForced;
+    }
+
+    /**
+     * Returns, whether RAT should add missing license headers.
+     * @see #isAddingLicensesForced()
+     * @see #getCopyrightMessage()
+     */
+    public boolean isAddingLicenses() {
+        return addingLicenses;
+    }
+
+    /**
+     * Returns, whether RAT should add missing license headers.
+     * @see #setAddingLicensesForced(boolean)
+     * @see #setCopyrightMessage(String)
+     */
+    public void setAddingLicenses(boolean addingLicenses) {
+        this.addingLicenses = addingLicenses;
+    }
+
+    
+}

Propchange: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java
(original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java
Thu Jul 15 06:49:52 2010
@@ -1,40 +1,40 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- */ 
-package org.apache.rat.report;
-
-import org.apache.rat.api.Document;
-import org.apache.rat.api.RatException;
-
-
-/**
- * Abstract base class for deriving implementations of {@link RatReport}.
- */
-public abstract class AbstractReport implements RatReport {
-    public void startReport() throws RatException {
-        // Does nothing
-    }
-
-    public void report(Document document) throws RatException {
-        // Does nothing
-    }
-
-    public void endReport() throws RatException {
-        // Does nothing
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ */ 
+package org.apache.rat.report;
+
+import org.apache.rat.api.Document;
+import org.apache.rat.api.RatException;
+
+
+/**
+ * Abstract base class for deriving implementations of {@link RatReport}.
+ */
+public abstract class AbstractReport implements RatReport {
+    public void startReport() throws RatException {
+        // Does nothing
+    }
+
+    public void report(Document document) throws RatException {
+        // Does nothing
+    }
+
+    public void endReport() throws RatException {
+        // Does nothing
+    }
+}

Propchange: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/AbstractReport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
(original)
+++ incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
Thu Jul 15 06:49:52 2010
@@ -1,56 +1,56 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- */ 
-package org.apache.rat.report.claim.util;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.apache.rat.annotation.AbstractLicenceAppender;
-import org.apache.rat.annotation.ApacheV2LicenceAppender;
-import org.apache.rat.api.MetaData;
-import org.apache.rat.api.MetaData.Datum;
-import org.apache.rat.api.RatException;
-import org.apache.rat.report.AbstractReport;
-
-
-public class LicenseAddingReport extends AbstractReport {
-    private final AbstractLicenceAppender appender;
-
-    public LicenseAddingReport(String pCopyrightMsg, boolean pForced) {
-        appender = pCopyrightMsg == null ? new ApacheV2LicenceAppender() : new ApacheV2LicenceAppender(pCopyrightMsg);
-        appender.setForce(pForced);
-    }
-
-    public void report(org.apache.rat.api.Document document) throws RatException {
-        final MetaData metaData = document.getMetaData();
-        final Datum licenseHeader = metaData.get(MetaData.RAT_URL_HEADER_CATEGORY);
-        if (licenseHeader == null
-                ||  MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_UNKNOWN.getValue().equals(licenseHeader.getValue()))
{
-            final File file = new File(document.getName());
-            if (file.isFile()) {
-                try {
-                    appender.append(file);
-                } catch (IOException e) {
-                    throw new RatException(e.getMessage(), e);
-                }
-            }
-        }
-        metaData.getData();
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ */ 
+package org.apache.rat.report.claim.util;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.rat.annotation.AbstractLicenceAppender;
+import org.apache.rat.annotation.ApacheV2LicenceAppender;
+import org.apache.rat.api.MetaData;
+import org.apache.rat.api.MetaData.Datum;
+import org.apache.rat.api.RatException;
+import org.apache.rat.report.AbstractReport;
+
+
+public class LicenseAddingReport extends AbstractReport {
+    private final AbstractLicenceAppender appender;
+
+    public LicenseAddingReport(String pCopyrightMsg, boolean pForced) {
+        appender = pCopyrightMsg == null ? new ApacheV2LicenceAppender() : new ApacheV2LicenceAppender(pCopyrightMsg);
+        appender.setForce(pForced);
+    }
+
+    public void report(org.apache.rat.api.Document document) throws RatException {
+        final MetaData metaData = document.getMetaData();
+        final Datum licenseHeader = metaData.get(MetaData.RAT_URL_HEADER_CATEGORY);
+        if (licenseHeader == null
+                ||  MetaData.RAT_LICENSE_FAMILY_CATEGORY_DATUM_UNKNOWN.getValue().equals(licenseHeader.getValue()))
{
+            final File file = new File(document.getName());
+            if (file.isFile()) {
+                try {
+                    appender.append(file);
+                } catch (IOException e) {
+                    throw new RatException(e.getMessage(), e);
+                }
+            }
+        }
+        metaData.getData();
+    }
+}

Propchange: incubator/rat/main/trunk/apache-rat-core/src/main/java/org/apache/rat/report/claim/util/LicenseAddingReport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt (original)
+++ incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt Thu Jul 15 06:49:52 2010
@@ -1,8 +1,8 @@
-    --------------
-    Some text file
-    --------------
-
-Some text file
-
-  This is a text file, which intentionally has no Apache License Header.
-  The RAT plugin should detect it.
+    --------------
+    Some text file
+    --------------
+
+Some text file
+
+  This is a text file, which intentionally has no Apache License Header.
+  The RAT plugin should detect it.

Propchange: incubator/rat/main/trunk/apache-rat-plugin/src/test/it3/src.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt (original)
+++ incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt Thu Jul
15 06:49:52 2010
@@ -1,8 +1,8 @@
-    --------------
-    Some text file
-    --------------
-
-Some text file
-
-  This is a text file, which intentionally has no Apache License Header.
-  The RAT plugin should detect it.
+    --------------
+    Some text file
+    --------------
+
+Some text file
+
+  This is a text file, which intentionally has no Apache License Header.
+  The RAT plugin should detect it.

Propchange: incubator/rat/main/trunk/apache-rat-tasks/src/test/resources/antunit/index.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/rat/main/trunk/src/site/apt/downloads.apt
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/src/site/apt/downloads.apt?rev=964315&r1=964314&r2=964315&view=diff
==============================================================================
--- incubator/rat/main/trunk/src/site/apt/downloads.apt (original)
+++ incubator/rat/main/trunk/src/site/apt/downloads.apt Thu Jul 15 06:49:52 2010
@@ -1,8 +1,8 @@
-   ---------
-   Downloads
-   ---------
-
-Downloads
-
-  Apache RAT binary or source distributions can be downloaded from
-  {{{http://www.apache.org/dyn/closer.cgi/incubator/rat/}}}.
+   ---------
+   Downloads
+   ---------
+
+Downloads
+
+  Apache RAT binary or source distributions can be downloaded from
+  {{{http://www.apache.org/dyn/closer.cgi/incubator/rat/}}}.

Propchange: incubator/rat/main/trunk/src/site/apt/downloads.apt
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message