db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r367829 - in /db/ojb/trunk: build.properties build.xml
Date Tue, 10 Jan 2006 23:11:00 GMT
Author: tomdz
Date: Tue Jan 10 15:10:57 2006
New Revision: 367829

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

Modified:
    db/ojb/trunk/build.properties
    db/ojb/trunk/build.xml

Modified: db/ojb/trunk/build.properties
URL: http://svn.apache.org/viewcvs/db/ojb/trunk/build.properties?rev=367829&r1=367828&r2=367829&view=diff
==============================================================================
--- db/ojb/trunk/build.properties (original)
+++ db/ojb/trunk/build.properties Tue Jan 10 15:10:57 2006
@@ -112,6 +112,7 @@
 build.destjca = ${build.dir}/classes/jca
 build.test = ${build.dir}/test
 build.doc=${build.dir}/doc
+build.mavendist = ${build.dir}/mavendist
 build.javadoc=${build.dir}/javadoc
 junit.dir = ${build.dir}/test/ojb
 junit.fork=true

Modified: db/ojb/trunk/build.xml
URL: http://svn.apache.org/viewcvs/db/ojb/trunk/build.xml?rev=367829&r1=367828&r2=367829&view=diff
==============================================================================
--- db/ojb/trunk/build.xml (original)
+++ db/ojb/trunk/build.xml Tue Jan 10 15:10:57 2006
@@ -992,7 +992,7 @@
     <!-- and documentation                                                  -->
     <!-- ================================================================== -->
     <target name="release"
-            depends="clean,with-jdori,jar,source,docs,tarball,website,contrib,ojb-blank,tutorials-jar"
+            depends="clean,with-jdori,jar,source,docs,tarball,website,contrib,ojb-blank,tutorials-jar,checksums"
             description="Cleans and builds all release archives." />
 
     <!-- ================================================================== -->
@@ -1101,6 +1101,44 @@
 
     </target>
 
+    <target name="checksums">
+        <checksum forceOverwrite="yes"> 
+            <fileset dir="${dist}"
+                     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