User: starksm
Date: 01/05/01 12:26:21
Modified: src/build build.xml
Log:
Add a check for a valid jboss.dist property since this is required
for compiliation
Revision Changes Path
1.7 +14 -7 jbosssx/src/build/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jbosssx/src/build/build.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- build.xml 2001/04/30 10:53:02 1.6
+++ build.xml 2001/05/01 19:26:21 1.7
@@ -1,11 +1,11 @@
<!-- An ant build file for JBossSX security framework
@author [EMAIL PROTECTED]
-@version $Revision: 1.6 $
+@version $Revision: 1.7 $
-->
<project name="JBossSX" default="jar" basedir="../../">
<!-- The location of the JBoss server dist tree. This is
- used to access the lib/ext/jboss.jar
- as there is no jboss-spi.jar
+ needed for compiling the JBossSX code since there are dependencies
+ on org.jboss.* classes.
-->
<property name="jboss.dist" value="../jboss/dist" />
<property name="jboss.client" value="../jboss/dist/client" />
@@ -23,7 +23,14 @@
<property name="packages" value="org.jboss.*" />
<target name="init">
+ <available property="valid.jboss.dist"
file="${jboss.dist}/lib/ext/jboss.jar" />
<available property="junit.present" classname="junit.framework.TestCase" />
+ </target>
+ <target name="error" unless="valid.jboss.dist">
+ <echo message="jboss.dist = ${jboss.dist} is not a valid JBoss server dist
structure"/>
+ <fail message="Override/edit the jboss.dist property" />
+ </target>
+ <target name="prepare" depends="init,error" >
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
<mkdir dir="${build.examples.dir}"/>
@@ -47,7 +54,7 @@
</path>
<!-- Compile the security framework code -->
- <target name="compile" depends="init">
+ <target name="compile" depends="prepare">
<!-- Compile everything into build/classes -->
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
@@ -66,7 +73,7 @@
</target>
<!-- Compile the security framework and test code -->
- <target name="compile-all" depends="init">
+ <target name="compile-all" depends="prepare">
<!-- Compile everything into build/classes -->
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
@@ -177,7 +184,7 @@
</target>
<!-- Create the examples jars -->
- <target name="examples" depends="init">
+ <target name="examples" depends="prepare">
<!-- Compile everything into build/classes -->
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
@@ -238,7 +245,7 @@
<!-- =================================================================== -->
<!-- Creates the API documentation -->
<!-- =================================================================== -->
- <target name="javadocs" depends="init">
+ <target name="javadocs" depends="prepare">
<mkdir dir="${build.javadocs.dir}"/>
<javadoc packagenames="${packages}"
sourcepath="${src.dir}"
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development