Update of /var/cvs/contributions/didactor2
In directory james.mmbase.org:/tmp/cvs-serv7872

Modified Files:
        build19.xml 
Log Message:
simulated maven behaviour a bit for download of artifact


See also: http://cvs.mmbase.org/viewcvs/contributions/didactor2


Index: build19.xml
===================================================================
RCS file: /var/cvs/contributions/didactor2/build19.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- build19.xml 4 Jul 2008 15:33:13 -0000       1.11
+++ build19.xml 11 Jul 2008 21:41:31 -0000      1.12
@@ -81,14 +81,20 @@
   <target name="clean">
     <delete dir="${build.dir}" />
   </target>
+  <target name="clean.distro" depends="mmbase.distro.exists" 
if="mmbase.distro.exists">
+    <delete file="${mmbase.dest}" />
+  </target>
   <target name="mmbase.distro.exists">
     <echo message="Using MMBase ${mmbase.version}" />
     <available file="${mmbase.dest}" property="mmbase.distro.exists"/>
     <available file="${build.dir}/mmbase/WEB-INF/lib" 
property="mmbase.distro.expanded.exists"/>
   </target>
-  <target name="mmbase.distro.download" depends="mmbase.distro.exists" 
unless="mmbase.distro.exists">
+  <target name="mmbase.distro.download" unless="mmbase.downloaded">
     <mkdir dir="${download.dir}" />
-    <get src="${mmbase.distro}" dest="${mmbase.dest}" verbose="on" />
+    <copy file="${user.home}/.maven/repository/mmbase/wars/${mmbase.war}" 
tofile="${mmbase.dest}" preservelastmodified="true" overwrite="false" />
+    <get src="${mmbase.distro}" dest="${mmbase.dest}" verbose="on" 
usetimestamp="true"  />
+    <property name="mmbase.downloaded" value="true" />
+
   </target>
 
   <target name="mmbase.distro" 
depends="mmbase.distro.exists,mmbase.distro.download" 
unless="mmbase.distro.expanded.exists" >
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to