You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2009/06/29 16:46:03 UTC
svn commit: r789346 - in /ant/ivy/ivyde/trunk: build.xml doc/dev/release.html
Author: hibou
Date: Mon Jun 29 14:46:02 2009
New Revision: 789346
URL: http://svn.apache.org/viewvc?rev=789346&view=rev
Log:
Scripting the source packaging
Modified:
ant/ivy/ivyde/trunk/build.xml
ant/ivy/ivyde/trunk/doc/dev/release.html
Modified: ant/ivy/ivyde/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/build.xml?rev=789346&r1=789345&r2=789346&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/build.xml (original)
+++ ant/ivy/ivyde/trunk/build.xml Mon Jun 29 14:46:02 2009
@@ -53,7 +53,7 @@
<property name="forceContextQualifier" value="${version.qualifier}-${DSTAMP}${TSTAMP}-RELEASE" />
</target>
- <target name="dist" depends="generate-eclipse-doc,build,package-binaries" description="Build every artifacts for distribution" />
+ <target name="dist" depends="generate-eclipse-doc,build,package-binaries,package-sources,checksum" description="Build every artifacts for distribution" />
<target name="clean" description="Remove every build artifacts">
<delete dir="${work.dir}" />
@@ -183,6 +183,28 @@
<tar destfile="${dist.dir}/apache-ivyde-${build.version}.tgz" basedir="${dist.work.dir}" compression="gzip" />
</target>
+ <target name="package-sources" depends="compute-version">
+ <exec executable="svn" dir="${basedir}" outputproperty="svn.info.url">
+ <arg value="--xml" />
+ <arg value="info" />
+ <redirector>
+ <outputfilterchain>
+ <containsregex pattern="<url>(.*)</url>" replace="\1" />
+ </outputfilterchain>
+ </redirector>
+ </exec>
+ <mkdir dir="${work.dir}" />
+ <delete dir="${work.dir}/sources" />
+ <exec executable="svn" dir="${work.dir}" >
+ <arg value="export" />
+ <arg value="${svn.info.url}" />
+ <arg value="sources" />
+ </exec>
+ <mkdir dir="${dist.dir}" />
+ <zip destfile="${dist.dir}/apache-ivyde-sources-${build.version}.zip" basedir="${work.dir}/sources" />
+ <tar destfile="${dist.dir}/apache-ivyde-sources-${build.version}.tgz" basedir="${work.dir}/sources" compression="gzip" />
+ </target>
+
<!--
======================================================================================
Targets related to the installation of Ivy in the Eclipse install
Modified: ant/ivy/ivyde/trunk/doc/dev/release.html
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/doc/dev/release.html?rev=789346&r1=789345&r2=789346&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/doc/dev/release.html (original)
+++ ant/ivy/ivyde/trunk/doc/dev/release.html Mon Jun 29 14:46:02 2009
@@ -88,20 +88,6 @@
Then launch the build:
<pre>ant /release clean dist -DbaseLocation=/home/me/...../eclipse/</pre>
-Package the sources:
-<pre>
-cd work
-mkdir sources
-cd sources
-svn export https://svn.apache.org/repos/asf/ant/ivy/ivyde/branches/$VERSION
-cd $VERSION
-zip -r ../../../dist/apache-ivyde-sources-$VERSION.zip *
-tar cvzf ../../../dist/apache-ivyde-sources-$VERSION.tgz *
-</pre>
-
-Generate the checksums:
-<pre>ant checksum</pre>
-
And sign the artifacts:
<pre>./signArtifacts.sh</pre>