Re: Check if exist a file and then run or not a target

2009-08-04 Thread Michael George
Redondo Gallardo, Raul Maria wrote: Thank you very much, I'll try it now, this seems be a good form to do this. Thank you very much. Best regards -Mensaje original- De: Sushim Saini [mailto:sushimsa...@gmail.com] Enviado el: martes, 04 de agosto de 2009 11:46 Para: Ant Users List As

Re: AW: a task for selecting among possible options?

2009-07-21 Thread Michael George
Oh my god that's so much simpler than what I was doing. Thanks! --Mike jan.mate...@rzf.fin-nrw.de wrote: ... more available tasks Because properties are immutable the first hit wins. Jan -Ursprüngliche Nachricht- Von: Michael George [mailto:mdgeo...@cs.cornel

Re: how can stop build proccess in a sub task?

2009-07-20 Thread Michael George
The task stops the build. --Mike edumudi.viswan...@oracle.com wrote: I have target like , which depends on sub_task1, sub_task2. So subtasks are & if I feel some task didn't do its work proper way in any one of subtasks, how can I stop build process in middle of subtask(s)? thanks

how to process new UnknownElements

2009-07-20 Thread Michael George
Hello, I'm trying to write an ant task that does substitution like macroDef or ant-contrib:foreach does. I want to take something like this: and evaluate the tag, substituting each option into the condition for @{foo}. However, I'm having trouble getting this to work. I fi

Re: how to do conditional processing in ant

2009-07-17 Thread Michael George
Seems like should do that, no? --Mike edumudi.viswan...@oracle.com wrote: Assume, below folder structure & I issue following command @ command prompt: ant -Denvv=sit -Dssltype=1SSL eardirect Xyz folder contains (dev,prod,sit,uat) Dev folder contains (1ssl & 2ssl) 1ssl folder

Re: write property as part of task definition

2009-07-17 Thread Michael George
HamletDRC wrote: Hi Glenn, Thanks for the answer! I do indeed need to include the tag in echoxml because without it there is no root tag and so the xml is malformed. import strips off a tag, so you could alternatively use that.

Re: write property as part of task definition

2009-07-17 Thread Michael George
Another possibility is to create a template file foo.xml.in and use copy with substitutions: --- foo.xml.in @file1@ @file2@ --- build.xml --- I'm not sure if this would accomplish what you want. --Mike glenn opdycke-hansen wrote: Then use to write

a task for selecting among possible options?

2009-07-16 Thread Michael George
Hello, I'm trying to clean up our build process, and one of the problems is that everyone on the team uses a different configuration mechanism (environment vars, properties files, manual config,...). In trying to be backwards compatible with everyone's process I find I would like a task that