flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [10/24] git commit: [flex-falcon] [refs/heads/JsToAs] - inject asf headers into js files
Date Tue, 22 Sep 2015 17:34:48 GMT
inject asf headers into js files


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/1791c86a
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/1791c86a
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/1791c86a

Branch: refs/heads/JsToAs
Commit: 1791c86a8ba0298721cccb30dfbaae9f75d1d35d
Parents: e934ece
Author: Alex Harui <aharui@apache.org>
Authored: Thu Sep 10 22:31:14 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Sep 22 10:35:13 2015 -0700

----------------------------------------------------------------------
 build.properties | 20 ++++++++++++++++++++
 build.xml        | 15 +++++++++++++++
 2 files changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1791c86a/build.properties
----------------------------------------------------------------------
diff --git a/build.properties b/build.properties
index 58f7002..704fd2c 100644
--- a/build.properties
+++ b/build.properties
@@ -18,3 +18,23 @@
 ################################################################################
 
 release.version = 0.5.0
+
+generated.by.match=/\\*\\*. \\* Generated by Apache Flex Cross-Compiler
+generated.by.comment=/**\n\
+\ * Generated by Apache Flex Cross-Compiler
+
+asfheader=/**\n\
+\ * Licensed under the Apache License, Version 2.0 (the 'License');\n\
+\ * you may not use this file except in compliance with the License.\n\
+\ * 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, software\n\
+\ * distributed under the License is distributed on an 'AS IS' BASIS,\n\
+\ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
+\ * See the License for the specific language governing permissions and\n\
+\ * limitations under the License.\n\
+\ */\n
+
+

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/1791c86a/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 1c50922..27cb7e8 100644
--- a/build.xml
+++ b/build.xml
@@ -693,6 +693,7 @@
         <chmod dir="${basedir}/temp/compiler/generated/dist/sdk/bin" excludes="**/*.bat"
perm="+x" />
         <chmod dir="${basedir}/temp/compiler/generated/dist/sdk/bin-legacy" excludes="**/*.bat"
perm="+x" />
 
+        <antcall target="inject-asf-header" />
         <antcall target="binary-package-zip"/>
         <antcall target="binary-package-tgz"/>
         
@@ -833,6 +834,7 @@
                 <exclude name="README_JX"/>
                 <exclude name="RELEASE_NOTES_JX"/>
                 <exclude name="NOTICE.jx"/>
+                <exclude name="NOTICE.base"/>
                 <exclude name="NOTICE.swfutils"/>
             </fileset>
         </rat:report>
@@ -946,4 +948,17 @@
         </exec>
     </target>
 
+    <!-- may not work on windows -->
+    <target name="inject-asf-header" >
+        <replaceregexp match="${generated.by.match}"
+            replace="${asfheader}${generated.by.comment}"
+            byline="false"
+            flags="s">
+            <fileset dir="${basedir}/temp">
+                <include name="**/*.js" />
+            </fileset>
+        </replaceregexp>
+    </target>
+
+
 </project>


Mime
View raw message