AW: multiple regexs against a single doc

2007-07-31 Thread Jan.Materne
Maybe something like Jan >-Ursprüngliche Nachricht- >Von: Mario Madunic [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 31. Juli 2007 16:00 >An: Ant Users List >Betreff: multiple regexs against a single doc > >Right now I'm doing the following with each r

AW: AW: AW: while-like structure in Ant

2007-07-31 Thread Jan.Materne
Never tried instantiating conditions from javascript ... But basically these are java classes. So instantiate and set configure it myhttp = new Http(); myhttp.setUrl("a url adress"); Maybe we could set a project instance or something like that. Let's have a look at the sources [1,2] - yes.

AW: Problem with Ant and CVS?

2007-07-31 Thread Knuplesch , Jürgen
Hi Simon, I always found it better to call CVS via ANT using commandline and argument rather than command. So maybe you want to try sth. Similar to this: Hope this helps... -- Jürgen Knupleschwww.i

Re: AW: AW: while-like structure in Ant

2007-07-31 Thread Emir Mahmut BAHSI
Thanks for the information Jan. I am using both 'http' condition and 'get' task in my problem. I really want to know how can I create an 'http' condition in the javascript code below? >>myhttp = project.createTask("http"); >>myhttp.setUrl("a url address"); In the code above createTask is not ap

multiple regexs against a single doc

2007-07-31 Thread Mario Madunic
Right now I'm doing the following with each regex that I require to replace some string or char etc...(x100) This is a slow process as each file is "opened" and "closed" for each regex. What I'd like to do is open a file and parse with multiple regexs before going to the next regex. Is t

RE: new ant user - trying to run java cmd

2007-07-31 Thread Alec Fernandez
You list a depends="jar" which tells ant to find a target named "jar" and run it before it runs the target named "run" I suspect that you do not have a target named "jar" defined. The java task accepts nested arg elements. Here's a working example:

Re: BCP and ANT

2007-07-31 Thread Mario Madunic
thanks, I'll give it a try. Mario Quoting Bevan Arps <[EMAIL PROTECTED]>: > Mario Madunic wrote: > > has anybody used BCP (bulk copy program) with ANT. I need to insert data > into a > > SQL Server and would like to do this within ANT. > > > > Any hints on how to do this will be appreciated. >

Re: Using

2007-07-31 Thread Peter Reilly
On 7/31/07, Miroslav Šulc <[EMAIL PROTECTED]> wrote: > What would this do? Replace with the s? If > so, that would be great :-) Yep, that is the idea. Peter > > -- > Miroslav Šulc > > > Peter Reilly napsal(a): > > I am "working" (in the to-do queue) on a enhanced version of > > allows nearly a

Re: new ant user - trying to run java cmd

2007-07-31 Thread triona28
Hi, I've tried the following: after: I write: but this returns: BUILD FAILED C:\myProjects\runway_core\guitools\sims\build.xml:153: Problem: failed to create task or type target Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types

Re: Using

2007-07-31 Thread Miroslav Šulc
What would this do? Replace with the s? If so, that would be great :-) -- Miroslav Šulc Peter Reilly napsal(a): I am "working" (in the to-do queue) on a enhanced version of allows nearly arbitrary fragments of xml to be marcodef'ed. see: http://issues.apache.org/bugzilla/show_bug.cgi?id=40

RE: new ant user - trying to run java cmd

2007-07-31 Thread Pushkar Prasad
and yes.. add a manifest to jar (Main class where the main() is there ) -Original Message- From: triona28 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 1:43 PM To: user@ant.apache.org Subject: new ant user - trying to run java cmd Hi, I'm trying to run a class from

Re: Using

2007-07-31 Thread Peter Reilly
I am "working" (in the to-do queue) on a enhanced version of allows nearly arbitrary fragments of xml to be marcodef'ed. see: http://issues.apache.org/bugzilla/show_bug.cgi?id=40678 This should address your use case: P

AW: new ant user - trying to run java cmd

2007-07-31 Thread Jan.Materne
* dont write a inside the * when specifying a main-class, use '.' as package-delimiters, not '/' * when starting - you could use the jar-attribute (as you have a main-class defined) or - provide the full qualified classname 'com.tech.simulators.Main' * but dont expect that nested JARs are on

new ant user - trying to run java cmd

2007-07-31 Thread triona28
Hi, I'm trying to run a class from built jar using ant but my script doesn't pick up even my echos around it - what am I doing wrong? this is the bit that's already in my script & works:

RE: windows command

2007-07-31 Thread Sharma, Jaikumar
I think does not support Network Re-startable mode ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 1:04 PM To: user@ant.apache.org Subject: AW: windows command Why dont you use ? Jan >-Ursprüngliche Nachricht- >Von: Sharma,

RE: windows command

2007-07-31 Thread Sharma, Jaikumar
Do not go to , this is what I have mentioned below in my mail, you can adapt the command line arguments as your windows system commnad accepts. -Original Message- From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 1:07 PM To: Ant Users List Subject: RE: wi

RE: windows command

2007-07-31 Thread Sayed, Irfan (Irfan)
what is the meaning of -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 1:04 PM To: user@ant.apache.org Subject: AW: windows command Why dont you use ? Jan >-Ursprüngliche Nachricht- >Von: Sharma, Jaikumar [mailto:[EMAIL PRO

AW: simple buildnumber task usage question

2007-07-31 Thread Jan.Materne
No??? http://ant.apache.org/manual/CoreTasks/buildnumber.html ... then set the property build.number to the value that was read in (or to 0, if no such value). Jan >-Ursprüngliche Nachricht- >Von: Alex Egg [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 31. Juli 2007 05:15 >An: Ant

AW: windows command

2007-07-31 Thread Jan.Materne
Why dont you use ? Jan >-Ursprüngliche Nachricht- >Von: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 31. Juli 2007 09:25 >An: Ant Users List >Betreff: RE: windows command > >You can use the windows system command in the following way. > > > > >

AW: AW: while-like structure in Ant

2007-07-31 Thread Jan.Materne
A condition is a different thing than a task - a condition checks something - a task does something. Of course an implementing class maybe can do both ( ). For HTTP there are two different implementations: - condition - task (- http AntLib http://ant.apache.org/antlibs/sandbox.html ) Jan >--

AW: Using

2007-07-31 Thread Jan.Materne
These are two different kinds of datatypes. is a new resource collection. (ok is also one) is an "old" datatype. The handling (iterating over) these is completely different. You could compare handling and in http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html * http://ant.apa

AW: concat task on group of utf 8 files w/ BOM

2007-07-31 Thread Jan.Materne
You could try a to get rid off the BOMs when enating the files. Jan >-Ursprüngliche Nachricht- >Von: Alex Egg [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 30. Juli 2007 22:33 >An: Ant Users List >Betreff: concat task on group of utf 8 files w/ BOM > >Hi, >I'm using the concat task wit

RE: windows command

2007-07-31 Thread Sharma, Jaikumar
You can use the windows system command in the following way. example note : In the above target I have used xcopy.exe Windows program to copy file from c:\temp to d:\temp. You can pass arguments to command using

AW: AW: checkstyle-ant

2007-07-31 Thread Jan.Materne
Oh, instead of modifying Ant you could also put checkstyle into your project ( ${basedir}/checkstyle ) and work from inside Ant: As a further step, you could let Ivy download cs and define the path ... see http://svn.apache.org/viewvc/

windows command

2007-07-31 Thread Sayed, Irfan (Irfan)
Hi All, I need to execute windows system command in Ant's build.xml. I got one sample in manual but need to know what is the exact meaning of every line with every attribute. Can somebody please help Regards Irfan.