NIFI-280 - removing apache license from generated HTML

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/f269861d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/f269861d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/f269861d

Branch: refs/heads/NIFI-353
Commit: f269861d9d5b7e1d2a54750840831239a16490d1
Parents: 0fa553a
Author: danbress <[email protected]>
Authored: Mon Feb 2 21:01:57 2015 -0500
Committer: danbress <[email protected]>
Committed: Sat Feb 7 10:47:08 2015 -0500

----------------------------------------------------------------------
 .../html/HtmlDocumentationWriter.java           | 24 ++------------------
 .../src/main/resources/apache.license           | 12 ----------
 2 files changed, 2 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/f269861d/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
index f2ce158..40618fe 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
@@ -25,14 +25,13 @@ import javax.xml.stream.XMLOutputFactory;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamWriter;
 
-import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.nifi.annotation.documentation.CapabilityDescription;
+import org.apache.nifi.annotation.documentation.Tags;
 import org.apache.nifi.components.AllowableValue;
 import org.apache.nifi.components.ConfigurableComponent;
 import org.apache.nifi.components.PropertyDescriptor;
 import org.apache.nifi.documentation.DocumentationWriter;
-import org.apache.nifi.annotation.documentation.CapabilityDescription;
-import org.apache.nifi.annotation.documentation.Tags;
 
 /**
  * Generates HTML documentation for a ConfigurableComponent. This class is used
@@ -48,22 +47,6 @@ public class HtmlDocumentationWriter implements 
DocumentationWriter {
         */
        public static final String ADDITIONAL_DETAILS_HTML = 
"additionalDetails.html";
 
-       /**
-        * The apache licence to apply to the top of the generated html
-        */
-       private static final String apacheLicense;
-
-       static {
-               String value = null;
-               try {
-                       value = 
IOUtils.toString(ClassLoader.getSystemResourceAsStream("apache.license"));
-               } catch (IOException e) {
-                       e.printStackTrace();
-               }
-
-               apacheLicense = value;
-       }
-
        @Override
        public void write(final ConfigurableComponent configurableComponent, 
final OutputStream streamToWriteTo,
                        final boolean includesAdditionalDocumentation) throws 
IOException {
@@ -95,9 +78,6 @@ public class HtmlDocumentationWriter implements 
DocumentationWriter {
         */
        protected void writeHead(final ConfigurableComponent 
configurableComponent, final XMLStreamWriter xmlStreamWriter)
                        throws XMLStreamException {
-
-               // write the apache license
-               xmlStreamWriter.writeComment(apacheLicense);
                xmlStreamWriter.writeStartElement("head");
                xmlStreamWriter.writeStartElement("meta");
                xmlStreamWriter.writeAttribute("charset", "utf-8");

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/f269861d/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/resources/apache.license
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/resources/apache.license
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/resources/apache.license
deleted file mode 100644
index d7b32e8..0000000
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/resources/apache.license
+++ /dev/null
@@ -1,12 +0,0 @@
-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.
\ No newline at end of file

Reply via email to