db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r367830 - in /db/ojb/branches/OJB_1_0_RELEASE: build.properties build.xml
Date Tue, 10 Jan 2006 23:11:59 GMT
Author: tomdz
Date: Tue Jan 10 15:11:55 2006
New Revision: 367830

URL: http://svn.apache.org/viewcvs?rev=367830&view=rev
Log:
Added convenience Ant target for creating a release to be put into a maven repository

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/build.properties
    db/ojb/branches/OJB_1_0_RELEASE/build.xml

Modified: db/ojb/branches/OJB_1_0_RELEASE/build.properties
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/build.properties?rev=367830&r1=367829&r2=367830&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/build.properties (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/build.properties Tue Jan 10 15:11:55 2006
@@ -110,6 +110,7 @@
 build.destjca = ${build.dir}/classesjca
 build.test = ${build.dir}/test
 build.doc=${build.dir}/doc
+build.mavendist = ${build.dir}/mavendist
 build.javadoc=${build.dir}/javadoc
 build.check= ${build.dir}/check
 junit.dir = ${build.dir}/test/ojb

Modified: db/ojb/branches/OJB_1_0_RELEASE/build.xml
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/build.xml?rev=367830&r1=367829&r2=367830&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/build.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/build.xml Tue Jan 10 15:11:55 2006
@@ -1217,7 +1217,38 @@
                      excludes="**/*.MD5"/>
         </checksum>
     </target>
+
+    <target name="maven-dist"
+            description="Creates a convenience zip file containing the files for publishing
a release to the maven repository"
+            depends="init">
+        <delete dir="${build.mavendist}"
+                failonerror="false"
+                verbose="false" />
+        <mkdir dir="${build.mavendist}"/> 
+        <mkdir dir="${build.mavendist}/jars"/> 
+        <mkdir dir="${build.mavendist}/licenses"/> 
+        <mkdir dir="${build.mavendist}/poms"/> 
  
+        <copy todir="${build.mavendist}/jars" file="${dist}/${archive}.jar"/> 
+        <copy todir="${build.mavendist}/jars" file="${lib}/xdoclet-ojb-module-1.2.3.jar"/>

+        <checksum forceOverwrite="yes"> 
+            <fileset dir="${build.mavendist}/jars"
+                     includes="*.jar"/>
+        </checksum>
+
+        <copy todir="${build.mavendist}/licenses" file="LICENSE"/> 
+        <copy tofile="${build.mavendist}/licenses/ojb.license" file="LICENSE"/> 
+
+        <copy tofile="${build.mavendist}/poms/${archive}.pom" file="project.xml"/>

+        <checksum forceOverwrite="yes"> 
+            <fileset dir="${build.mavendist}/poms"
+                     includes="*.pom"/>
+        </checksum>
+
+        <zip zipfile="${dist}/${archive}-maven-dist.zip"
+             basedir="${build.mavendist}"/>
+    </target> 
+  
     <!-- ================================================================== -->
     <!-- Perform JUnit Tests                                                -->
     <!-- ================================================================== -->



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message