Author: richard.opalka(a)jboss.com
Date: 2008-02-18 07:28:29 -0500 (Mon, 18 Feb 2008)
New Revision: 5719
Modified:
stack/metro/trunk/ant-import/build-release.xml
Log:
[JBWS-1994] fixing release of bin and src distribution + added check for externals
Modified: stack/metro/trunk/ant-import/build-release.xml
===================================================================
--- stack/metro/trunk/ant-import/build-release.xml 2008-02-18 10:31:00 UTC (rev 5718)
+++ stack/metro/trunk/ant-import/build-release.xml 2008-02-18 12:28:29 UTC (rev 5719)
@@ -13,8 +13,30 @@
<project>
- <!-- Release to jboss.local.repository -->
- <target name="release" depends="jars" description="Release
to jboss.local.repository">
+ <target name="release"
depends="release-to-repository,release-to-portal" description="Release
JBossWS/Metro">
+ <echo message="*********************************************"/>
+ <echo message="* Released: jbossws-${version.id}"/>
+ <echo message="*"/>
+ <echo message="* Almost there, please do these steps manually"/>
+ <echo message="*"/>
+ <echo message="* - Create SVN tag: jbossws-${version.id}"/>
+ <echo message="* - Release the jbossws-${version.id} version in
JIRA"/>
+ <echo message="* - Update portal-content/project.xml"/>
+ <echo message="* - Update portal-content/counter.xml"/>
+ <echo message="* - Update news in
portal-content/freezone/projectDescription.html"/>
+ <echo message="* - Verify release notes and install instructions"/>
+ <echo message="* - Publish the interop endpoints"/>
+ <echo message="* - Commit the portal-content"/>
+ <echo message="* - Commit the repository jars"/>
+ <echo message="* - Write a sticky post on the user forum"/>
+ <echo message="* - Post a message to
jbossws-announce(a)lists.jboss.org"/>
+ <echo message="* - Post a message to thecore(a)jboss.org"/>
+ <echo message="*"/>
+ <echo message="*********************************************"/>
+ </target>
+
+ <target name="release-to-repository"
depends="jars,check-svn-externals,warn-svn-externals"
+ description="Release to jboss.local.repository">
<!-- jboss/jbossws-metro50 -->
<property name="jboss.repository.dir"
value="${jboss.local.repository}/jboss"/>
@@ -27,10 +49,77 @@
</copy>
<copy
tofile="${jboss.repository.dir}/jbossws-metro50/${repository.id}/component-info.xml"
file="${metro.etc.dir}/component-info50.xml" filtering="true"
overwrite="true">
<filterset>
- <filtersfile file="${build.dir}/version.properties"/>
+ <filtersfile file="${basedir}/version.properties"/>
</filterset>
</copy>
</target>
+ <target name="check-svn-externals" depends="init">
+ <exec dir="${basedir}/src/test-framework" executable="svn"
failonerror="true" output="${basedir}/output/svn-info.xml">
+ <arg line="info"/>
+ <arg line="--xml"/>
+ </exec>
+ <xmlproperty file="${basedir}/output/svn-info.xml"/>
+ <condition property="framework.externals.ok">
+ <or>
+ <contains string="${info.entry.url}"
substring="jbossws/framework/tags"/>
+ <equals arg1="${repository.id}" arg2="snapshot"/>
+ </or>
+ </condition>
+ </target>
+ <target name="warn-svn-externals" depends="init"
unless="framework.externals.ok">
+ <echo>
+ ***********************************************
+ * External link to framework is not tagged! *
+ * Run: svn pe svn:externals src *
+ ***********************************************
+ </echo>
+ </target>
+
+ <!-- Release to portal content -->
+ <target name="release-to-portal"
depends="check-portal-content,build-src-dist,build-bin-dist"
+ description="Release to portal-content"
if="jbossws.portal.content.available">
+
+ <property name="portal.freezone"
value="${jbossws.portal.content}/freezone"/>
+ <property name="portal.userguide"
value="${portal.freezone}/user-guide"/>
+ <property name="portal.downloads"
value="${jbossws.portal.content}/downloads"/>
+
+ <!-- Copy downloads -->
+ <copy todir="${portal.downloads}" overwrite="true">
+ <fileset dir="${basedir}/output">
+ <include name="jbossws-${version.id}-src.zip"/>
+ <include name="jbossws-${version.id}.zip"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy Release Notes -->
+ <copy tofile="${portal.downloads}/ReleaseNotes-${version.id}.txt"
file="${basedir}/output/jbossws-${version.id}/docs/ReleaseNotes.txt"
overwrite="true"/>
+ <copy tofile="${portal.downloads}/Install-${version.id}.txt"
file="${basedir}/output/jbossws-${version.id}/docs/Install.txt"
overwrite="true"/>
+ </target>
+
+ <target name="check-portal-content" depends="prepare"
unless="jbossws.portal.content.available">
+ <echo message="*********************************************"/>
+ <echo message="* Not available: ${jbossws.portal.content}"/>
+ <echo message="*********************************************"/>
+ </target>
+
+ <!-- Build the src dist -->
+ <target name="build-src-dist" description="Build the source
distribution">
+ <property name="build.src.dist"
value="${basedir}/output/src-dist"/>
+ <delete dir="${build.src.dist}/jbossws-${version.id}-src"/>
+ <mkdir dir="${build.src.dist}/jbossws-${version.id}-src"/>
+ <copy todir="${build.src.dist}/jbossws-${version.id}-src">
+ <fileset dir="${basedir}">
+ <exclude name="**/*.md5"/>
+ <exclude name="**/output*/**"/>
+ <exclude name="**/thirdparty/**"/>
+ <exclude name="mergeinfo.txt"/>
+ <exclude name="glassfish-metro/**"/>
+ </fileset>
+ </copy>
+ <zip destfile="${basedir}/output/jbossws-${version.id}-src.zip"
basedir="${build.src.dist}"
+ includes="jbossws-${version.id}-src/**"/>
+ </target>
+
</project>
Show replies by date