Re: conditional make-directory

2012-04-24 Thread Dave Pawson
On 25 April 2012 04:56, Stefan Bodewig wrote: >>> In ant that would be > >>> > >>> If the directory already exists the task simply doesn't do anything. > >> How might I combine that with a property definition please... > > I didn't see you wanted to define a property, sorry.  My recommendation

Re: conditional make-directory

2012-04-24 Thread Stefan Bodewig
On 2012-04-24, Dave Pawson wrote: > On 24 April 2012 16:00, Stefan Bodewig wrote: >> On 2012-04-24, Dave Pawson wrote: >>> In bash it might be >>> #check/create fo directory for output, per font >>> if [[ ! -d ${here}/fo ]] >>>     then >>>     mkdir ${here}/fo >>> fi >> In ant that would be

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2012-04-24 Thread SimpleSolution
If your running the build.xml from eclipse, here are two possible solutions: 1: rightClick on build.xml->classpath tab (Here you add each svnant jar explicitly)-> Add External Jar(add all svnant jars)->Run 2: rightClick on build.xml->Environment->Select button->Then select the env variable explici

Re: conditional make-directory

2012-04-24 Thread Dave Pawson
On 24 April 2012 16:00, Stefan Bodewig wrote: > On 2012-04-24, Dave Pawson wrote: > >> In bash it might be > >> #check/create fo directory for output, per font >> if [[ ! -d ${here}/fo ]] >>     then >>     mkdir ${here}/fo >> fi > > In ant that would be > > > > If the directory already exists th

Re: conditional make-directory

2012-04-24 Thread Dave Pawson
On 24 April 2012 16:00, Stefan Bodewig wrote: > On 2012-04-24, Dave Pawson wrote: > >> In bash it might be > >> #check/create fo directory for output, per font >> if [[ ! -d ${here}/fo ]] >>     then >>     mkdir ${here}/fo >> fi > > In ant that would be > > > > If the directory already exists th

Re: conditional make-directory

2012-04-24 Thread Dave Pawson
On 24 April 2012 15:59, Harold Putman wrote: > You just do... > >         >         > > The creates the directory in basedir, and by using tempfile you  guarantees > that the directory does not already exist. But if the directory did already > exists, mkdir will do nothing, there is no need to che

Re: conditional make-directory

2012-04-24 Thread Stefan Bodewig
On 2012-04-24, Dave Pawson wrote: > In bash it might be > #check/create fo directory for output, per font > if [[ ! -d ${here}/fo ]] > then > mkdir ${here}/fo > fi In ant that would be If the directory already exists the task simply doesn't do anything. Stefan --

Re: conditional make-directory

2012-04-24 Thread Harold Putman
You just do... The creates the directory in basedir, and by using tempfile you guarantees that the directory does not already exist. But if the directory did already exists, mkdir will do nothing, there is no need to check first. (BTW thanks for the XSLT FAQ. I spend a lot of

conditional make-directory

2012-04-24 Thread Dave Pawson
I need a temporary directory. What's the 'ant speak' for property name='my-temp' if directory exists (my-temp) then my-temp else mkdir 'my-temp' I hope that's clear? In bash it might be #check/create fo directory for output, per font if [[ ! -d ${here}/fo ]] then mkdir ${here}/fo fi

Re: Incorrect reading of property containing accented chars from build.properties by custom task

2012-04-24 Thread Lokesh Jain
Ok, here's the deal. The properties file is generated in ISO8859-1 encoding but(and this is what I didn't realise :-[ ) when I edit the file to put the APPLICATION_GUID as HELLOÀÁÀ, both vim and gedit convert the file into UTF-8. I used iconv to reconvert the file into ISO8859-1 and now it s