Usually you place a <mkdir> at the beginning, e.g. before a <javac>.
If the dir does not exist, it will be created. If if exists already, nothing 
happens.

Because this (javac fails if dir does not exist) is an old behaviour some build 
scripts
may rely on that behaviour, so we cant change that. 


<include name="*.js"/>
<include name="**/*.js"/>
You dont need the first statement. ** fetches all directories - inclusive the 
current .


Jan 

>-----Ursprüngliche Nachricht-----
>Von: Jakob Fix [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 25. November 2005 17:39
>An: Ant Users List
>Betreff: Re: apply task trouble for command using < and >
>
>Jan,
>
>now it even looks aesthetic :-)
>
>I've integrated jslint which checks the syntax (see
>http://www.crockford.com) using another macrodef, and if all 
>files pass runs them through jsmin.  Well, I'm aware that this 
>may get OT, but I must say I learnt an awful lot.  Thanks again, Jan.
>
>Hmm, just one small problem I couldn't solve yet.  Apply will 
>bail out if it tries to output a file to a directory that 
>doesn't exist.
>
>I attach the build.xml file (we'll see if it gets through ... 
>Jakarta mailing list guidelines don't say anything about 
>attachments).  Thanks again!
>
>--
>cheers,
>Jakob.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to