You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/04/08 17:26:03 UTC

svn commit: r645973 - /james/postage/trunk/build.xml

Author: rdonkin
Date: Tue Apr  8 08:26:03 2008
New Revision: 645973

URL: http://svn.apache.org/viewvc?rev=645973&view=rev
Log:
Improved reporting in build and allow JAMES_HOME to be set.https://issues.apache.org/jira/browse/POSTAGE-14 POSTAGE-14

Modified:
    james/postage/trunk/build.xml

Modified: james/postage/trunk/build.xml
URL: http://svn.apache.org/viewvc/james/postage/trunk/build.xml?rev=645973&r1=645972&r2=645973&view=diff
==============================================================================
--- james/postage/trunk/build.xml (original)
+++ james/postage/trunk/build.xml Tue Apr  8 08:26:03 2008
@@ -23,7 +23,7 @@
 
     <!--  CONFIGURE -->
     
-    <!--<property file="build.properties" /> -->
+    <property file="build.properties" />
     
     <property name="dir.build" value="${basedir}/build"/>
     <property name="dir.build.source" value="${dir.build}/source/"/>
@@ -32,12 +32,19 @@
     
     <property name="dir.source.classes" value="${basedir}/src/main/java/"/>
     
-    <!-- TODO change this to a James Distribution based on a JAMES_HOME variable, or let maven do the job --> 
+	<condition property='dir.james.basedir' value="${JAMES_HOME}">
+		<isset property="JAMES_HOME"/>
+	</condition>
     <property name="dir.james.basedir" value="${basedir}/../../server/branches/v2.3"/>
 
     <property name="force.java1_4.support" value="false"/>
     
     <target name="initialize">
+		<available property='exists.james.home' file='${dir.james.basedir}'/>
+    	<fail unless='exists.james.home'>
+    		${dir.james.basedir} does not exist.
+    		Please set JAMES_HOME in a build.properties file</fail>
+    	
         <tstamp/>
         
         <path id="java.build.classpath">



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