ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suzanne Kramer <>
Subject Subant: can't override basedir in subproject
Date Wed, 24 Mar 2004 20:51:27 GMT
Hi,  I am building a project using subant, and need to set 
inheritall=true.  I can't override the  basedir in the sub-projects 

Here's a test snippet.   Any help would be greatly appreciated, thanks, 

C:\>type test\build.xml

<?xml version="1.0"?>
<project name="bla" default="">
     <target name="testit">
         <subant target="" antfile="comp-build.xml" inheritall="true">
             <dirset dir="./build/" includes="test*"/>

C:\>type test\build\test\comp-build.xml

<?xml version="1.0"?>
<project name="test" default="" basedir="/test/build/test">
     <echo message="base dir is ${basedir}"/>

C:\test>ant testit
Buildfile: build.xml

      [echo] base dir is C:\test

C:\test\build\test>ant -f comp-build.xml
Buildfile: comp-build.xml
      [echo] base dir is C:\test\build\test

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message