You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2006/04/13 12:34:33 UTC
svn commit: r393780 - /lenya/trunk/src/targets/init-build.xml
Author: michi
Date: Thu Apr 13 03:34:27 2006
New Revision: 393780
URL: http://svn.apache.org/viewcvs?rev=393780&view=rev
Log:
warning re Java version implemented
Modified:
lenya/trunk/src/targets/init-build.xml
Modified: lenya/trunk/src/targets/init-build.xml
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/targets/init-build.xml?rev=393780&r1=393779&r2=393780&view=diff
==============================================================================
--- lenya/trunk/src/targets/init-build.xml (original)
+++ lenya/trunk/src/targets/init-build.xml Thu Apr 13 03:34:27 2006
@@ -30,13 +30,29 @@
</tstamp>
<echo message="------------------- ${Name} ${version} [${year}] ----------------"/>
- <echo>Building with ${ant.version}</echo>
+ <echo>Building with ${ant.version} and Java version ${ant.java.version}</echo>
<echo>Using build file ${ant.file}</echo>
+ <condition property="java.version.equal.target.vm">
+ <equals arg1="${target.vm}" arg2="${ant.java.version}"/>
+ </condition>
+ <antcall target="warning-re-java-version"/>
+
<property name="snapshot.bin.name" value="${fullname}-${SNAPSHOT_STAMP}-bin"/>
<property name="snapshot.src.name" value="${fullname}-${SNAPSHOT_STAMP}-src"/>
<property name="snapshot.bin.dir" value="${dist.root}/${snapshot.bin.name}"/>
<property name="snapshot.src.dir" value="${dist.root}/${snapshot.src.name}"/>
+ </target>
+
+ <target name="warning-re-java-version" unless="java.version.equal.target.vm">
+ <echo message="*****************************************************************"/>
+ <echo message="*"/>
+ <echo message="* WARNING: Apache Lenya ${version} is targeted for Java version ${target.vm}. Please refer to the public mailing list for other Java version."/>
+ <echo message="*"/>
+ <echo message="*****************************************************************"/>
+<!--
+ <fail message="Build process will be aborted!"/>
+-->
</target>
<!-- Prepare the build webapp directory -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org