https://issues.apache.org/jira/browse/EXTSCRIPT-179 forgot the license header
git-svn-id: https://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk@1404094 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/extscript-doccompiler/src/main/java/org/apache/myfaces/extension/scripting/doccompiler/XSLTDocCompiler.java b/extscript-doccompiler/src/main/java/org/apache/myfaces/extension/scripting/doccompiler/XSLTDocCompiler.java
index 76364fa..9466747 100644
--- a/extscript-doccompiler/src/main/java/org/apache/myfaces/extension/scripting/doccompiler/XSLTDocCompiler.java
+++ b/extscript-doccompiler/src/main/java/org/apache/myfaces/extension/scripting/doccompiler/XSLTDocCompiler.java
@@ -199,6 +199,25 @@
static String formatter(String in)
{
StringBuilder target = new StringBuilder();
+ target.append("<!--\n" +
+ " Licensed to the Apache Software Foundation (ASF) under one\n" +
+ " or more contributor license agreements. See the NOTICE file\n" +
+ " distributed with this work for additional information\n" +
+ " regarding copyright ownership. The ASF licenses this file\n" +
+ " to you under the Apache License, Version 2.0 (the\n" +
+ " \"License\"); you may not use this file except in compliance\n" +
+ " with the License. You may obtain a copy of the License at\n" +
+ "\n" +
+ " http://www.apache.org/licenses/LICENSE-2.0\n" +
+ "\n" +
+ " Unless required by applicable law or agreed to in writing,\n" +
+ " software distributed under the License is distributed on an\n" +
+ " \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n" +
+ " KIND, either express or implied. See the License for the\n" +
+ " specific language governing permissions and limitations\n" +
+ " under the License.\n" +
+ "-->");
+
String[] lines = in.split("\n+");
for (int cnt = 0; cnt < lines.length; cnt++)