ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist <>
Subject Re: Symlink badness. . .
Date Wed, 23 Feb 2005 16:14:17 GMT

On Feb 23, 2005, at 7:54 AM, Edward Ciramella wrote:

> What I'm trying to do is create a symlink to a directory which may/may 
> not exist in the current branch.
> So if the child branch doesn't have a particular folder, create a 
> symlink to it prior to starting the build.
> It's possible for the child branch to contain this folder, but it may 
> not always be the case.
> On Feb 23, 2005, at 10:47 AM, Matt Benson wrote:
>> --- Edward Ciramella <> wrote:
>>> With overwrite set to true and failonerror set to
>>> false, I still get
>>> the link in the sub directory and the second time
>>> it's run, I get the
>>> build failed message.
>> Okay, are all these tests based on the situation that
>> ${basedir}/testing-simlinkdir is already a real
>> directory, and you want it to become a symlink
>> pointing to /Users/eciramella/testing-simlinkdir ?
>> Or, does ${basedir}/testing-simlinkdir not exist in
>> the beginning, but
>> ${basedir}/testing-simlinkdir/testing-simlinkdir is
>> still created on the second invocation with
>> overwrite="true"?

I'm no Ant guru, but here are some suggestions:

— you could just punt on <symlink>, and just <exec> an ln -shf...?

— or, use <available file=""> and the "unless" attribute on something 
so that you only make the link if the directory doesn't exist...


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

View raw message