http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/installer/binary_license/LICENSE ---------------------------------------------------------------------- diff --git a/flex-installer/installer/binary_license/LICENSE b/flex-installer/installer/binary_license/LICENSE deleted file mode 100644 index 51c0ab9..0000000 --- a/flex-installer/installer/binary_license/LICENSE +++ /dev/null @@ -1,236 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed 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. - - --------------------------------------------------------------------------------- - -APACHE FLEX SUBCOMPONENTS: - -The Apache Flex Installer includes a number of subcomponents with -separate copyright notices and license terms. Your use of the source -code for the these subcomponents is subject to the terms and -conditions of the following licenses. - -This product bundles as3-simple-untar, which is available under a 3-clause BSD -license. For details, see http://opensource.org/licenses/BSD-3-Clause - -This product bundles ascompress, which is available under the -MIT license. For details, see http://www.opensource.org/licenses/mit-license.php - -This product bundles as3httpclientlib, which is available under the -MIT license. For details, see deps/as3httpclientlib/. - -as3httpclientlib bundles as3corelib, which is available under a -â3-clause BSDâ license. For details, see deps/as3corelib/. - -as3httpclientlib bundles as3crypto, which is available under a -â3-clause BSDâ license. For details, see deps/as3httpclientlib/. - -The Open-Sans font is available under Apache License 2.0. For details -see common/src/assets/fonts/open-sans/ - -The NativeApplicationUpdater is available under Apache License 2.0. -For details see installer/src/com/riaspace/ - -The AS3Commons Zip is available under Apache License 2.0. -
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/installer/build.number ---------------------------------------------------------------------- diff --git a/flex-installer/installer/build.number b/flex-installer/installer/build.number deleted file mode 100644 index b8396e1..0000000 --- a/flex-installer/installer/build.number +++ /dev/null @@ -1,3 +0,0 @@ -#Copyright 2014 The Apache Software Foundation. -#Sat, 28 Sep 2013 18:23:00 +1000 -build.number=0 http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/installer/build.properties ---------------------------------------------------------------------- diff --git a/flex-installer/installer/build.properties b/flex-installer/installer/build.properties deleted file mode 100644 index a4f96b8..0000000 --- a/flex-installer/installer/build.properties +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0"?> -<!-- - - 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. - ---> - -#nano version number is added by build script -release.version=3.2 - -# Flash player version for which player global swc to use -playerglobal.version = 11.1 - -#Flex Locations -FLEX_HOME_WIN=C:/Program Files (x86)/Adobe/Adobe Flash Builder 4.6/sdks/ApacheFlex4.10.0 -FLEX_HOME_MAC=/Users/justinmclean/Documents/ApacheFlex4.10 - -#AIR Locations -AIR_HOME_WIN=${FLEX_HOME_WIN} -AIR_HOME_MAC=${FLEX_HOME_MAC} - -#App Settings -APP_NAME=InstallApacheFlex -APP_EXTENSION=mxml -APP_CONFIG_XML_NAME=installer/sdk-installer-config-4.0 -SOURCE_DIR=${basedir}/src -ASSETS_DIR=${basedir}/src/assets -LIBRARY_DIR=${basedir}/libs -RELEASE_DIR=${basedir}/release -DEPS_DIR=${basedir}/deps -BUILD_DIR=${basedir}/build -INSTALLER_PROJECT_NAME=installer -COMMON_PROJECT_NAME=common -COMMON_PROJECT_DIR=${basedir}/../${COMMON_PROJECT_NAME} -COMMON_SOURCE_DIR=${COMMON_PROJECT_DIR}/src -ANT_ON_AIR_DIR=${basedir}/../ant_on_air/bin - -#Etc Settings -DEBUG_FLAG=false -TEMP_PASS_CHANGE_THIS=random123$%^ - -#Certificate for release build. Modify only when you are making a release build (See RELEASE_GUIDE first) -STORETYPE=pkcs12 -RELEASE_KEYSTORE_FILE=C:/p/documents/certificates/installapacheflex_self.p12 -CERT_PASSWORD_FILE=C:/p/documents/certificates/installapacheflex.password -CERT_NAME=Apache Flex -CERT_ORG_UNIT= -CERT_ORG_NAME= -CERT_COUNTRY=US -CERT_KEY_TYPE=2048-RSA http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/installer/build.xml ---------------------------------------------------------------------- diff --git a/flex-installer/installer/build.xml b/flex-installer/installer/build.xml deleted file mode 100644 index 777ee60..0000000 --- a/flex-installer/installer/build.xml +++ /dev/null @@ -1,689 +0,0 @@ -<?xml version="1.0"?> -<!-- - - 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. - ---> - -<project name="Installer" basedir="." default="build"> - - <!--load environment variables prefixed with env --> - <property environment="env"/> - - <!--location of property file --> - <property file="${basedir}/local.properties" /> - <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_WIN}" > - <and> - <not> - <available file="${CERT_PASSWORD_FILE}" /> - </not> - <available file="${CERT_PASSWORD_FILE_WIN}" /> - </and> - </condition> - <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_MAC}" > - <and> - <not> - <available file="${CERT_PASSWORD_FILE}" /> - </not> - <available file="${CERT_PASSWORD_FILE_MAC}" /> - </and> - </condition> - <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_WIN}" > - <and> - <not> - <available file="${RELEASE_KEYSTORE_FILE}" /> - </not> - <available file="${RELEASE_KEYSTORE_FILE_WIN}" /> - </and> - </condition> - <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_MAC}" > - <and> - <not> - <available file="${RELEASE_KEYSTORE_FILE}" /> - </not> - <available file="${RELEASE_KEYSTORE_FILE_MAC}" /> - </and> - </condition> - - <property file="${basedir}/build.properties" description="Properties for Apache Flex SDK Installer project" /> - <property file="${basedir}/build.number"/> - <property file="${CERT_PASSWORD_FILE}"/> - - <property name="installer.version" value="${release.version}.${build.number}"/> - <property name="kit.prefix" value="apache-flex-sdk-installer-${installer.version}"/> - <property name="source.kit" value="${kit.prefix}-src"/> - <property name="binary.kit" value="${kit.prefix}-bin"/> - <property name="LOCAL_CONFIG_FILE" value="${basedir}/src/installer/sdk-installer-config-4.0.xml" /> - - <!--<property name="commons.zip" value="http://projects.yoolab.org/maven/content/repositories/releases/org/as3commons/as3commons-zip/1.0.0-alpha.1/as3commons-zip-1.0.0-alpha.1.swc" />--> - <!-- use this one for now until we find a better source --> - <property name="commons.zip" value="https://github.com/bigosmallm/MakeApacheFlexForFlashBuilder/blob/master/libs/as3commons-zip-1.0.0-alpha.1.swc?raw=true" /> - - <!-- - Properties are immutable so value frozen first time property is set. - If FLEX_HOME is not set with -DFLEX_HOME=/path/to/flex/sdk on the ant command line - use the environment variable, if it exists. Else if windows, use FLEX_HOME_WIN - else use FLEX_HOME_MAC, which are both defined in build.properties. - --> - <condition property="FLEX_HOME" value="${env.FLEX_HOME}"> - <isset property="env.FLEX_HOME" /> - </condition> - <condition property="FLEX_HOME" value="${FLEX_HOME_WIN}"> - <os family="windows"/> - </condition> - <condition property="FLEX_HOME" value="${FLEX_HOME_MAC}"> - <os family="mac"/> - </condition> - <condition property="FLEX_HOME" value="${FLEX_HOME_LINUX}"> - <os family="unix"/> - </condition> - - <condition property="adl" value="adl.exe"> - <os family="windows"/> - </condition> - - <condition property="adl" value="adl"> - <os family="mac"/> - </condition> - - <condition property="runtime" value="win"> - <os family="windows"/> - </condition> - - <condition property="runtime" value="mac"> - <os family="mac"/> - </condition> - - <condition property="LOCAL_CONFIG_URL" value="file:///${LOCAL_CONFIG_FILE}"> - <os family="windows"/> - </condition> - <property name="LOCAL_CONFIG_URL" value="file://${LOCAL_CONFIG_FILE}" /> - - <!-- - Properties are immutable so value frozen first time property is set. - If AIR_HOME is not set on the command line with -DAIR_HOME=/path/to/air/sdk on the - ant command line use the environment variable, if it exists. Else if windows, use - AIR_HOME_WIN else use AIR_HOME_MAC, which are both defined in build.properties. - --> - <condition property="AIR_HOME" value="${env.AIR_HOME}"> - <isset property="env.AIR_HOME" /> - </condition> - <condition property="AIR_HOME" value="${AIR_HOME_WIN}"> - <os family="windows"/> - </condition> - <condition property="AIR_HOME" value="${AIR_HOME_MAC}"> - <os family="mac"/> - </condition> - <condition property="AIR_HOME" value="${AIR_HOME_LINUX}"> - <os family="unix"/> - </condition> - - <condition property="cert_pwd_not_found" > - <not> - <available file="${CERT_PASSWORD_FILE}"/> - </not> - </condition> - - <condition property="KEYSTORE" value="${RELEASE_KEYSTORE_FILE}" > - <available file="${CERT_PASSWORD_FILE}"/> - </condition> - - <condition property="KEYSTORE" value="temp.p12" > - <not> - <available file="${CERT_PASSWORD_FILE}"/> - </not> - </condition> - - <condition property="CERT_PASSWORD" value="${TEMP_PASS_CHANGE_THIS}" > - <not> - <available file="${CERT_PASSWORD_FILE}"/> - </not> - </condition> - - <!-- compilers --> - <property name="ADL" value="${AIR_HOME}/bin/adl"/> - <property name="ADT" value="${AIR_HOME}/lib/adt.jar"/> - - <!-- additional tasks - mxmlc tag --> - <path id="flexTasks.path"> - <fileset dir="${FLEX_HOME}"> - <include name="lib/flexTasks.jar" /> - <include name="ant/lib/flexTasks.jar" /> - </fileset> - </path> - <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/> - - <!-- - Optional jars but should be in place for a real release build. - - For <rat> apache-rat-0.8.jar and apache-rat-tasks-0.8.jar should be in classpath. - See rat-report. - --> - <path id="anttask.classpath"> - <fileset dir="${env.ANT_HOME}/lib"> - <include name="**/apache-rat*.jar"/> - </fileset> - <fileset dir="${user.home}"> - <include name=".ant/lib/**/apache-rat*.jar"/> - </fileset> - </path> - - <!-- AIR package extension --> - <condition property="extension" value="exe"> - <os family="windows" /> - </condition> - <condition property="extension" value="dmg"> - <os family="mac" /> - </condition> - <condition property="extension" value="deb"> - <os family="unix" /> - </condition> - - <target name="build" depends="init,certificate,compile,packagenative,cleanup" - description="Compiles and packages application"/> - - <target name="release" depends="clean,build,source-package,rat-report,sign,copy-misc" - description="Build the application and package up the distros for release."/> - - <target name="init" depends="clean,createDirs,update-version-in-xml-files" - description="Creates the deploy folders and sets app extension"/> - - <target name="clean" description="Cleans up old files."> - <delete dir="${BUILD_DIR}" failOnError="false" includeEmptyDirs="true" /> - <delete dir="${DEPS_DIR}" failOnError="false" includeEmptyDirs="true" /> - <delete dir="${LIBRARY_DIR}" failOnError="false" includeEmptyDirs="true" /> - <delete dir="${RELEASE_DIR}" failOnError="false" includeEmptyDirs="true" /> - <delete file="${basedir}/rat.report" failOnError="false"/> - </target> - - <target name="cleanup" description="Cleans up old files." unless="no.cleanup"> - <delete dir="${BUILD_DIR}" failOnError="false" includeEmptyDirs="true" /> - </target> - - <target name="createDirs"> - <echo>***************************************${line.separator}Execute the update-version target once,${line.separator}and only once, when you modifiy this app.${line.separator}This will increment the version number to allow${line.separator}the app to be updated by the AIR installer.${line.separator}*************************************** - </echo> - <mkdir dir="${BUILD_DIR}"/> - <mkdir dir="${RELEASE_DIR}"/> - </target> - - <!-- Make sure version, esp, build.number, in APP_NAME-app.xml is in sync. --> - <target name="update-version-in-xml-files" description="Update version in APP_NAME-app.xml."> - <echo message="version in ${APP_NAME}-app.xml will be ${installer.version}"/> - <replaceregexp byline="true"> - <regexp pattern="<versionNumber>(\d+\.)?(\d+\.)?(\d+)</versionNumber>"/> - <substitution expression="<versionNumber>${installer.version}</versionNumber>"/> - <fileset dir="${SOURCE_DIR}"> - <include name="${APP_NAME}-app.xml"/> - </fileset> - </replaceregexp> - <replaceregexp byline="true"> - <regexp pattern="<latest>(\d+\.)?(\d+\.)?(\d+)</latest>"/> - <substitution expression="<latest>${installer.version}</latest>"/> - <fileset dir="${SOURCE_DIR}"> - <include name="${APP_CONFIG_XML_NAME}.xml"/> - </fileset> - </replaceregexp> - </target> - - <!-- - Run this target once, and then rebuild, when you make a change to this app - so that the AIR Installer will allow the app to be updated. The build.number - property in the file build.property will be read and then incremented and the - nano version number in the <version> tag in InstallApacheFlex-app.xml will be - updated. - --> - <target name="update-version" description="Update the app version number so the installer will be updated."> - <tstamp> - <format property="touch.year" pattern="yyyy"/> - </tstamp> - - <propertyfile file="build.number" - comment="Copyright ${touch.year} The Apache Software Foundation."> - <entry key="build.number" type="int" default="0" operation="+"/> - </propertyfile> - - </target> - - <target name="packagenative" depends="packageair" - description="Packages the AIR file from the build directory to create a native installer (exe/dmg) file"> - - <java jar="${ADT}" fork="true" - failonerror="true" - maxmemory="512m"> - <arg value="-package"/> - <arg value="-target"/> - <arg value="native"/> - <arg value="${RELEASE_DIR}/${binary.kit}.${extension}"/> - <arg value="${BUILD_DIR}/${APP_NAME}.air"/> - </java> - </target> - - <target name="check-as3commons.swc"> - <available file="${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc" property="as3commons.swc.present"/> - </target> - - <target name="get-as3commons.swc" depends="check-as3commons.swc" unless="as3commons.swc.present" - description="Download as3commons.swc and fail if checksum mismatch."> - <mkdir dir="${LIBRARY_DIR}"/> - <get src="${commons.zip}" - dest="${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc" - verbose="true"/> - <!-- skip checksum until we find a valid file - <get src="${commons.zip}.md5" - dest="${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc.md5" - verbose="true"/> - <checksum file="${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc" algorithm="md5" verifyProperty="isMD5ok"/> - <delete file="${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc.md5" failOnError="false"/> - <fail message="Checksum failure for ${LIBRARY_DIR}/as3commons-zip-1.0.0-alpha.1.swc"> - <condition> - <isfalse value="${isMD5ok}"/> - </condition> - </fail> - --> - </target> - - <target name="check-as3httpclient.swc"> - <available file="${LIBRARY_DIR}/as3httpclient.swc" property="as3httpclient.swc.present"/> - </target> - - <!-- This has a BSD license which is a reciprocal license with the Apache v2 license. --> - <target name="get-as3httpclient.swc" depends="check-as3httpclient.swc" unless="as3httpclient.swc.present" - description="Download as3httpclient.swc"> - <mkdir dir="${LIBRARY_DIR}"/> - <mkdir dir="${LIBRARY_DIR}/temp"/> - <get src="https://github.com/gabriel/as3httpclient/archive/master.zip" - dest="${LIBRARY_DIR}/temp" - /> - <unzip src="${LIBRARY_DIR}/temp/master.zip" dest="${LIBRARY_DIR}/temp"/> - <replace file="${LIBRARY_DIR}/temp/as3httpclient-master/build-swc.xml" - token="${flexlib}/libs/player/9/" value="${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/" /> - <compc - output="${LIBRARY_DIR}/as3httpclient.swc"> - <load-config filename="${LIBRARY_DIR}/temp/as3httpclient-master/build-swc.xml" /> - </compc> - </target> - - <target name="compile" depends="get-as3commons.swc, get-as3httpclient.swc" - description="Compiles the AIR application to a SWF file and places SWF in a temp directory to be packaged."> - <mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}" - output="${BUILD_DIR}/${APP_NAME}.swf" - static-rsls="true" - accessible="true" - configname="air" - debug="${DEBUG_FLAG}" - failonerror="true" - fork="true" - link-report="${BUILD_DIR}/${APP_NAME}.lnk.xml" - maxmemory="512m"> - <source-path path-element="${SOURCE_DIR}"/> - <source-path path-element="${COMMON_SOURCE_DIR}"/> - <external-library-path file="${AIR_HOME}/frameworks/libs/air/airglobal.swc" append="true"/> - <library-path dir="${LIBRARY_DIR}" includes="*.swc" append="true"/> - <library-path dir="${ANT_ON_AIR_DIR}" includes="*.swc" append="true"/> - <library-path dir="${LIBRARY_DIR}/temp/as3httpclient-master/lib" includes="*.swc" append="true"/> - <define name="INSTALLER::releaseVersion" value="${release.version}"/> - <define name="INSTALLER::buildNumber" value="${build.number}"/> - </mxmlc> - </target> - - <!-- Make sure to use the same certificate each time so we can update the app. --> - <target name="certificate" if="cert_pwd_not_found"> - <antcall target="generate-certificate"/> - </target> - - <target name="generate-certificate"> - <echo message="Using cert ${KEYSTORE}" /> - <java jar="${ADT}" fork="true" - failonerror="true"> - <arg value="-certificate"/> - <arg value="-cn"/> - <arg value="${CERT_NAME}"/> - <arg value="-ou"/> - <arg value="${CERT_ORG_UNIT}"/> - <arg value="-o"/> - <arg value="${CERT_ORG_NAME}"/> - <arg value="-c"/> - <arg value="${CERT_COUNTRY}"/> - <arg value="${CERT_KEY_TYPE}"/> - <arg value="${KEYSTORE}"/> - <arg value="${CERT_PASSWORD}"/> - </java> - </target> - - <target name="packageair" - description="Packages the build SWF file from a temp directory to create an AIR file"> - <echo message="Using cert ${KEYSTORE}" /> - <mkdir dir="${DEPS_DIR}/as3httpclientlib" /> - <copy file="${LIBRARY_DIR}/temp/as3httpclient-master/License.txt" - tofile="${DEPS_DIR}/as3httpclientlib/License.txt" /> - <mkdir dir="${DEPS_DIR}/as3corelib" /> - <get src="https://raw.githubusercontent.com/mikechambers/as3corelib/master/README" - dest="${DEPS_DIR}/as3corelib" - /> - <mkdir dir="${DEPS_DIR}/as3crypto" /> - <get src="http://as3crypto.googlecode.com/svn/trunk/as3crypto/LICENSE.txt" - dest="${DEPS_DIR}/as3crypto" - /> - <java jar="${ADT}" fork="true" - failonerror="true" - maxmemory="512m"> - <arg value="-package"/> - <arg value="-storetype"/> - <arg value="${STORETYPE}"/> - <arg value="-keystore"/> - <arg value="${KEYSTORE}"/> - <arg value="-storepass"/> - <arg value="${CERT_PASSWORD}"/> - <arg value="${BUILD_DIR}/${APP_NAME}.air"/> - <arg value="${SOURCE_DIR}/${APP_NAME}-app.xml"/> - <arg value="${basedir}/NOTICE"/> - <arg value="${DEPS_DIR}"/> - <arg value="-C"/> - <arg value="${basedir}/binary_license"/> - <arg value="${basedir}/binary_license/LICENSE"/> - <arg value="-C"/> - <arg value="${BUILD_DIR}"/> - <arg value="${BUILD_DIR}/${APP_NAME}.swf"/> - <arg value="-C"/> - <arg value="${SOURCE_DIR}"/> - <arg value="${SOURCE_DIR}/${APP_CONFIG_XML_NAME}.xml"/> - <arg value="${ASSETS_DIR}"/> - </java> - </target> - - <target name="copy-misc" description="Copy config files to release directory"> - <copy file="${basedir}/README" tofile="${RELEASE_DIR}/READme"/> - </target> - - <!-- - Packages the source distribution with ZIP and TAR_GZIP. - The source file line endings match the package type. - --> - <target name="source-package" description="Package source files."> - <mkdir dir="${BUILD_DIR}/temp"/> - <copy todir="${BUILD_DIR}/temp/${COMMON_PROJECT_NAME}" includeEmptyDirs="false"> - <fileset dir="${COMMON_PROJECT_DIR}"> - <exclude name="*.p12"/> - <exclude name="*.password"/> - <exclude name="rat.report"/> - <exclude name="libs/**"/> - <exclude name="bin/**"/> - <exclude name="bin-debug/**"/> - <exclude name="release/**"/> - <exclude name=".settings/**"/> - <exclude name="**/.actionScriptProperties"/> - <exclude name="**/.flexProperties"/> - <exclude name="**/.flexLibProperties"/> - <exclude name="**/.project"/> - <exclude name="**/.idea/**"/> - </fileset> - </copy> - - <copy todir="${BUILD_DIR}/temp/ant_on_air" includeEmptyDirs="false"> - <fileset dir="${basedir}/../ant_on_air"> - <include name="build.properties" /> - <include name="build.xml" /> - </fileset> - </copy> - <copy todir="${BUILD_DIR}/temp/ant_on_air/src" includeEmptyDirs="false"> - <fileset dir="${basedir}/../ant_on_air/src"> - </fileset> - </copy> - <copy todir="${BUILD_DIR}/temp/ant_on_air/locale" includeEmptyDirs="false"> - <fileset dir="${basedir}/../ant_on_air/locale"> - </fileset> - </copy> - <copy todir="${BUILD_DIR}/temp/ant_on_air/tests" includeEmptyDirs="false"> - <fileset dir="${basedir}/../ant_on_air/tests"> - <exclude name="*.swf" /> - </fileset> - </copy> - - <copy todir="${BUILD_DIR}/temp/${INSTALLER_PROJECT_NAME}" includeEmptyDirs="false"> - <fileset dir="${basedir}"> - <exclude name="*.p12"/> - <exclude name="*.password"/> - <exclude name="rat.report"/> - <exclude name="libs/**"/> - <exclude name="bin/**"/> - <exclude name="bin-debug/**"/> - <exclude name="build/**"/> - <exclude name="release/**"/> - <exclude name="rc/**"/> - <exclude name=".settings/**"/> - <exclude name="**/.actionScriptProperties"/> - <exclude name="**/.flexProperties"/> - <exclude name="**/.flexLibProperties"/> - <exclude name="**/.project"/> - <exclude name="**/.idea/**"/> - <exclude name="local.properties"/> - <!-- These are bumped up to the top-level release directory. --> - <exclude name="DISCLAIMER"/> - <exclude name="LICENSE"/> - <exclude name="NOTICE"/> - <exclude name="README"/> - <exclude name="RELEASE_GUIDE"/> - <exclude name="RELEASE_NOTES"/> - </fileset> - </copy> - - <!-- Bump these up to the top-level release directory. --> - <copy todir="${BUILD_DIR}/temp" includeEmptyDirs="false"> - <fileset dir="${basedir}"> - <include name="DISCLAIMER"/> - <include name="LICENSE"/> - <include name="NOTICE"/> - <include name="README"/> - <include name="RELEASE_GUIDE"/> - <include name="RELEASE_NOTES"/> - </fileset> - </copy> - - <fixcrlf srcdir="${BUILD_DIR}/temp" eol="crlf" encoding="UTF8" excludes="**/assets/**,**/*.ttf,**/*.png" fixlast="false"/> - - <mkdir dir="${RELEASE_DIR}"/> - <zip destfile="${RELEASE_DIR}/${source.kit}.zip" - basedir="${BUILD_DIR}/temp"/> - - <fixcrlf srcdir="${BUILD_DIR}/temp" eol="unix" encoding="UTF8" excludes="**/assets/**,**/*.ttf,**/*.png" fixlast="false"/> - - <tar destfile="${RELEASE_DIR}/${source.kit}.tar.gz" - compression="gzip" - basedir="${BUILD_DIR}/temp"/> - - <delete dir="${BUILD_DIR}/temp"/> - <delete dir="${BUILD_DIR}"/> - </target> - - <!-- - Packages the binary distribution with ZIP and TAR_GZIP. - --> - <target name="binary-package" description="Package binary files."> - <mkdir dir="${RELEASE_DIR}"/> - - <zip destfile="${RELEASE_DIR}/${binary.kit}.zip"> - <fileset dir="${basedir}/release"> - <exclude name="**/*.zip"/> - <exclude name="**/*.tar*"/> - </fileset> - </zip> - - <tar destfile="${RELEASE_DIR}/${binary.kit}.tar.gz" compression="gzip"> - <zipfileset src="${RELEASE_DIR}/${binary.kit}.zip"/> - </tar> - </target> - - <!-- - Run the Apache Rat audit tool against the source in the source kit. - The report is written to rat.report. - - You need to place apache-rat-tasks-0.8.jar and apache-rat-0.8.jar in the - anttask.classpath in order to do this. If the jar isn't found, the report - will not be generated. - --> - <target name="rat-report" depends="rat-taskdef" if="have.rattasks" - description="Report on licenses in source kit."> - - <!-- Unzip the source kit --> - <unzip src="${RELEASE_DIR}/${source.kit}.zip" dest="${RELEASE_DIR}/temp"/> - - <property name="rat.dir" value="${RELEASE_DIR}/temp"/> - - <echo message="Checking files at ${rat.dir}, report is ${basedir}/rat.report"/> - - <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" - reportFile="${basedir}/rat.report"> - <fileset dir="${rat.dir}"> - <exclude name="**/Apache License Version 2.txt"/> - <!-- Start of source files --> - <!-- generated source files that don't have Apache v2 license header --> - <exclude name="**/build.number"/> - <exclude name="**/.actionScriptProperties"/> - <exclude name="**/.flexProperties"/> - <exclude name="**/.flexLibProperties"/> - <exclude name="**/.project"/> - <exclude name="**/.fxpProperties"/> - <exclude name="**/.settings/**"/> - <exclude name="**/.idea/**"/> - <exclude name="**/*.iml"/> - <!-- End of source files --> - <!-- Start of binary files --> - <!-- exclude media (png, ico) --> - <exclude name="**/*.ico"/> - <exclude name="**/*.png"/> - <!-- exclude fonts --> - <exclude name="**/*.ttf"/> - <!-- End of binary files --> - </fileset> - </rat:report> - - <delete dir="${RELEASE_DIR}/temp" failOnError="false"/> - </target> - - <target name="rat-taskdef" description="Rat taskdef"> - <available property="have.rattasks" - resource="org/apache/rat/anttasks/antlib.xml" - classpathref="anttask.classpath"/> - - <antcall target="have-rattasks"/> - <antcall target="no-rattasks"/> - </target> - - <target name="have-rattasks" if="have.rattasks"> - <typedef resource="org/apache/rat/anttasks/antlib.xml" - uri="antlib:org.apache.rat.anttasks" - classpathref="anttask.classpath"/> - </target> - - <target name="no-rattasks" unless="have.rattasks"> - <echo message="Rat report not generated."/> - <echo message="rat jars (apache-rat-*.jar, apache-rat-tasks-*.jar)"/> - <echo message="not found in anttask.classpath"/> - </target> - - <target name="create-md5s" > - <checksum file="${RELEASE_DIR}/${source.kit}.zip" algorithm="md5" forceOverwrite="yes" /> - <checksum file="${RELEASE_DIR}/${source.kit}.tar.gz" algorithm="md5" forceOverwrite="yes" /> - <checksum file="${RELEASE_DIR}/${binary.kit}.${extension}" algorithm="md5" forceOverwrite="yes" /> - - </target> - - <target name="sign" > - <exec executable="gpg"> - <arg value="--armor" /> - <arg value="--output" /> - <arg value="${RELEASE_DIR}/${source.kit}.zip.asc" /> - <arg value="--detach-sig" /> - <arg value="${RELEASE_DIR}/${source.kit}.zip" /> - </exec> - - <exec executable="gpg"> - <arg value="--armor" /> - <arg value="--output" /> - <arg value="${RELEASE_DIR}/${source.kit}.tar.gz.asc" /> - <arg value="--detach-sig" /> - <arg value="${RELEASE_DIR}/${source.kit}.tar.gz" /> - </exec> - - <exec executable="gpg"> - <arg value="--armor" /> - <arg value="--output" /> - <arg value="${RELEASE_DIR}/${binary.kit}.${extension}.asc" /> - <arg value="--detach-sig" /> - <arg value="${RELEASE_DIR}/${binary.kit}.${extension}" /> - </exec> - </target> - - <target name="sign_exe" description="sign exe when on mac" > - <checksum file="${RELEASE_DIR}/${binary.kit}.exe" algorithm="md5" forceOverwrite="yes" /> - - <exec executable="gpg"> - <arg value="--armor" /> - <arg value="--output" /> - <arg value="${RELEASE_DIR}/${binary.kit}.exe.asc" /> - <arg value="--detach-sig" /> - <arg value="${RELEASE_DIR}/${binary.kit}.exe" /> - </exec> - </target> - - <target name="sign_dmg" description="sign dmg when on win" > - <checksum file="${RELEASE_DIR}/${binary.kit}.dmg" algorithm="md5" forceOverwrite="yes" /> - - <exec executable="gpg"> - <arg value="--armor" /> - <arg value="--output" /> - <arg value="${RELEASE_DIR}/${binary.kit}.dmg.asc" /> - <arg value="--detach-sig" /> - <arg value="${RELEASE_DIR}/${binary.kit}.dmg" /> - </exec> - </target> - - <target name="debug" > - <copy file="${SOURCE_DIR}/${APP_NAME}-app.xml" todir="${BUILD_DIR}" /> - <mkdir dir="${BUILD_DIR}/installer" /> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${BUILD_DIR}" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${BUILD_DIR}/${APP_NAME}-app.xml" /> - <arg value="--" /> - <arg value="-config=${LOCAL_CONFIG_URL}" /> - </exec> - </target> - - <target name="debug-locale" > - <copy file="${SOURCE_DIR}/${APP_NAME}-app.xml" todir="${BUILD_DIR}" /> - <mkdir dir="${BUILD_DIR}/installer" /> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${BUILD_DIR}" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${BUILD_DIR}/${APP_NAME}-app.xml" /> - <arg value="--" /> - <arg value="-config=${LOCAL_CONFIG_URL}" /> - <arg value="-language=${TEST_LOCALE}" /> - </exec> - </target> - - <target name="debug-for-real" > - <copy file="${SOURCE_DIR}/${APP_NAME}-app.xml" todir="${BUILD_DIR}" /> - <mkdir dir="${BUILD_DIR}/installer" /> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${BUILD_DIR}" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${BUILD_DIR}/${APP_NAME}-app.xml" /> - </exec> - </target> -</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/installer/releasecandidate.xml ---------------------------------------------------------------------- diff --git a/flex-installer/installer/releasecandidate.xml b/flex-installer/installer/releasecandidate.xml deleted file mode 100644 index d46f2dd..0000000 --- a/flex-installer/installer/releasecandidate.xml +++ /dev/null @@ -1,469 +0,0 @@ -<?xml version="1.0"?> -<!-- - - 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. - ---> - -<project name="CreateInstallerReleaseCandidate" default="main" basedir="."> - - - <!-- Required for OSX 10.6 / Snow Leopard Performance. --> - <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only --> - <!-- local.d32 is set/used in build.properties so this needs to be done first. --> - <condition property="local.d32" value="-d32"> - <and> - <os family="windows"/> - <equals arg1="${sun.arch.data.model}" arg2="64"/> - <equals arg1="${os.arch}" arg2="x86_64"/> - <equals arg1="${ant.java.version}" arg2="1.6"/> - </and> - </condition> - - <condition property="isMac" value="mac"> - <os family="mac" /> - </condition> - <condition property="isWindows" value="windows"> - <os family="windows" /> - </condition> - <condition property="isLinux" value="linux"> - <and> - <os family="unix" /> - <not> - <isset property="isMac" /> - </not> - </and> - </condition> - - <property name="rat.report" value="${basedir}/rat-report.txt"/> - <property name="apache.rat.jar" value="apache-rat-0.8.jar" /> - <property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" /> - <property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" /> - - <property file="${basedir}/local.properties" /> - <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_WIN}" > - <and> - <not> - <available file="${CERT_PASSWORD_FILE}" /> - </not> - <available file="${CERT_PASSWORD_FILE_WIN}" /> - </and> - </condition> - <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_MAC}" > - <and> - <not> - <available file="${CERT_PASSWORD_FILE}" /> - </not> - <available file="${CERT_PASSWORD_FILE_MAC}" /> - </and> - </condition> - <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_WIN}" > - <and> - <not> - <available file="${RELEASE_KEYSTORE_FILE}" /> - </not> - <available file="${RELEASE_KEYSTORE_FILE_WIN}" /> - </and> - </condition> - <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_MAC}" > - <and> - <not> - <available file="${RELEASE_KEYSTORE_FILE}" /> - </not> - <available file="${RELEASE_KEYSTORE_FILE_MAC}" /> - </and> - </condition> - <property file="${basedir}/build.properties" /> - <property file="${basedir}/build.number"/> - - <property environment="env"/> - - <condition property="do.copy.downloads" > - <isset property="download.cache.dir" /> - </condition> - - <condition property="CRLF" value="%0D%0A"> - <isset property="isWindows" /> - </condition> - <property name="CRLF" value="%0A" /> - - <fail message="The my.name property is not set to the RM's name" - unless="my.name"/> - - <fail message="The ANT_HOME environment variable is not set." - unless="env.ANT_HOME"/> - - <available file="${svn.dist.dev}" - type="dir" - property="dist.dev" value="${svn.dist.dev}" /> - - <fail message="The svn.dist.dev property is not set to the working copy for https://dist.apache.org/repos/dist/dev." - unless="dist.dev"/> - - <available file="${env.AIR_HOME}" - type="dir" - property="AIR_HOME" value="${env.AIR_HOME}" /> - - <fail message="The AIR_HOME property is not set in environment or command-line." - unless="AIR_HOME"/> - - <available file="${env.PLAYERGLOBAL_HOME}" - type="dir" - property="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" /> - - <fail message="The PLAYERGLOBAL_HOME property is not set in environment or command-line." - unless="PLAYERGLOBAL_HOME"/> - - <available file="${env.FLASHPLAYER_DEBUGGER}" - type="dir" - property="FLASHPLAYER_DEBUGGER" value="${env.FLASHPLAYER_DEBUGGER}" /> - - <available file="${env.FLASHPLAYER_DEBUGGER}" - type="file" - property="FLASHPLAYER_DEBUGGER" value="${env.FLASHPLAYER_DEBUGGER}" /> - - <fail message="The FLASHPLAYER_DEBUGGER property is not set in environment or command-line." - unless="FLASHPLAYER_DEBUGGER"/> - - <available file="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" - type="file" - property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" /> - <available file="${env.ProgramFiles(x86)}/Mozilla Firefox/firefox.exe" - type="file" - property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" /> - <available file="/Applications/Firefox.app/Contents/MacOS/firefox" - type="file" - property="browser" value="/Applications/Firefox.app/Contents/MacOS/firefox" /> - - <available file="${env.ANT_HOME}/lib/${apache.rat.jar}" - type="file" - property="apache.rat.found"/> - <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" - type="file" - property="apache.rat.tasks.found"/> - - <fail message="Could not locate Firefox. Please specify a browser with - -Dbrowser=<path-to-browser>" - unless="browser"/> - - <available file="${env.ProgramFiles}/SlikSVN/bin/svn.exe" - type="file" - property="svn" value="${env.ProgramFiles}/SlikSVN/bin/svn.exe" /> - <available file="${env.ProgramFiles(x86)}/SlikSVN/bin/svn.exe" - type="file" - property="svn" value="${env.ProgramFiles}/SlikSVN/bin/svn.exe" /> - <available file="/opt/subversion/bin/svn" - type="file" - property="svn" value="/opt/subversion/bin/svn" /> - <fail message="Could not locate SVN command-line. Please specify the path to SVN with - -Dsvn=<path-to-svn>" - unless="svn"/> - - <available file="${env.ProgramFiles}/Git/bin/git.exe" - type="file" - property="git" value="${env.ProgramFiles}/Git/bin/git.exe" /> - <available file="${env.ProgramFiles(x86)}/Git/bin/git.exe" - type="file" - property="git" value="${env.ProgramFiles}/Git/bin/git.exe" /> - <available file="/usr/local/git/bin/git" - type="file" - property="git" value="/usr/local/git/bin/git" /> - <fail message="Could not locate Git command-line. Please specify the path to Git with - -Dgit=<path-to-git>" - unless="git"/> - - <available file="${env.ANT_HOME}/lib/${apache.rat.jar}" - type="file" - property="apache.rat.found"/> - <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" - type="file" - property="apache.rat.tasks.found"/> - - <fail message="Could not locate Firefox. Please specify a browser with - -Dbrowser=<path-to-browser>" - unless="browser"/> - <fail message="The release candidate number is not set. Specify -Drc=<rc number (e.g. 1, 2, 3, etc)>" - unless="rc"/> - - <target name="install-rat" depends="install-rat.jar,install-rat.tasks.jar" /> - <target name="install-rat.jar" unless="apache.rat.found"> - <get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" /> - </target> - <target name="install-rat.tasks.jar" unless="apache.rat.tasks.found"> - <get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" /> - </target> - - <target name="rat-taskdef" description="Rat taskdef"> - <typedef resource="org/apache/rat/anttasks/antlib.xml" - uri="antlib:org.apache.rat.anttasks" - classpathref="anttask.classpath"/> - </target> - - <target name="main" depends="install-rat" description="Perform required release approval steps"> - <antcall target="check-new-version" /> - <antcall target="other-platform" /> - <exec executable="${git}" dir="${basedir}/.." failonerror="true" > - <arg value="pull" /> - <arg value="--rebase" /> - </exec> - <ant antfile="build.xml" target="release" /> - <ant antfile="build.xml" target="create-md5s" /> - <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> - <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}" > - <fileset dir="${basedir}/release" > - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-src*" /> - </fileset> - </copy> - <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > - <fileset dir="${basedir}/release" > - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> - </fileset> - </copy> - <copy file="${basedir}/README" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/READme" /> - <copy file="${basedir}/ApproveInstaller.xml" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/ApproveInstaller.xml" /> - <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > - <arg value="add" /> - <arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}" /> - </exec> - <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > - <arg value="commit" /> - <arg value="-m" /> - <arg value="rc${rc} of Apache Flex Installer ${release.version}" /> - </exec> - <exec executable="${git}" dir="${basedir}/.." failonerror="true" > - <arg value="tag" /> - <arg value="-a" /> - <arg value="apache-flex-sdk-installer-${release.version}-rc${rc}" /> - <arg value="-m" /> - <arg value=""rc${rc} of apache-flex-sdk-installer-${release.version}"" /> - </exec> - <exec executable="${git}" dir="${basedir}/.." failonerror="true" > - <arg value="push" /> - <arg value="--tags" /> - </exec> - <antcall target="mail" /> - </target> - - <target name="commit-and-mail" > - <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > - <arg value="commit" /> - <arg value="-m" /> - <arg value="rc${rc} of Apache Flex Installer ${release.version}" /> - </exec> - <exec executable="${git}" dir="${basedir}/.." failonerror="true" > - <arg value="tag" /> - <arg value="-a" /> - <arg value="apache-flex-sdk-installer-${release.version}-rc${rc}" /> - <arg value="-m" /> - <arg value=""rc${rc} of apache-flex-sdk-installer-${release.version}"" /> - </exec> - <exec executable="${git}" dir="${basedir}/.." failonerror="true" > - <arg value="push" /> - <arg value="--tags" /> - </exec> - <antcall target="mail" /> - </target> - - <target name="check-new-version" description="check if svn folder needs to be added" > - <condition property="version.folder" value="${dist.dev}/flex/installer/${release.version}" > - <not> - <available file="${dist.dev}/flex/installer/${release.version}" /> - </not> - </condition> - <antcall target="add-version-folder" /> - </target> - - <target name="add-version-folder" description="adds svn folder if needed" if="version.folder" > - <mkdir dir="${version.folder}" /> - <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > - <arg value="add" /> - <arg value="${version.folder}" /> - </exec> - </target> - - <target name="other-platform" depends="other-platform-mac, other-platform-win" unless="skip.other.platform" > - </target> - <target name="other-platform-mac" if="isMac" > - <available file="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.exe" - type="file" property="other.binary" /> - <fail message="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.exe not found. The windows version should be built before running this script" - unless="other.binary"/> - <ant antfile="build.xml" target="sign_exe" /> - <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> - <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > - <fileset dir="${basedir}/release" > - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> - </fileset> - </copy> - </target> - <target name="other-platform-win" if="isWindows" > - <available file="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.dmg" - type="file" property="other.binary" /> - <fail message="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.dmg not found. The windows version should be built before running this script" - unless="other.binary"/> - <ant antfile="build.xml" target="sign_dmg" /> - <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> - <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > - <fileset dir="${basedir}/release" > - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> - </fileset> - </copy> - </target> - - <target name="mail" > - <!-- try to set line breaks before the vertical line | --> - <echo file="${basedir}/discussthread.properties">discuss.thread.body=This is the discussion thread.\n\ -\n\ -Changes in this RC include:\n\ -\n\ -\n\ -Thanks,\n\ -${my.name} -</echo> - <replace file="${basedir}/discussthread.properties"> - <replacefilter token=" " value="%20" /> - <replacefilter token="\n" value="${CRLF}" /> - </replace> - <property file="${basedir}/discussthread.properties" /> - - <!-- try to set line breaks before the vertical line | --> - <echo file="${basedir}/votethread.properties">vote.thread.body=Hi,\n\ -\n\ -Please vote to approve Apache Flex SDK Installer version ${release.version} to be \n\ -released.\n\ -\n\ -The source distributions for Windows and Mac are available here:\n\ -https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/\n\ -\n\ -The binary distributions as a convenience for the respective platforms,\n\ -are available here:\n\ -https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/binaries\n\ -\n\ -As agreed, there are no Linux binaries for this version.\n\ -\n\ -Before voting please review the sections:\n\ -What are the ASF requirements on approving a release? at\n\ -http://www.apache.org/dev/ and approving a release at\n\ -http://www.apache.org/dev/release.html#approving-a-release\n\ -\n\ -For your convenience, there is an Ant script in the RC folder that\n\ -automates the checks a voter should perform on the RC.\n\ -It will:\n\ - - download the default source package for your OS (use -Dpackage.suffix to override)\n\ - - run md5 and gpg checks (this assumes you have gpg installed in your path)\n\ - - uncompress the source package\n\ - - install and run rat\n\ - - display the rat report and ask you to verify\n\ - - display the rat report without the AL files and ask you to verify the non-AL files\n\ - - display the README and ask you to verify\n\ - - display the RELEASE_NOTES and ask you to verify\n\ - - display the NOTICE and ask you to verify\n\ - - display the LICENSE and ask you to verify\n\ - - run the build and any tests run by the build.\n\ -\n\ -\n\ -You should be able to go away for a while during the build. When it is\n\ -finished, it will display information to be copied into the vote thread.\n\ -You are not required to use this script, and more testing of the packages\n\ -and build results are always encouraged.\n\ -\n\ -\n\ -To use this script (assuming you have Ant installed), it should be as\n\ -simple as:\n\ -- Create an empty folder\n\ -- Download ApproveInstaller.xml into that folder from:\n\ -\n\ -https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/ApproveInstaller.xml\n\ -\n\ -- Run: ant -e -f ApproveInstaller.xml -Drelease.version=${release.version} -Drc=${rc}\n\ -\n\ -\n\ -Vote\n\ -[ ] +1 Approve the release\n\ -[ ] -1 Veto the release (please provide specific comments)\n\ -\n\ -This vote will be open for at least 72 hours.\n\ -\n\ -Thanks,\n\ -${my.name} -</echo> - <replace file="${basedir}/votethread.properties"> - <replacefilter token=" " value="%20" /> - <replacefilter token="\n" value="${CRLF}" /> - </replace> - <property file="${basedir}/votethread.properties" /> - <echo file="${basedir}/votethread.html"><html><body><a href="mailto:[email protected]?subject=[DISCUSS]%20Discuss%20Release%20Apache%20Flex%20SDK%20Installer%20${release.version}%20RC${rc}&body=${discuss.thread.body}">Click here to review discuss thread</a><br/><a href="mailto:[email protected]?subject=[VOTE]%20Release%20Apache%20Flex%20SDK%20Installer%20${release.version}%20RC${rc}&body=${vote.thread.body}">Click here to review vote thread</a></body></html></echo> - <makeurl file="${basedir}/votethread.html" property="vote.thread.url" /> - <exec executable="${browser}"> - <arg value="${vote.thread.url}" /> - </exec> - <delete file="${basedir}/votethread.properties" /> - <delete file="${basedir}/votethread.html" /> - <delete file="${basedir}/discussthread.properties" /> - </target> - - <target name="release" > - <available file="${svn.dist.release}" - type="dir" - property="dist.release" value="${svn.dist.release}" /> - - <fail message="The svn.dist.release property is not set to the working copy for https://dist.apache.org/repos/dist/release." - unless="dist.release"/> - - <exec executable="${svn}" dir="${dist.release}/flex" failonerror="true" > - <arg value="update" /> - </exec> - <mkdir dir="${dist.release}/flex/installer/${release.version}" /> - <mkdir dir="${dist.release}/flex/installer/${release.version}/binaries" /> - <copy todir="${dist.release}/flex/installer/${release.version}/binaries" > - <fileset dir="${dist.dev}/flex/installer/rc${rc}/binaries" > - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> - </fileset> - </copy> - <copy todir="${dist.release}/flex/installer/${release.version}" > - <fileset dir="${dist.dev}/flex/installer/rc${rc}" > - <include name="READme" /> - <include name="apache-flex-sdk-installer-${release.version}.${build.number}-src*" /> - </fileset> - </copy> - <exec executable="${svn}" dir="${dist.release}/flex/installer" failonerror="true" > - <arg value="add" /> - <arg value="${release.version}" /> - </exec> - <exec executable="${svn}" dir="${dist.release}/flex/installer" failonerror="true" > - <arg value="commit" /> - <arg value="--username" /> - <arg value="${apache.username}" /> - <arg value="--password" /> - <arg value="${apache.password}" /> - <arg value="-m" /> - <arg value="Apache Flex SDK Installer ${release.version}" /> - </exec> - <exec executable="${git}" dir="${basedir}" failonerror="true" > - <arg value="tag" /> - <arg value="-a" /> - <arg value="apache-flex-sdk-installer-${release.version}.${build.number}" /> - <arg value="-m" /> - <arg value=""Official release of apache-flex-sdk-installer-${release.version}.${build.number}"" /> - </exec> - <exec executable="${git}" dir="${basedir}" failonerror="true" > - <arg value="push" /> - <arg value="--tags" /> - </exec> - <echo>Wait at least 24 hours before updating sdk-installer-config-4.0.xml and installer page on website</echo> - </target> - -</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/930ffc99/flex-installer/releasecandidate.xml ---------------------------------------------------------------------- diff --git a/flex-installer/releasecandidate.xml b/flex-installer/releasecandidate.xml new file mode 100644 index 0000000..d46f2dd --- /dev/null +++ b/flex-installer/releasecandidate.xml @@ -0,0 +1,469 @@ +<?xml version="1.0"?> +<!-- + + 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. + +--> + +<project name="CreateInstallerReleaseCandidate" default="main" basedir="."> + + + <!-- Required for OSX 10.6 / Snow Leopard Performance. --> + <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only --> + <!-- local.d32 is set/used in build.properties so this needs to be done first. --> + <condition property="local.d32" value="-d32"> + <and> + <os family="windows"/> + <equals arg1="${sun.arch.data.model}" arg2="64"/> + <equals arg1="${os.arch}" arg2="x86_64"/> + <equals arg1="${ant.java.version}" arg2="1.6"/> + </and> + </condition> + + <condition property="isMac" value="mac"> + <os family="mac" /> + </condition> + <condition property="isWindows" value="windows"> + <os family="windows" /> + </condition> + <condition property="isLinux" value="linux"> + <and> + <os family="unix" /> + <not> + <isset property="isMac" /> + </not> + </and> + </condition> + + <property name="rat.report" value="${basedir}/rat-report.txt"/> + <property name="apache.rat.jar" value="apache-rat-0.8.jar" /> + <property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.8.jar" /> + <property name="apache.rat.url" value="http://people.apache.org/~aharui/rat" /> + + <property file="${basedir}/local.properties" /> + <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_WIN}" > + <and> + <not> + <available file="${CERT_PASSWORD_FILE}" /> + </not> + <available file="${CERT_PASSWORD_FILE_WIN}" /> + </and> + </condition> + <condition property="CERT_PASSWORD_FILE" value="${CERT_PASSWORD_FILE_MAC}" > + <and> + <not> + <available file="${CERT_PASSWORD_FILE}" /> + </not> + <available file="${CERT_PASSWORD_FILE_MAC}" /> + </and> + </condition> + <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_WIN}" > + <and> + <not> + <available file="${RELEASE_KEYSTORE_FILE}" /> + </not> + <available file="${RELEASE_KEYSTORE_FILE_WIN}" /> + </and> + </condition> + <condition property="RELEASE_KEYSTORE_FILE" value="${RELEASE_KEYSTORE_FILE_MAC}" > + <and> + <not> + <available file="${RELEASE_KEYSTORE_FILE}" /> + </not> + <available file="${RELEASE_KEYSTORE_FILE_MAC}" /> + </and> + </condition> + <property file="${basedir}/build.properties" /> + <property file="${basedir}/build.number"/> + + <property environment="env"/> + + <condition property="do.copy.downloads" > + <isset property="download.cache.dir" /> + </condition> + + <condition property="CRLF" value="%0D%0A"> + <isset property="isWindows" /> + </condition> + <property name="CRLF" value="%0A" /> + + <fail message="The my.name property is not set to the RM's name" + unless="my.name"/> + + <fail message="The ANT_HOME environment variable is not set." + unless="env.ANT_HOME"/> + + <available file="${svn.dist.dev}" + type="dir" + property="dist.dev" value="${svn.dist.dev}" /> + + <fail message="The svn.dist.dev property is not set to the working copy for https://dist.apache.org/repos/dist/dev." + unless="dist.dev"/> + + <available file="${env.AIR_HOME}" + type="dir" + property="AIR_HOME" value="${env.AIR_HOME}" /> + + <fail message="The AIR_HOME property is not set in environment or command-line." + unless="AIR_HOME"/> + + <available file="${env.PLAYERGLOBAL_HOME}" + type="dir" + property="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" /> + + <fail message="The PLAYERGLOBAL_HOME property is not set in environment or command-line." + unless="PLAYERGLOBAL_HOME"/> + + <available file="${env.FLASHPLAYER_DEBUGGER}" + type="dir" + property="FLASHPLAYER_DEBUGGER" value="${env.FLASHPLAYER_DEBUGGER}" /> + + <available file="${env.FLASHPLAYER_DEBUGGER}" + type="file" + property="FLASHPLAYER_DEBUGGER" value="${env.FLASHPLAYER_DEBUGGER}" /> + + <fail message="The FLASHPLAYER_DEBUGGER property is not set in environment or command-line." + unless="FLASHPLAYER_DEBUGGER"/> + + <available file="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" + type="file" + property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" /> + <available file="${env.ProgramFiles(x86)}/Mozilla Firefox/firefox.exe" + type="file" + property="browser" value="${env.ProgramFiles}/Mozilla Firefox/firefox.exe" /> + <available file="/Applications/Firefox.app/Contents/MacOS/firefox" + type="file" + property="browser" value="/Applications/Firefox.app/Contents/MacOS/firefox" /> + + <available file="${env.ANT_HOME}/lib/${apache.rat.jar}" + type="file" + property="apache.rat.found"/> + <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" + type="file" + property="apache.rat.tasks.found"/> + + <fail message="Could not locate Firefox. Please specify a browser with + -Dbrowser=<path-to-browser>" + unless="browser"/> + + <available file="${env.ProgramFiles}/SlikSVN/bin/svn.exe" + type="file" + property="svn" value="${env.ProgramFiles}/SlikSVN/bin/svn.exe" /> + <available file="${env.ProgramFiles(x86)}/SlikSVN/bin/svn.exe" + type="file" + property="svn" value="${env.ProgramFiles}/SlikSVN/bin/svn.exe" /> + <available file="/opt/subversion/bin/svn" + type="file" + property="svn" value="/opt/subversion/bin/svn" /> + <fail message="Could not locate SVN command-line. Please specify the path to SVN with + -Dsvn=<path-to-svn>" + unless="svn"/> + + <available file="${env.ProgramFiles}/Git/bin/git.exe" + type="file" + property="git" value="${env.ProgramFiles}/Git/bin/git.exe" /> + <available file="${env.ProgramFiles(x86)}/Git/bin/git.exe" + type="file" + property="git" value="${env.ProgramFiles}/Git/bin/git.exe" /> + <available file="/usr/local/git/bin/git" + type="file" + property="git" value="/usr/local/git/bin/git" /> + <fail message="Could not locate Git command-line. Please specify the path to Git with + -Dgit=<path-to-git>" + unless="git"/> + + <available file="${env.ANT_HOME}/lib/${apache.rat.jar}" + type="file" + property="apache.rat.found"/> + <available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" + type="file" + property="apache.rat.tasks.found"/> + + <fail message="Could not locate Firefox. Please specify a browser with + -Dbrowser=<path-to-browser>" + unless="browser"/> + <fail message="The release candidate number is not set. Specify -Drc=<rc number (e.g. 1, 2, 3, etc)>" + unless="rc"/> + + <target name="install-rat" depends="install-rat.jar,install-rat.tasks.jar" /> + <target name="install-rat.jar" unless="apache.rat.found"> + <get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" /> + </target> + <target name="install-rat.tasks.jar" unless="apache.rat.tasks.found"> + <get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" /> + </target> + + <target name="rat-taskdef" description="Rat taskdef"> + <typedef resource="org/apache/rat/anttasks/antlib.xml" + uri="antlib:org.apache.rat.anttasks" + classpathref="anttask.classpath"/> + </target> + + <target name="main" depends="install-rat" description="Perform required release approval steps"> + <antcall target="check-new-version" /> + <antcall target="other-platform" /> + <exec executable="${git}" dir="${basedir}/.." failonerror="true" > + <arg value="pull" /> + <arg value="--rebase" /> + </exec> + <ant antfile="build.xml" target="release" /> + <ant antfile="build.xml" target="create-md5s" /> + <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> + <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}" > + <fileset dir="${basedir}/release" > + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-src*" /> + </fileset> + </copy> + <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > + <fileset dir="${basedir}/release" > + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> + </fileset> + </copy> + <copy file="${basedir}/README" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/READme" /> + <copy file="${basedir}/ApproveInstaller.xml" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/ApproveInstaller.xml" /> + <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > + <arg value="add" /> + <arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}" /> + </exec> + <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > + <arg value="commit" /> + <arg value="-m" /> + <arg value="rc${rc} of Apache Flex Installer ${release.version}" /> + </exec> + <exec executable="${git}" dir="${basedir}/.." failonerror="true" > + <arg value="tag" /> + <arg value="-a" /> + <arg value="apache-flex-sdk-installer-${release.version}-rc${rc}" /> + <arg value="-m" /> + <arg value=""rc${rc} of apache-flex-sdk-installer-${release.version}"" /> + </exec> + <exec executable="${git}" dir="${basedir}/.." failonerror="true" > + <arg value="push" /> + <arg value="--tags" /> + </exec> + <antcall target="mail" /> + </target> + + <target name="commit-and-mail" > + <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > + <arg value="commit" /> + <arg value="-m" /> + <arg value="rc${rc} of Apache Flex Installer ${release.version}" /> + </exec> + <exec executable="${git}" dir="${basedir}/.." failonerror="true" > + <arg value="tag" /> + <arg value="-a" /> + <arg value="apache-flex-sdk-installer-${release.version}-rc${rc}" /> + <arg value="-m" /> + <arg value=""rc${rc} of apache-flex-sdk-installer-${release.version}"" /> + </exec> + <exec executable="${git}" dir="${basedir}/.." failonerror="true" > + <arg value="push" /> + <arg value="--tags" /> + </exec> + <antcall target="mail" /> + </target> + + <target name="check-new-version" description="check if svn folder needs to be added" > + <condition property="version.folder" value="${dist.dev}/flex/installer/${release.version}" > + <not> + <available file="${dist.dev}/flex/installer/${release.version}" /> + </not> + </condition> + <antcall target="add-version-folder" /> + </target> + + <target name="add-version-folder" description="adds svn folder if needed" if="version.folder" > + <mkdir dir="${version.folder}" /> + <exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" > + <arg value="add" /> + <arg value="${version.folder}" /> + </exec> + </target> + + <target name="other-platform" depends="other-platform-mac, other-platform-win" unless="skip.other.platform" > + </target> + <target name="other-platform-mac" if="isMac" > + <available file="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.exe" + type="file" property="other.binary" /> + <fail message="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.exe not found. The windows version should be built before running this script" + unless="other.binary"/> + <ant antfile="build.xml" target="sign_exe" /> + <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> + <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > + <fileset dir="${basedir}/release" > + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> + </fileset> + </copy> + </target> + <target name="other-platform-win" if="isWindows" > + <available file="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.dmg" + type="file" property="other.binary" /> + <fail message="${basedir}/release/apache-flex-sdk-installer-${release.version}.${build.number}-bin.dmg not found. The windows version should be built before running this script" + unless="other.binary"/> + <ant antfile="build.xml" target="sign_dmg" /> + <mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" /> + <copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" > + <fileset dir="${basedir}/release" > + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> + </fileset> + </copy> + </target> + + <target name="mail" > + <!-- try to set line breaks before the vertical line | --> + <echo file="${basedir}/discussthread.properties">discuss.thread.body=This is the discussion thread.\n\ +\n\ +Changes in this RC include:\n\ +\n\ +\n\ +Thanks,\n\ +${my.name} +</echo> + <replace file="${basedir}/discussthread.properties"> + <replacefilter token=" " value="%20" /> + <replacefilter token="\n" value="${CRLF}" /> + </replace> + <property file="${basedir}/discussthread.properties" /> + + <!-- try to set line breaks before the vertical line | --> + <echo file="${basedir}/votethread.properties">vote.thread.body=Hi,\n\ +\n\ +Please vote to approve Apache Flex SDK Installer version ${release.version} to be \n\ +released.\n\ +\n\ +The source distributions for Windows and Mac are available here:\n\ +https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/\n\ +\n\ +The binary distributions as a convenience for the respective platforms,\n\ +are available here:\n\ +https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/binaries\n\ +\n\ +As agreed, there are no Linux binaries for this version.\n\ +\n\ +Before voting please review the sections:\n\ +What are the ASF requirements on approving a release? at\n\ +http://www.apache.org/dev/ and approving a release at\n\ +http://www.apache.org/dev/release.html#approving-a-release\n\ +\n\ +For your convenience, there is an Ant script in the RC folder that\n\ +automates the checks a voter should perform on the RC.\n\ +It will:\n\ + - download the default source package for your OS (use -Dpackage.suffix to override)\n\ + - run md5 and gpg checks (this assumes you have gpg installed in your path)\n\ + - uncompress the source package\n\ + - install and run rat\n\ + - display the rat report and ask you to verify\n\ + - display the rat report without the AL files and ask you to verify the non-AL files\n\ + - display the README and ask you to verify\n\ + - display the RELEASE_NOTES and ask you to verify\n\ + - display the NOTICE and ask you to verify\n\ + - display the LICENSE and ask you to verify\n\ + - run the build and any tests run by the build.\n\ +\n\ +\n\ +You should be able to go away for a while during the build. When it is\n\ +finished, it will display information to be copied into the vote thread.\n\ +You are not required to use this script, and more testing of the packages\n\ +and build results are always encouraged.\n\ +\n\ +\n\ +To use this script (assuming you have Ant installed), it should be as\n\ +simple as:\n\ +- Create an empty folder\n\ +- Download ApproveInstaller.xml into that folder from:\n\ +\n\ +https://dist.apache.org/repos/dist/dev/flex/installer/${release.version}/rc${rc}/ApproveInstaller.xml\n\ +\n\ +- Run: ant -e -f ApproveInstaller.xml -Drelease.version=${release.version} -Drc=${rc}\n\ +\n\ +\n\ +Vote\n\ +[ ] +1 Approve the release\n\ +[ ] -1 Veto the release (please provide specific comments)\n\ +\n\ +This vote will be open for at least 72 hours.\n\ +\n\ +Thanks,\n\ +${my.name} +</echo> + <replace file="${basedir}/votethread.properties"> + <replacefilter token=" " value="%20" /> + <replacefilter token="\n" value="${CRLF}" /> + </replace> + <property file="${basedir}/votethread.properties" /> + <echo file="${basedir}/votethread.html"><html><body><a href="mailto:[email protected]?subject=[DISCUSS]%20Discuss%20Release%20Apache%20Flex%20SDK%20Installer%20${release.version}%20RC${rc}&body=${discuss.thread.body}">Click here to review discuss thread</a><br/><a href="mailto:[email protected]?subject=[VOTE]%20Release%20Apache%20Flex%20SDK%20Installer%20${release.version}%20RC${rc}&body=${vote.thread.body}">Click here to review vote thread</a></body></html></echo> + <makeurl file="${basedir}/votethread.html" property="vote.thread.url" /> + <exec executable="${browser}"> + <arg value="${vote.thread.url}" /> + </exec> + <delete file="${basedir}/votethread.properties" /> + <delete file="${basedir}/votethread.html" /> + <delete file="${basedir}/discussthread.properties" /> + </target> + + <target name="release" > + <available file="${svn.dist.release}" + type="dir" + property="dist.release" value="${svn.dist.release}" /> + + <fail message="The svn.dist.release property is not set to the working copy for https://dist.apache.org/repos/dist/release." + unless="dist.release"/> + + <exec executable="${svn}" dir="${dist.release}/flex" failonerror="true" > + <arg value="update" /> + </exec> + <mkdir dir="${dist.release}/flex/installer/${release.version}" /> + <mkdir dir="${dist.release}/flex/installer/${release.version}/binaries" /> + <copy todir="${dist.release}/flex/installer/${release.version}/binaries" > + <fileset dir="${dist.dev}/flex/installer/rc${rc}/binaries" > + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-bin*" /> + </fileset> + </copy> + <copy todir="${dist.release}/flex/installer/${release.version}" > + <fileset dir="${dist.dev}/flex/installer/rc${rc}" > + <include name="READme" /> + <include name="apache-flex-sdk-installer-${release.version}.${build.number}-src*" /> + </fileset> + </copy> + <exec executable="${svn}" dir="${dist.release}/flex/installer" failonerror="true" > + <arg value="add" /> + <arg value="${release.version}" /> + </exec> + <exec executable="${svn}" dir="${dist.release}/flex/installer" failonerror="true" > + <arg value="commit" /> + <arg value="--username" /> + <arg value="${apache.username}" /> + <arg value="--password" /> + <arg value="${apache.password}" /> + <arg value="-m" /> + <arg value="Apache Flex SDK Installer ${release.version}" /> + </exec> + <exec executable="${git}" dir="${basedir}" failonerror="true" > + <arg value="tag" /> + <arg value="-a" /> + <arg value="apache-flex-sdk-installer-${release.version}.${build.number}" /> + <arg value="-m" /> + <arg value=""Official release of apache-flex-sdk-installer-${release.version}.${build.number}"" /> + </exec> + <exec executable="${git}" dir="${basedir}" failonerror="true" > + <arg value="push" /> + <arg value="--tags" /> + </exec> + <echo>Wait at least 24 hours before updating sdk-installer-config-4.0.xml and installer page on website</echo> + </target> + +</project>
