add release target to move rc to final home
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/7c8fa2b9 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/7c8fa2b9 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/7c8fa2b9 Branch: refs/heads/master Commit: 7c8fa2b9272df9e26181957a7bed10e138851d6c Parents: d93f335 Author: Alex Harui <aha...@apache.org> Authored: Mon Aug 18 14:41:37 2014 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Thu Sep 4 22:52:04 2014 -0700 ---------------------------------------------------------------------- installer/releasecandidate.xml | 57 +++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/7c8fa2b9/installer/releasecandidate.xml ---------------------------------------------------------------------- diff --git a/installer/releasecandidate.xml b/installer/releasecandidate.xml index 83a9be0..3dca3d9 100644 --- a/installer/releasecandidate.xml +++ b/installer/releasecandidate.xml @@ -197,11 +197,7 @@ unless="browser"/> <fail message="The release candidate number is not set. Specify -Drc=<rc number (e.g. 1, 2, 3, etc)>" unless="rc"/> - - <property name="package.url.path" value="https://dist.apache.org/repos/dist/dev/flex/sdk/${release.version}/rc${rc}" /> - <property name="package.url.name" value="apache-flex-sdk-${release.version}-src" /> - - + <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}" /> @@ -398,5 +394,56 @@ ${my.name} <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>