ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roderick Dunne <>
Subject Using built in task ant with
Date Thu, 08 Jun 2000 12:22:35 GMT

i'm new to the list so apologies if this one has been asked before.

i'm using jakarta-ant version 3.0 to build some ejb's and in an initial
script attempt i've been unable to get past a problem with using 'ant' to
build sub-projects

<?xml version="1.0"?>
<project name="ejb" default="buildSubProject" basedir=".">
	<target name="buildSubProject">
        		<ant dir="common" antfile="common/build.xml"
target="main" />
		<ant dir="entity" antfile="entity/build.xml" target="main"
        		<ant dir="session" antfile="session/build.xml"
target="main" />
        		<ant dir="servlet" antfile="servlet/build.xml"
target="main" />

things to note:
*	each of the subprojects build correctly when run individually but
when they are called from a seperate project like above then the mkdir built
in task does not seem to work in the subprojects 
*	the 'ant -verbose' output says its working fine and is actually
doing the mkdir
*	the subprojects contain some javac commands which *do* work... it
seems to be only the mkdir that doesn't
*	i analysed the ant output line for line and did not find any
differances (except for the parts were i tried to copy files into the
directory that didn't get made)

anybody come across something like this before? any ideas??
any help much appreciated.

Rod Dunne

heres a snip of one subproject file: 

<?xml version="1.0"?>
<project name="kadius_quickstart_entity" default="main" basedir=".">
	  <property name="ant.home" value="D:/jakarta-ant"/>
	  <property name="source.dir" value="D:/Projects/Core/Source"/>


	  <property name="bean.dir" value="."/>
	  <property name="" value="build"/>
	  <property name="bean.jarName" value="User_containerManaged.jar"/>

	  <!-- BUILD THE BEAN  -->

	  <!-- Create the build directory -->
	  <target name="makeBeanBuildDirectory">
		    <mkdir dir="${}/META-INF"/>
.. 	  <target name="main" depends.. etc.>

View raw message