You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/07/21 20:34:50 UTC

svn commit: r1902925 - in /xmlbeans/trunk: build.gradle legal/ legal/HEADER

Author: fanningpj
Date: Thu Jul 21 20:34:50 2022
New Revision: 1902925

URL: http://svn.apache.org/viewvc?rev=1902925&view=rev
Log:
add license header to pom

Added:
    xmlbeans/trunk/legal/
    xmlbeans/trunk/legal/HEADER
Modified:
    xmlbeans/trunk/build.gradle

Modified: xmlbeans/trunk/build.gradle
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/build.gradle?rev=1902925&r1=1902924&r2=1902925&view=diff
==============================================================================
--- xmlbeans/trunk/build.gradle (original)
+++ xmlbeans/trunk/build.gradle Thu Jul 21 20:34:50 2022
@@ -573,6 +573,17 @@ publishing {
                         organization = 'Apache POI'
                     }
                 }
+
+                withXml {
+                    def r = asElement()
+                    def doc = r.getOwnerDocument()
+                    def hdr = new File('../legal/HEADER')
+                    if (!hdr.exists()) hdr = new File('legal/HEADER')
+                    def asl = doc.createComment(hdr.text)
+                    // adding ASF header before root node is ignored
+                    // doc.insertBefore(asl, doc.getDocumentElement())
+                    r.insertBefore(asl, r.getFirstChild())
+                }
             }
         }
     }

Added: xmlbeans/trunk/legal/HEADER
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/legal/HEADER?rev=1902925&view=auto
==============================================================================
--- xmlbeans/trunk/legal/HEADER (added)
+++ xmlbeans/trunk/legal/HEADER Thu Jul 21 20:34:50 2022
@@ -0,0 +1,17 @@
+
+====================================================================
+   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.
+====================================================================



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org