First off. You shouldn't be doing antcalls. Especially in order. Ant
has the ability to figure out how to build your software. All you have
to do is give it the information it needs.
For example:
In the above (fairly empty) Ant script, running "ant" will
n" ateitti...@i-a-i.com
Subject: Re: Need help in build.xml file...
> I created an Ant script based on the code you provided. The following
> messages were returned:
>
> exists:
> Skipped because property 'present' not set.
>
> printError:
> Skipped b
I created an Ant script based on the code you provided. The following
messages were returned:
exists:
Skipped because property 'present' not set.
printError:
Skipped because property 'isaFile' not set.
I did a quick rewrite of your code:
depends="clean, prepare, ja
Anna:
I think that you aren't doing everything that you think you are doing in
this snippet. In particular, it appears as if nothing ever sets the
isaFile property. And, because your printError target depends on the
isaFile property being set, you will never get your error message.
If I do
I would use the task to create the directory. I would also consider
deleting the directory before the mkdir.
Is there a need for the multi-line ?
Ant is not intended to be a scripting language.
On Fri, Dec 26, 2008 at 6:21 PM, Anna Teittinen wrote:
> Hello,
>
> I am relatively new to using ant.
Hello,
I am relatively new to using ant.
Can somebody help me with a problem I have in my build.xml file?
Below is a snippet of code from my build.xml file.
Below, "caratsharp.dir" refers to a directory.
Basically, if that directory exists, then the clean, prepare, jar, and copy_jar
targets will