river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcost...@apache.org
Subject svn commit: r820475 - in /incubator/river/jtsk/trunk: build.xml common.xml src/poms/pom.xml
Date Wed, 30 Sep 2009 22:19:24 GMT
Author: jcosters
Date: Wed Sep 30 22:19:24 2009
New Revision: 820475

URL: http://svn.apache.org/viewvc?rev=820475&view=rev
Log:
RIVER-317: added rudimentary support for deployment to Maven repositories

Modified:
    incubator/river/jtsk/trunk/build.xml
    incubator/river/jtsk/trunk/common.xml
    incubator/river/jtsk/trunk/src/poms/pom.xml

Modified: incubator/river/jtsk/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/build.xml?rev=820475&r1=820474&r2=820475&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/build.xml (original)
+++ incubator/river/jtsk/trunk/build.xml Wed Sep 30 22:19:24 2009
@@ -26,7 +26,8 @@
 <!-- ##	building the Apache River source distribution.                  -->
 <!-- ##                                                                 -->
 <!-- ################################################################## -->
-<project name="river" basedir="." default="all.build">
+<project name="river" basedir="." default="all.build"
+        xmlns:artifact="antlib:org.apache.maven.artifact.ant">
 
     <description>Apache River is a project furthering the development
         and advancement of Jini technology.</description>
@@ -2118,4 +2119,47 @@
         <ant dir="examples/hello" target="jars" inheritall="false" />
     </target>
 
+    <!-- TODO cleanup and find out where exactly to publish to -->
+    <!-- Note that you need the Maven Ant tasks (http://maven.apache.org/ant-tasks/)
+        installed to use this task -->
+    <target name="deploy-artifacts" depends="build">
+        <!--<artifact:install-provider artifactId="wagon-file" version="1.0-beta-2"/>
+        <artifact:install-provider artifactId="wagon-http" version="1.0-beta-2"/>
+        <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/>-->
+        <property name="m2.repository" value="file:///home/jonathan/maven" />
+        <macrodef name="deploy">
+            <attribute name="file" />
+            <attribute name="pom" />
+            <sequential>
+                <artifact:deploy file="@{file}" >
+                    <remoteRepository url="${m2.repository}"/>
+                    <pom refid="@{pom}"/>
+                </artifact:deploy>
+            </sequential>
+        </macrodef>
+        <artifact:pom id="parent" file="${src.poms.dir}/pom.xml" />
+        <artifact:pom id="jini-core" file="${src.poms.dir}/jini-core/pom.xml" />
+        <artifact:pom id="jini-ext" file="${src.poms.dir}/jini-ext/pom.xml" />
+        <artifact:pom id="jsk-lib" file="${src.poms.dir}/jsk-lib/pom.xml" />
+        <artifact:pom id="jsk-dl" file="${src.poms.dir}/jsk-dl/pom.xml" />
+        <artifact:pom id="jsk-resources" file="${src.poms.dir}/jsk-resources/pom.xml"
/>
+        <artifact:pom id="jsk-platform" file="${src.poms.dir}/jsk-platform/pom.xml" />
+        <artifact:pom id="jsk-policy" file="${src.poms.dir}/jsk-policy/pom.xml" />
+        <artifact:pom id="serviceui" file="${src.poms.dir}/serviceui/pom.xml" />
+        <artifact:pom id="sun-util" file="${src.poms.dir}/sun-util/pom.xml" />
+        <artifact:pom id="start" file="${src.poms.dir}/start/pom.xml" />
+        <artifact:pom id="tools" file="${src.poms.dir}/tools/pom.xml" />
+        <deploy file="${lib.dir}/jini-core.jar" pom="jini-core" />
+        <deploy file="${lib.dir}/jini-ext.jar" pom="jini-ext" />
+        <deploy file="${lib.dir}/jsk-lib.jar" pom="jsk-lib" />
+        <deploy file="${lib-dl.dir}/jsk-dl.jar" pom="jsk-dl" />
+        <deploy file="${lib.dir}/jsk-resources.jar" pom="jsk-resources" />
+        <deploy file="${lib.dir}/jsk-platform.jar" pom="jsk-platform" />
+        <deploy file="${lib-ext.dir}/jsk-policy.jar" pom="jsk-policy" />
+        <deploy file="${lib.dir}/serviceui.jar" pom="serviceui" />
+        <deploy file="${lib.dir}/sun-util.jar" pom="sun-util" />
+        <deploy file="${lib.dir}/start.jar" pom="start" />
+        <deploy file="${lib.dir}/tools.jar" pom="tools" />
+    </target>
+
 </project>

Modified: incubator/river/jtsk/trunk/common.xml
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/common.xml?rev=820475&r1=820474&r2=820475&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/common.xml (original)
+++ incubator/river/jtsk/trunk/common.xml Wed Sep 30 22:19:24 2009
@@ -32,6 +32,7 @@
     <!-- Standard directory names -->
     <property name="doc" value="doc"/>
     <property name="src" value="src"/>
+    <property name="src.poms" value="${src}/poms"/>
     <property name="configentry" value="configentry"/>
     <property name="lib" value="lib"/>
     <property name="lib-dl" value="lib-dl"/>
@@ -48,6 +49,7 @@
     <property name="src.dir" location="${src}"/>
     <property name="src.manifest.dir" location="${src}/manifest"/>
     <property name="src.configentry.dir" location="${src}/configentry"/>
+    <property name="src.poms.dir" location="${src.poms}"/>
     <property name="build.dir" location="${build}"/>
     <property name="build.classes.dir" location="${build.classes}"/>
     <property name="build.deps.dir" location="${build.dir}/deps"/>

Modified: incubator/river/jtsk/trunk/src/poms/pom.xml
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/trunk/src/poms/pom.xml?rev=820475&r1=820474&r2=820475&view=diff
==============================================================================
--- incubator/river/jtsk/trunk/src/poms/pom.xml (original)
+++ incubator/river/jtsk/trunk/src/poms/pom.xml Wed Sep 30 22:19:24 2009
@@ -70,27 +70,29 @@
 		<system>Jira</system>
 		<url>https://issues.apache.org/jira/browse/RIVER</url>
 	</issueManagement>
-	<distributionManagement>
+    <!-- TODO: Need rest of path below -->
+    <!-- this section needs to be commented or errors are thrown -->
+	<!--<distributionManagement>
 		<repository>
 			<id>apache-releases</id>
-			<!-- TODO: Need rest of path below -->
+			
 			<url>/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
 		</repository>
 		<snapshotRepository>
 			<id>apache-snapshots</id>
 		</snapshotRepository>
 		<downloadUrl>http://incubator.apache.org/river/RIVER/downloads.html</downloadUrl>
-	</distributionManagement>
+	</distributionManagement>-->
 	<scm>
 		<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/river/jtsk/trunk</connection>
 		<developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/river/jtsk/trunk</developerConnection>
 		<url>http://svn.apache.org/viewvc/incubator/river/</url>
 	</scm>
-	<repositories>
-		<!--
+    <!--
 			TODO: Use Nexus repositories instead? See:
 			https://issues.apache.org/jira/browse/INFRA-1896
 		-->
+	<repositories>
 		<repository>
 			<id>apache-releases</id>
 			<name>Apache Foundation Release Repository</name>



Mime
View raw message