Re: Sorting file name

2009-06-22 Thread Henry Suhatman
Yes it way to solve, but i don't want fill zero in first filename, if i write new task i don't know where i had started :( Anyone can suggest? Please advice me. Thx. David Weintraub wrote: Well, it is sorting the files by name. Unfortunately, it is sorting them in ASCII dictionary order. The

Re: factoring out commonality in sequences of tasks

2009-06-22 Thread jscripter
Michael Ludwig-6 wrote: > > jscripter schrieb am 22.06.2009 um 14:16:24 (-0700): > >> > >> > ... >> > >> > >> > ... > >> I need to preserve the execution order of the tasks, so I don't think >> that would work. > > From a recent post of David Weintraub: > > | You say that B depend

Re: factoring out commonality in sequences of tasks

2009-06-22 Thread Michael Ludwig
jscripter schrieb am 22.06.2009 um 14:16:24 (-0700): > > > > ... > > > > > > ... > I need to preserve the execution order of the tasks, so I don't think > that would work. >From a recent post of David Weintraub: | You say that B depends upon A, and C depends upon A and that A depends

Re: factoring out commonality in sequences of tasks

2009-06-22 Thread jscripter
Michael Ludwig-6 wrote: > > jscripter schrieb am 22.06.2009 um 13:46:19 (-0700): >> >> Suppose I have an operation which deploys files and I have the option >> of deploying the files by copying them and deploying using symlinks: >> >> >> >> >> >> >> >> >> >> >> >> >>

Re: factoring out commonality in sequences of tasks

2009-06-22 Thread Michael Ludwig
jscripter schrieb am 22.06.2009 um 13:46:19 (-0700): > > Suppose I have an operation which deploys files and I have the option > of deploying the files by copying them and deploying using symlinks: > > > > > > > > > > > > > > > > > > What's the best way to fact

factoring out commonality in sequences of tasks

2009-06-22 Thread jscripter
Suppose I have an operation which deploys files and I have the option of deploying the files by copying them and deploying using symlinks: What's the best way to factor out the commonality of these two targets? Note that , , etc. are going to be sequence of ta

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-22 Thread Scot P. Floess
Have you looked at the symlink task? http://ant.apache.org/manual/OptionalTasks/symlink.html On Mon, 22 Jun 2009, jscripter wrote: I am using this target definition to remove all the files under ${TOP} which contains some symlinks to other directories: H

Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-06-22 Thread jscripter
I am using this target definition to remove all the files under ${TOP} which contains some symlinks to other directories: However, I've noticed that delete is not deleting the symlinks. I'd like to get the same results as /bin/rm -rf under Unix, i.e. the

Re: Remove trailing spaces from a string?

2009-06-22 Thread Scot P. Floess
Sorry - type-o... PropertyRegex - its a link under the Property Tasks: http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html On Mon, 22 Jun 2009, Scott Stark wrote: Ant Contrib has a PropertyRedgex task you can use... Sorry, I don't see anything called that in ant-contrib. Is

Re: Remove trailing spaces from a string?

2009-06-22 Thread Scott Stark
> Ant Contrib has a PropertyRedgex task you can use... Sorry, I don't see anything called that in ant-contrib. Is there another name for it? thanks, Scott

Re: Remove trailing spaces from a string?

2009-06-22 Thread Scot P. Floess
Ant Contrib has a PropertyRedgex task you can use... Or you could definitely do something with scripting...like beanshell... On Mon, 22 Jun 2009, Scott Stark wrote: Hi all, I see Ant tasks that can do string substitution in a file. Is there any way to do that in a simple string? I want to re

Remove trailing spaces from a string?

2009-06-22 Thread Scott Stark
Hi all, I see Ant tasks that can do string substitution in a file. Is there any way to do that in a simple string? I want to remove trailing spaces from property values. The reason I ask is that we use properties files to specify property values such as file names. Occasionally someone will put a