Repository: flex-asjs Updated Branches: refs/heads/develop 00072128a -> 1040589de
add 'Generated by...' to generated js files Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/1040589d Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/1040589d Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/1040589d Branch: refs/heads/develop Commit: 1040589dec531f64e805077d8d5aa4c729ed9660 Parents: 0007212 Author: Alex Harui <[email protected]> Authored: Thu Sep 10 23:45:42 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Thu Sep 10 23:45:53 2015 -0700 ---------------------------------------------------------------------- build.properties | 20 ++++++++++++++++++++ build.xml | 15 ++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1040589d/build.properties ---------------------------------------------------------------------- diff --git a/build.properties b/build.properties index cd88f0a..ad5a887 100644 --- a/build.properties +++ b/build.properties @@ -73,3 +73,23 @@ manifest.Implementation-Title=Apache Flex SDK manifest.Implementation-Version=${release.version} manifest.Implementation-Vendor=The Apache Software Foundation manifest.Implementation-Vendor-Id=org.apache + +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-asjs/blob/1040589d/build.xml ---------------------------------------------------------------------- diff --git a/build.xml b/build.xml index bf32096..c6b6c4a 100644 --- a/build.xml +++ b/build.xml @@ -785,7 +785,8 @@ <!-- If GOOG_HOME is set, copy GCL from there, else copy from the downloaded folder --> <antcall target="copy-gcl-from-goog-home"/> <antcall target="copy-gcl-from-downloaded"/> - + + <antcall target="inject-asf-header" /> <antcall target="binary-package-zip"/> <antcall target="binary-package-tgz"/> <copy todir="${basedir}/out" file="${basedir}/apache-flex-flexjs-installer-config.xml" /> @@ -1701,6 +1702,18 @@ <property name="base.folder.name" value="${basedir}/.." /> </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> + <target name="last-message-if-airsdk" if="airsdk.found" > <echo>Please change directory to ${base.folder.name}/flex-asjs and run ant to complete build</echo> </target>
