AW: Getting output from a custom ant task

2006-10-12 Thread Jan.Materne
http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html#returning-list Jan >-Ursprüngliche Nachricht- >Von: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 13. Oktober 2006 02:16 >An: Ant Users List >Betreff: Re: Getting output from a custom ant task > >H

Re: Getting output from a custom ant task

2006-10-12 Thread Antoine Levy-Lambert
Hello Hunter, such tasks usually have an attribute to choose the property name that you want to set. getProject().setProperty(name, value) should do. Antoine Hunter Peress wrote: > Hi, Im writing a custom ant task and I want to know how I can return a > string from it back to an ant property. >

Getting output from a custom ant task

2006-10-12 Thread Hunter Peress
Hi, Im writing a custom ant task and I want to know how I can return a string from it back to an ant property.

Re: Junit4/1.7

2006-10-12 Thread Antoine Levy-Lambert
Rodriguez, Adrian wrote: >> >> > Sunday 10/15 or Sunday 10/15 > Is the code fix for this in HEAD? I might just build it here to test > out the junit task. > > Yes the code fix is already in SVN. > thanx =) > > > Antoine

RE: Junit4/1.7

2006-10-12 Thread Rodriguez, Adrian
>On 10/12/06, Rodriguez, Adrian <[EMAIL PROTECTED]> wrote: >> I tried to execute the junit task using 1.7b2 and when I set >> fork="false," I get a report that says "No runnable methods found." >> My test case has 18 methods annotated with @Test. >> >> Now I set fork="true." I keep getting >>

Re: Junit4/1.7

2006-10-12 Thread Peter Reilly
ant 1.7.0beta3 (next sunday) will fix these two problems. Peter On 10/12/06, Rodriguez, Adrian <[EMAIL PROTECTED]> wrote: I tried to execute the junit task using 1.7b2 and when I set fork="false," I get a report that says "No runnable methods found." My test case has 18 methods annotated with

Junit4/1.7

2006-10-12 Thread Rodriguez, Adrian
I tried to execute the junit task using 1.7b2 and when I set fork="false," I get a report that says "No runnable methods found." My test case has 18 methods annotated with @Test. Now I set fork="true." I keep getting junitvmwatcher.properties (The system cannot find the file specified). Anyone

Re: Did i reinvent the wheel with greaterthan?

2006-10-12 Thread Dominique Devienne
On 10/12/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: Honestly, I've done something similar... However, my approach was to subtract the two numbers and if examine the 1st character to determine <, > or =... a "-" means less than, "0" means equal otherwise its greater than. I couldn't find exa

Re: AW: How To Jail Ant Script by Options

2006-10-12 Thread Dominique Devienne
does chroot command exist in ant script language? No. chroot is a low-level unix system command. But Java can be "sandboxed" using security policies: http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html Also, Jan pointed you to , a nested element of , which could perhaps be used

Re: Did i reinvent the wheel with greaterthan?

2006-10-12 Thread Scot P. Floess
Honestly, I've done something similar... However, my approach was to subtract the two numbers and if examine the 1st character to determine <, > or =... a "-" means less than, "0" means equal otherwise its greater than. I couldn't find exactly what I wanted either...that's why I "rolled my o

Re: AW: How To Jail Ant Script by Options

2006-10-12 Thread Alexandre CABROL PERALES
does chroot command exist in ant script language? [EMAIL PROTECTED] a écrit : AFAIK you start CC using a wrapper buildfile which uses to call the real buildfile. You could use instead of , so you could pass s. (BTW should we add permission-support to ?) Jan -Ursprüngliche Nachrich

Did i reinvent the wheel with greaterthan?

2006-10-12 Thread Hunter Peress
Im using ant-contrib to implement a greater-than (for ints only) functionality. Did I miss something in the documentation? Or is this the best approach (i realize I could have written a custom ant task) Did i reinvent some wheel in ant?

Re: How To Jail Ant Script by Options

2006-10-12 Thread Alexandre CABROL PERALES
Cruise Control directly call ant class yes but it use a xml balise configuration system. http://cruisecontrol.sourceforge.net/main/configxml.html#ant but there is no option to chroot or jail a ant script execution. And cruise control work like a daemon which have a main loop for scan subversion

Re: Documentation for Java2WSDLTask

2006-10-12 Thread Martin Gainty
good answer! Send me your build.xml and I'll try it here.. Also.. Im cc'ing Ant users list as this is the list which handles ANT build.xml issues Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients

AW: How To Jail Ant Script by Options

2006-10-12 Thread Jan.Materne
AFAIK you start CC using a wrapper buildfile which uses to call the real buildfile. You could use instead of , so you could pass s. (BTW should we add permission-support to ?) Jan >-Ursprüngliche Nachricht- >Von: Antoine Levy-Lambert [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag

Re: AW: Quiet output

2006-10-12 Thread Iván Pérez Domínguez
Steve Loughran wrote: >> OK, now my question has turned into "How can I set an environment >> variable from inside an build.xml file?" >> >> I tried this: >> >> >> >> >> >> >> > > no, that wont work. you can only set the env variable for a child > process, including java and junit -i.e.

Re: AW: Quiet output

2006-10-12 Thread Steve Loughran
Iván Pérez Domínguez wrote: [EMAIL PROTECTED] wrote: Set the environment variabe ANT_OPTS to "-emacs" or "-quiet". Thanks, that was a great starting point. Actually, the name of the variable is ANT_ARGS. OK, now my question has turned into "How can I set an environment variable from inside an

Re: How To Jail Ant Script by Options

2006-10-12 Thread Antoine Levy-Lambert
Hi, there is no such ant option. Maybe with a java security policy file you could achieve this ? You will need to allow room for temporary files anyway, or set java.io.tmpdir at startup. VM parameters put in the ANT_OPTS environment variable are used when ant starts from the command line with t

Re: AW: Quiet output

2006-10-12 Thread Iván Pérez Domínguez
[EMAIL PROTECTED] wrote: > Set the environment variabe ANT_OPTS to "-emacs" or "-quiet". > Thanks, that was a great starting point. Actually, the name of the variable is ANT_ARGS. OK, now my question has turned into "How can I set an environment variable from inside an build.xml file?" I tried t

AW: Quiet output

2006-10-12 Thread Jan.Materne
Set the environment variabe ANT_OPTS to "-emacs" or "-quiet". Jan >-Ursprüngliche Nachricht- >Von: Iván Pérez Domínguez [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 12. Oktober 2006 08:57 >An: Ant Users List >Betreff: Re: Quiet output > >OK, that's closer to what I want but, is ther

Re: Quiet output

2006-10-12 Thread Iván Pérez Domínguez
OK, that's closer to what I want but, is there any way to force this -emacs flag to be enabled even if the user didn't write "ant -quiet -emacs"? Maybe the ant task should allow options like that to be passed to ANT. Ninju Bohra wrote: > You might want to look at the -emacs command line option to