incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r450582 - /incubator/lokahi/lokahi/trunk/build.xml
Date Wed, 27 Sep 2006 21:11:24 GMT
Author: toback
Date: Wed Sep 27 14:11:23 2006
New Revision: 450582

URL: http://svn.apache.org/viewvc?view=rev&rev=450582
Log:
RE:

http://mail-archives.apache.org/mod_mbox/incubator-lokahi-dev/200609.mbox/%3c451AD86F.5070806@free.fr%3e

Modified:
    incubator/lokahi/lokahi/trunk/build.xml

Modified: incubator/lokahi/lokahi/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/build.xml?view=diff&rev=450582&r1=450581&r2=450582
==============================================================================
--- incubator/lokahi/lokahi/trunk/build.xml (original)
+++ incubator/lokahi/lokahi/trunk/build.xml Wed Sep 27 14:11:23 2006
@@ -2,9 +2,14 @@
 
   <target name="build" depends="init,jar,copy-www,copy-db,build-agent,copy-docs,post-process"/>
 
-  <target name="install" depends="build">
+    <target name="clean" depends="init">
+		<delete dir="${app.compile}" failonerror="true"/>
+		<delete dir="${app.build}" failonerror="true"/>    	
+    </target>
+
+  <target name="install" depends="clean,build">
     <mkdir dir="${install.location}${app.name}"/>
-    <copy todir="${install.location}${app.name}">
+    <copy todir="${install.location}${app.name}" overwrite="true">
       <fileset dir="${app.build.context}"/>
     </copy>
   </target>
@@ -12,13 +17,13 @@
   <target name="post-process" depends="copy-dependent-libs,copy-etc"/>
 
   <target name="copy-www">
-    <copy todir="${app.build.context}">
+    <copy todir="${app.build.context}" overwrite="true">
       <fileset dir="${app.src.www}"/>
     </copy>
   </target>
 
   <target name="copy-db">
-    <copy todir="${app.build.db}">
+    <copy todir="${app.build.db}" overwrite="true">
       <fileset dir="${app.src.db}"/>
       <filterchain>
         <replacetokens begintoken="@" endtoken="@">
@@ -29,19 +34,19 @@
   </target>
 
   <target name="copy-docs">
-    <copy todir="${app.build}">
+    <copy todir="${app.build}" overwrite="true">
       <fileset dir="${app.src.doc}"/>
     </copy>
   </target>
 
   <target name="copy-dependent-libs">
-    <copy todir="${app.build.web-inf.lib}" flatten="true">
+    <copy todir="${app.build.web-inf.lib}" flatten="true" overwrite="true">
       <fileset refid="libs"/>
     </copy>
   </target>
 
   <target name="copy-etc">
-    <copy todir="${app.build.web-inf}">
+    <copy todir="${app.build.web-inf}" overwrite="true">
       <fileset dir="${app.conf}">
         <exclude name="dbpool.props"/>
         <exclude name="ApplicationResources.properties"/>
@@ -59,7 +64,7 @@
         </replacetokens>
       </filterchain>
     </copy>
-    <copy todir="${app.build.web-inf.classes}">
+    <copy todir="${app.build.web-inf.classes}" overwrite="true">
       <fileset dir="${app.conf}">
         <include name="lokahi.properties"/>
         <include name="db.properties"/>
@@ -67,7 +72,7 @@
         <include name="function.xml"/>
       </fileset>
     </copy>
-    <copy todir="${app.build.web-inf.classes}/lokahi">
+    <copy todir="${app.build.web-inf.classes}/lokahi" overwrite="true">
       <fileset dir="${app.conf}">
         <include name="ApplicationResources.properties"/>
       </fileset>
@@ -190,9 +195,11 @@
 
 
   <target name="init">
+  	<property file="build.${user.name}.properties"/>
     <property file="build.properties"/>
     <fileset id="libs" dir="${app.lib}">
       <include name="**/*.jar"/>
     </fileset>
   </target>
+
 </project>



Mime
View raw message