Author: jbalunas(a)redhat.com
Date: 2008-06-06 11:11:30 -0400 (Fri, 06 Jun 2008)
New Revision: 8338
Modified:
branches/Seam_2_0/build/build.xml
branches/Seam_2_0/build/readme.txt
branches/Seam_2_0/build/utilities.build.xml
trunk/build/build.xml
trunk/build/readme.txt
trunk/build/utilities.build.xml
Log:
Added a new release target of "deployReleaseWithSourcesAndJavaDoc" that will
deploy a new/updated seam dependency to the offline repository. Also updated related
document in readme.txt
Modified: branches/Seam_2_0/build/build.xml
===================================================================
--- branches/Seam_2_0/build/build.xml 2008-06-06 15:06:42 UTC (rev 8337)
+++ branches/Seam_2_0/build/build.xml 2008-06-06 15:11:30 UTC (rev 8338)
@@ -23,10 +23,17 @@
<deploy pom="${pom.file}" jar="${jar}"
repositoryId="snapshots.jboss.org" />
</target>
- <target name="deployRelease" description="Deploy a jar (generating the
pom) to snapshots.jboss.org" depends="initdav">
+ <target name="deployRelease" description="Deploy a jar (generating the
pom) to to the offline repository" depends="initdav">
<pomfile name="pom.file" value="${pom}" />
<deploy pom="${pom.file}" jar="${jar}"
repositoryId="offline.repository.jboss.org" />
</target>
+
+ <target name="deployReleaseWithSourcesAndJavaDoc"
description="Deploy a jar (generating the pom), sourcejar and javadoc jar to the
offline repository" depends="initdav">
+ <pomfile name="pom.file" value="${pom}" />
+ <deployWithSourcesAndJavadoc pom="${pom.file}" jar="${jar}"
+ srcjar="${srcjar}"
docjar="${docjar}"
+ repositoryId="offline.repository.jboss.org"
/>
+ </target>
<target name="releaseSeam" description="Deploy Seam and JBoss EL to
your local copy of repository.jboss.org" depends="initpoms">
<fail unless="offline.repository.jboss.org" message="Please set the
offline.repository.jboss.org property"/>
Modified: branches/Seam_2_0/build/readme.txt
===================================================================
--- branches/Seam_2_0/build/readme.txt 2008-06-06 15:06:42 UTC (rev 8337)
+++ branches/Seam_2_0/build/readme.txt 2008-06-06 15:11:30 UTC (rev 8338)
@@ -50,7 +50,9 @@
1) Checkout
repository.jboss.org/maven2 from svn
(
https://svn.jboss.org/repos/repository.jboss.org)
2) Set the
offline.repository.jboss.org property in build/build.properties to
the directory you checked out to.
- 3) Run ant -Dpom=foo.pom -Djar=foo.jar deployRelease
+ 3) Run "ant -Dpom=foo.pom -Djar=foo.jar deployRelease"
+ - if the new dependency also has a source and javadoc jar you can run:
+ - "ant -Dpom=foo.pom -Djar=foo.jar -Dsrcjar=foo-src.jar -Ddocjar=foo-doc.jar
deployReleaseWithSourcesAndJavaDoc"
4) Check in the changed files to SVN (they'll be under a path of
artifactId/groupId/version)
Modified: branches/Seam_2_0/build/utilities.build.xml
===================================================================
--- branches/Seam_2_0/build/utilities.build.xml 2008-06-06 15:06:42 UTC (rev 8337)
+++ branches/Seam_2_0/build/utilities.build.xml 2008-06-06 15:11:30 UTC (rev 8338)
@@ -103,6 +103,25 @@
</artifact:deploy>
</sequential>
</macrodef>
+
+ <macrodef name="deployWithSourcesAndJavadoc">
+ <attribute name="pom" default="" />
+ <attribute name="jar" default="" />
+ <attribute name="srcjar" />
+ <attribute name="docjar" />
+ <attribute name="repositoryId" default="" />
+ <element name="credentials" implicit="true"
optional="true" />
+ <sequential>
+ <artifact:deploy file="@{jar}"
settingsFile="${maven.settings.xml}">
+ <pom file="@{pom}"
settingsFile="${maven.settings.xml}" />
+ <remoteRepository refId="@{repositoryId}">
+ <credentials />
+ </remoteRepository>
+ <attach file="@{srcjar}" classifier="sources" />
+ <attach file="@{docjar}" classifier="javadoc" />
+ </artifact:deploy>
+ </sequential>
+ </macrodef>
<macrodef name="deployWithAttachment">
<attribute name="pom" default="" />
Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml 2008-06-06 15:06:42 UTC (rev 8337)
+++ trunk/build/build.xml 2008-06-06 15:11:30 UTC (rev 8338)
@@ -27,6 +27,13 @@
<pomfile name="pom.file" value="${pom}" />
<deploy pom="${pom.file}" jar="${jar}"
repositoryId="offline.repository.jboss.org" />
</target>
+
+ <target name="deployReleaseWithSourcesAndJavaDoc"
description="Deploy a jar (generating the pom), source jar and javadoc jar to the
offline repository" depends="initdav">
+ <pomfile name="pom.file" value="${pom}" />
+ <deployWithSourcesAndJavadoc pom="${pom.file}" jar="${jar}"
+ srcjar="${srcjar}"
docjar="${docjar}"
+ repositoryId="offline.repository.jboss.org"
/>
+ </target>
<target name="releaseSeam" description="Deploy Seam and JBoss EL to
your local copy of repository.jboss.org" depends="initpoms">
<fail unless="offline.repository.jboss.org" message="Please set the
offline.repository.jboss.org property"/>
Modified: trunk/build/readme.txt
===================================================================
--- trunk/build/readme.txt 2008-06-06 15:06:42 UTC (rev 8337)
+++ trunk/build/readme.txt 2008-06-06 15:11:30 UTC (rev 8338)
@@ -51,6 +51,8 @@
2) Set the
offline.repository.jboss.org property in build/build.properties to
the directory you checked out to.
3) Run ant -Dpom=foo.pom -Djar=foo.jar deployRelease
+ - if the new dependency also has a source and javadoc jar you can run:
+ - "ant -Dpom=foo.pom -Djar=foo.jar -Dsrcjar=foo-src.jar -Ddocjar=foo-doc.jar
deployReleaseWithSourcesAndJavaDoc"
4) Check in the changed files to SVN (they'll be under a path of
artifactId/groupId/version)
Modified: trunk/build/utilities.build.xml
===================================================================
--- trunk/build/utilities.build.xml 2008-06-06 15:06:42 UTC (rev 8337)
+++ trunk/build/utilities.build.xml 2008-06-06 15:11:30 UTC (rev 8338)
@@ -114,6 +114,25 @@
</artifact:deploy>
</sequential>
</macrodef>
+
+ <macrodef name="deployWithSourcesAndJavadoc">
+ <attribute name="pom" default="" />
+ <attribute name="jar" default="" />
+ <attribute name="srcjar" />
+ <attribute name="docjar" />
+ <attribute name="repositoryId" default="" />
+ <element name="credentials" implicit="true"
optional="true" />
+ <sequential>
+ <artifact:deploy file="@{jar}"
settingsFile="${maven.settings.xml}">
+ <pom file="@{pom}"
settingsFile="${maven.settings.xml}" />
+ <remoteRepository refId="@{repositoryId}">
+ <credentials />
+ </remoteRepository>
+ <attach file="@{srcjar}" classifier="sources" />
+ <attach file="@{docjar}" classifier="javadoc" />
+ </artifact:deploy>
+ </sequential>
+ </macrodef>
<macrodef name="deployWithAttachment">
<attribute name="pom" default="" />