RE: JUnit, ANT, log4j, System.out issue

2005-03-28 Thread Oski Wee
I think I have another workaround. [It is kinda related to Mark Hansen's approach in that it uses another class, but the class is used differently here (I think). I only make a call once, instead of each time in setup().] Here it is: If inside a test case method in my TestCase class I instanti

Re: replaceregexp on multiple lines

2005-03-28 Thread Nicolas Vervelle
Ok, thanks for the answer, in fact, I have modified the file for not having new lines any more. But I will remember the difference between '*' and '*?', that could be useful :) Nicolas David Resnick wrote: You need to look into the documentation of the regexp package you have Ant setup to use (th

AW: Executing a command on a Unix/Linux box

2005-03-28 Thread Jan . Materne
I wouldnt write a task for "just" executing that one liner. Jan > -Ursprüngliche Nachricht- > Von: Ninju Bohra [mailto:[EMAIL PROTECTED] > Gesendet am: Montag, 28. März 2005 19:38 > An: Ant Users Group > Betreff: Executing

RE: JUnit, ANT, log4j, System.out issue

2005-03-28 Thread Oski Wee
Hi Mark, Thanks for sharing your tip. I read your link, To get the output from these logging statements to appear in your JUnit report (TEST-package.TestFoo.xml) generated for the test TestFoo.java, you need the following log4j configuration stuff in TestFoo.jar.[.java?] A static reference to the

Dynamically Changing Dependencies

2005-03-28 Thread Brent Bain
Hello: Sorry if this is the wrong spot to ask this question but while I'm using some 3rd party tasks the overall steps are probably fairly common. I currently have an XML property file that has dependencies defined like the following:

jdk 1.3.1 with ant 1.6.2

2005-03-28 Thread Michael Wang \(IT\)
I am using eclipse 3.0.1 (with ant 1.6.2) If I use jdk 1.4.2, I have no problem to run my build.xml. However, if I use jdk 1.3.1, I got this error BUILD FAILED: Unable to load default ProjectHelper due to java.lang.NoClassDefFoundError: org/xml/sax/SAXException Total time: 280 milliseconds if

RE: Forcing the classpath

2005-03-28 Thread McIntosh, Stephen
Thank you Ninju. I will try that. -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: Monday, March 28, 2005 12:25 PM To: Ant Users List Subject: Re: Forcing the classpath Possibly you can create a custom task that extends from org.apache.tools.ant.taskdefs.Javac, set t

RE: Forcing the classpath

2005-03-28 Thread Raymond K. DeCampo
One approach would be to edit the ANT script for your installation to insert XSLT transformations on the build file. These XSLT transformations would remove any custom classpath in the script and replace them with your "one true classpath". You could include an task call to warn when with was

Re: Forcing the classpath

2005-03-28 Thread dbrosius
> Steve McIntosh <[EMAIL PROTECTED]> wrote: > I am attempting to find a way to force the contents of the classpath > passed to javac. > To put that another way, I would like to remove the ability for a user on > my network to pass any classpath to javac other than the one I (the > administrator) s

Executing a command on a Unix/Linux box

2005-03-28 Thread Ninju Bohra
Hello all, On our Linux/Unix boxes we multiple JRun application servers running that were started using the command jrun -start -nohup The servers are manually started (from somebody at a console) Now I need to write a ANT script to automate the stopping of the servers How do I write a

Re: Forcing the classpath

2005-03-28 Thread Ninju Bohra
Possibly you can create a custom task that extends from org.apache.tools.ant.taskdefs.Javac, set the classpath attribute in the constructor and override the .setClasspath() implementation to throw your warning text.. Steve McIntosh <[EMAIL PROTECTED]> wrote: I am attempting to find a way to fo

Re: ClassLoader issues with Ant 1.6.x and the task

2005-03-28 Thread David E Noel
I'm still stuck on this. Any ideas? Dave Noel [EMAIL PROTECTED] David E Noel/Burlington/Contr/[EMAIL PROTECTED] 03/24/2005 06:53 PM Please respond to "Ant Users List" To user@ant.apache.org cc Subject ClassLoader issues with Ant 1.6.x and the task Hello fellow ant users. I have a

Missing I/O when using Java Task directly from Java

2005-03-28 Thread Dirk Schubert
Hello! I'am using the Java task (in forked mode) directly from Java. Everything works fine except that the Standard Output/Error of the launched VM is missing. Where is the right place to listen to the streams? Any advice would be appreciated. Thanks Dirk

RE: JUnit, ANT, log4j, System.out issue

2005-03-28 Thread Mark Hansen
I ran into this same problem (but in the context of using Maven). The problem is that JUnit redirects STDOUT *AFTER* the log4j configuration has taken place. If you want your log4j console appender output to go to the same place that JUnit sends STDOUT, you need to create the log4j console append