ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Weighill-Smith <phil.weighill-sm...@volantis.com>
Subject Re: Question Title: ANT -->> Directory access problem
Date Fri, 17 Dec 2004 09:28:53 GMT
Don't specify basedir in the sub-project build.xml and invoke it via
<ant/> from a build.xml in the c:\MyProject directory (with basedir
"."): the sub-project will inherit the main project's basedir (i.e.
c:\MyProject). Alternatively, access your source directory via ../src
(which seems a bit duff, but workable). Finally, look at the <ant/> and
<subant/> tasks' documentation.

Phil :n.

On Fri, 2004-12-17 at 05:48, IndianAtTech wrote:

>  Hi All,
> 
> I know the following is valid syntax and also works fine in my case.
> 
> 
> <project name="MyProject" default="dist" basedir=".">
>     <description>
>         simple example build file
>     </description>
> </project>
> 
> 
> But i have different scenario.
> Say I have a project called in MyProect in root direectory and it
> contains sub directory called MyTest, something like
> c:/MyProject/MyTest
> 
> and also it contains c:/MyProject/src
> 
> now placing my build.xml in c:/MyProject/MyTest foloder I wanted to
> compile tje files of c:/MyProject/src
> 
> By giving explicitly the value of basedir as /MyProject, I can make
> build.xml to work.
> 
> But I wanted to access the value of /MyProject/src dynamically.
> 
> I have tried basedir"./" and basedir="/./" both doesnot work.
> 
> So, Please let me know other solutions, if it is possible
> 
> Thanks
> sudhakar
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org

-- 
Phil Weighill-Smith <phil.weighill-smith@volantis.com>
Volantis Systems

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message