You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/09/11 08:43:29 UTC
[2/4] git commit: [flex-falcon] [refs/heads/develop] - inject asf
headers into js files
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/d026165d
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/d026165d
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/d026165d
Branch: refs/heads/develop
Commit: d026165dc5f4b76d8384ffe8f7c5adc3ec637608
Parents: 61b2f64
Author: Alex Harui <ah...@apache.org>
Authored: Thu Sep 10 22:31:14 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Sep 10 22:31:14 2015 -0700
----------------------------------------------------------------------
build.properties | 20 ++++++++++++++++++++
build.xml | 15 +++++++++++++++
2 files changed, 35 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d026165d/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/d026165d/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>