hi

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" />
        </target>
</project>

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"/>

.
.
.

          <!-- BEAN SPECIFIC PROPERTIES -->
          <property name="bean.dir" value="."/>
          <property name="bean.build.dir" value="build"/>
          <property name="bean.jarName" value="User_containerManaged.jar"/>

          <!-- BUILD THE BEAN  -->

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

Reply via email to