RE: Problem with task

2007-06-11 Thread Rebhan, Gilbert
Hi, -Original Message- From: David Weintraub [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 3:10 AM To: Ant Users List Subject: Re: Problem with task /* I know that CruiseControl mail works, but maybe CruiseControl distributed the mail.jar in its distribution. */ CruiseContro

Re: globmapper question

2007-06-11 Thread Dave Brosius
For the curious, i was able to fix my problems by using pathconvert from="${uptodate.path}/*.java" to="${uptodate.path}/qproxy/*.java"/> - Original Message - From: "Dave Brosius" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Monday, June 11, 2007 10:45

Re: globmapper question

2007-06-11 Thread Dave Brosius
Ok, i found the problem. My source path had a .. in it due to ${qproxy.src.dir}/${cls} ${qproxy.src.dir} ended with .. This then failed the mapper source file test as UptoDate resolves the filename, and strips the .. but not the mapper path It would be nice if UpdateToDate would handle the

Re: Problem with task

2007-06-11 Thread David Weintraub
I found the library dependency list at , and it says that mail.jar must be in my path. I'll have to verify that. I know that CruiseControl mail works, but maybe CruiseControl distributed the mail.jar in its distribution. I'll have to

RE: Problem with task

2007-06-11 Thread Anderson, Rob (Global Trade)
I'm not sure what this means. I would check the dependencies required for the mail task, to ensure that they are in place. http://ant.apache.org/manual/index.html Also, search the user list archives, I have seen chatter about this in the past. I hope this helps. -Rob A > -Original Message

Problem with task

2007-06-11 Thread David Weintraub
I have a very straight forward build.xml file: When I attempt to execute it, I get the following error message: test: [mail] Failed to initialise MIME mail: javax/mail/MessagingException BUILD SUCCESSFUL Which is strange because I set "failonerror" t

Mail failing in build.xml file

2007-06-11 Thread David Weintraub
I have a very straight forward build.xml file: When I attempt to execute it, I get the following error message: test: [mail] Failed to initialise MIME mail: javax/mail/MessagingException BUILD SUCCESSFUL Which is strange because I set "failonerror" t

Re: Does scriptdef use ant:current xmlns when defined in antlib?

2007-06-11 Thread Peter Reilly
On 6/11/07, Vladimir Volod'ko <[EMAIL PROTECTED]> wrote: Hi, Peter! Thanks for Your answer. It is clear for me now why those strange things happened. > This is not (currently) supported. > If it did work the format would be type="ant:current:elem", but > that does not work as well. The "ant:cur

Re: Extending JUnit Ant tasks

2007-06-11 Thread Steve Loughran
Rebhan, Gilbert wrote: -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 12:41 PM To: Ant Users List Subject: Re: Extending JUnit Ant tasks Hi, /* well, sounds like you have to write a new xmllogger. One problem with a streaming/flushi

RE: creating files

2007-06-11 Thread Rebhan, Gilbert
Hi, -Original Message- From: arijit [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 1:27 PM To: user@ant.apache.org Subject: RE: creating files /* even if I load the property file, I can't see how I can read the key value pair from the property which is loaded and use it to repla

RE: creating files

2007-06-11 Thread Jukka Uusisalo
In test.properties file i have foo=bar template.txt contains Hello World by _Replace_This_ After execution target do_replace result_file.txt contains Hello World by bar - Jukka - > -Original Message- > From: arijit [mailto:

RE: Extending JUnit Ant tasks

2007-06-11 Thread Rebhan, Gilbert
-Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 12:41 PM To: Ant Users List Subject: Re: Extending JUnit Ant tasks Hi, /* well, sounds like you have to write a new xmllogger. One problem with a streaming/flushing logger is that if the p

Re: Does scriptdef use ant:current xmlns when defined in antlib?

2007-06-11 Thread Vladimir Volod'ko
Hi, Peter! Thanks for Your answer. It is clear for me now why those strange things happened. This is not (currently) supported. If it did work the format would be type="ant:current:elem", but that does not work as well. The "ant:current" namespace is only available during parsing time - and n

RE: creating files

2007-06-11 Thread arijit
even if I load the property file, I can't see how I can read the key value pair from the property which is loaded and use it to replace the token with the read value... any sample code ? arijit wrote: > > thanks for that warning about .. didn't think about that... i might > have a Template BATC

Re: creating files

2007-06-11 Thread Steve Loughran
arijit wrote: i tried out "" it worked perfectly replacing VARIABLE with version. But my next task is to read the value from some property file instead of typing in the value as shown above. i will also try out Gilbert's suggestion to load the property value and retrieve using key-value pair.

Re: Extending JUnit Ant tasks

2007-06-11 Thread Steve Loughran
Steve Loughran wrote: The alternative is for ant to optionally register a signal handler (sun java only; would cause trouble on IDEs) and then to shut down more gracefully on termination. This is what smartfrog does, though since Java6 the javac compiler goes out of its way to tell us off for

Re: Extending JUnit Ant tasks

2007-06-11 Thread Steve Loughran
Rebhan, Gilbert wrote: Hi, -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 11:41 AM To: Ant Users List Subject: Re: Extending JUnit Ant tasks /* [ ... ] In them I show an XHTML output that gets streamed out... not only is it viewable w

RE: creating files

2007-06-11 Thread arijit
thanks for that warning about .. didn't think about that... i might have a Template BATCH file available to me and only use to replace the token...This wil of course, mean that I will have to manually make modifications to the template.. Rebhan, Gilbert wrote: > > > Hi, > > > -Orig

Re: Does scriptdef use ant:current xmlns when defined in antlib?

2007-06-11 Thread Peter Reilly
On 6/11/07, Vladimir Volod'ko <[EMAIL PROTECTED]> wrote: Hello! I'm trying to put my script tasks in antlib and wonder why hte following code does not work: # complex/antlib.xml

RE: creating files

2007-06-11 Thread arijit
i tried out "" it worked perfectly replacing VARIABLE with version. But my next task is to read the value from some property file instead of typing in the value as shown above. i will also try out Gilbert's suggestion to load the property value and retrieve using key-value pair. arijit wrote

RE: creating files

2007-06-11 Thread Rebhan, Gilbert
-Original Message- From: arijit [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 12:26 PM To: user@ant.apache.org Subject: RE: creating files /* that's good... lets say the batch file I am creating has an entry "echo java -VARIABLE"... now when the actual batch file is created, V

RE: creating files

2007-06-11 Thread arijit
that's good... lets say the batch file I am creating has an entry "echo java -VARIABLE"... now when the actual batch file is created, VARIABLE has to be replaced by either version or maybe help or something else.. can I use the replace task to replace sections of the batch files ? I will try ou

RE: creating files

2007-06-11 Thread Rebhan, Gilbert
Hi, -Original Message- From: arijit [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 12:01 PM To: user@ant.apache.org Subject: RE: creating files /* great.. I can now create batch files using and also use to add contents to the file. */ also foobar possible, message attribut n

RE: creating files

2007-06-11 Thread Jukka Uusisalo
> -Original Message- > From: arijit [mailto:[EMAIL PROTECTED] > Sent: 11. kesakuuta 2007 13:01 > To: user@ant.apache.org > Subject: RE: creating files > > > > great.. I can now create batch files using > and also use > to add contents to the file. > > is it possible to read data from

RE: Extending JUnit Ant tasks

2007-06-11 Thread Rebhan, Gilbert
Hi, -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 11:41 AM To: Ant Users List Subject: Re: Extending JUnit Ant tasks /* [ ... ] In them I show an XHTML output that gets streamed out... not only is it viewable without waiting for the end

Re: AW: how to get a process id from a spawned task?

2007-06-11 Thread arijit
Sun's documentation states that JPS may not be supported in future versions of JDK.. also, it is not supported in Windows 98 and Windows ME... So I guess JPS will not be a good choice after all... with no other generic support to retrieve process ids and take some action based on the status, it

RE: creating files

2007-06-11 Thread arijit
great.. I can now create batch files using and also use to add contents to the file. is it possible to read data from some property file and then use it to generate the batch file ? In other words, batch file generated will have some information which is read from the property file and added to

Re: Extending JUnit Ant tasks

2007-06-11 Thread Steve Loughran
Alex Ruiz wrote: Hello all, I've been trying to extend JUnit's report without success. The following are some questions/comments about what I couldn't accomplish: 1. Ant's org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter does not offer any support for extensibility. It wou

Does scriptdef use ant:current xmlns when defined in antlib?

2007-06-11 Thread Vladimir Volod'ko
Hello! I'm trying to put my script tasks in antlib and wonder why hte following code does not work: # complex/antlib.xml # build.xml

Re: ANT 1.7 with JUNIT4.0

2007-06-11 Thread Steve Loughran
James Mao wrote: Hi, I just upgraded from ant 1.6 to ant 1.7, and now i also upgraded to junit 4 But i can not see the *ignored tests* in the brief formatter mode. Is it a known issue? Not so much an "issue" as a feature that could only be implemented if went to junit4 only, which it canno

RE: creating files

2007-06-11 Thread Rebhan, Gilbert
Hi, -Original Message- From: arijit [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 10:58 AM To: user@ant.apache.org Subject: creating files /* Using ANT, I want to generate some batch and property files. Is it possible to create new files ? */ if you speak of ascii files you

Re: AW: how to get a process id from a spawned task?

2007-06-11 Thread Steve Loughran
arijit wrote: I was hoping not to use any 3rd party tool but maybe something via ANT tasks or Java calls. One of the similar threads mentioned about 'jps' but could not get it working. Keeping it generic so that it can be used not only for windows will be a good approach. well, the fact that

creating files

2007-06-11 Thread arijit
Using ANT, I want to generate some batch and property files. Is it possible to create new files ? -- View this message in context: http://www.nabble.com/creating-files-tf3900318.html#a11057061 Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: AW: how to get a process id from a spawned task?

2007-06-11 Thread arijit
I was hoping not to use any 3rd party tool but maybe something via ANT tasks or Java calls. One of the similar threads mentioned about 'jps' but could not get it working. Keeping it generic so that it can be used not only for windows will be a good approach. Gilbert Rebhan wrote: > > Hi, > >

RE: broken in antcontrib 1.0b3 ?!

2007-06-11 Thread Rebhan, Gilbert
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 9:39 AM To: Ant Users List Subject: RE: broken in antcontrib 1.0b3 ?! sorry should read ... whereas the same class had 14,3 KB in antcontrib 1.0b2 release ?! Regards, Gilbert -

RE: broken in antcontrib 1.0b3 ?!

2007-06-11 Thread Rebhan, Gilbert
Hi, Dale -Original Message- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 5:43 PM To: Ant Users List Subject: Re: broken in antcontrib 1.0b3 ?! /* Sorry for the late response. Did you get an answer to this? */ No response, your mail is the only one. /*