log messages not appearing when running junit via ant

2002-09-20 Thread tek1
when i run my junit tests (via ant), i've specified in my log4j.properties file to have DEBUG messages print out, but when i run my junit test classes using ant, the log.debug(...) statements are not appearing. any advice? thank you. -- To unsubscribe, e-mail: F

is the ant installation ok !!

2002-09-20 Thread Amitkumar_J_Malhotra
hello everyone, i have been following ant user guide and steps from Java Development with Ant Erik Hatcher and Steve Loughran. now when i type ant -version on my command prompt it displays the following message 'THE SYSTEM CANNOT FIND THE PATH SPECIFIED apache ant version 1.5 compiled on july 9 2

Re: how to escape & in ant

2002-09-20 Thread Jacob Kjome
& try that. Jake At 04:05 PM 9/20/2002 -0700, you wrote: >Hi, All: > >I have a target as shown below: > > > > > > > > >

RE: How to call a target not in the same build file?

2002-09-20 Thread Dominique Devienne
Look either at the task, or entity include in the FAQ, depending on what you meant. --DD -Original Message- From: Richard Pais [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 7:33 PM To: Ant Users List Subject: How to call a target not in the same build file? Hi, Does any

RE: spaces in javac directories

2002-09-20 Thread Dominique Devienne
Try replacing all these for path/filenames with , and forget about quoting things. Ant deals with spaces just fine. For example: Also, don't confuse the includes/excludes attribute, which take a comma-separated list of patterns, with / which take a single pattern. Build files normally reside

RE: how to escape & in ant

2002-09-20 Thread Diane Holt
--- "Li, Jerry" <[EMAIL PROTECTED]> wrote: > how do I run a shell script on UNIX with nohup and & from ANT. See: http://marc.theaimsgroup.com/?l=ant-user&m=100621497023872&w=2 Diane = ([EMAIL PROTECTED]) __ Do you Yahoo!? Yahoo! News - To

RE: how to escape & in ant

2002-09-20 Thread Alexey Solofnenko
The usual way '&' - Alexey. -- { http://trelony.cjb.net/ } Alexey N. Solofnenko { http://www.inventigo.com/ } Inventigo LLC Pleasant Hill, CA (GMT-8 usually) -Original Message- From: Li, Jerry [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 5:50 PM To: 'Ant Users List' S

RE: how to escape & in ant

2002-09-20 Thread Li, Jerry
Since there is startWeblogic.sh for each weblogic server instance, I do not want to use ant to start weblogic server. Ant is just an util here. To extend my question, how do I run a shell script on UNIX with nohup and & from ANT. startWeblogic.sh is just one of the shell script file. for instance

How to call a target not in the same build file?

2002-09-20 Thread Richard Pais
Hi, Does anybody know if LoadFile will let me call a task defined in B.xml from A.xml? Has anybody tackled such a requirement before? Thanks - Do you Yahoo!? New DSL Internet Access from SBC & Yahoo!

Re: how to escape & in ant

2002-09-20 Thread Jesse Stockall
On Fri, 2002-09-20 at 19:05, Li, Jerry wrote: > How Could I escape & in ant and make this target to work? I'm not sure what you mean by "escape" but you can use the task to start a Weblogic server. http://jakarta.apache.org/ant/manual/OptionalTasks/ejb.html#wlrun Jesse -- Jesse Stockall [E

how to escape & in ant

2002-09-20 Thread Li, Jerry
Hi, All: I have a target as shown below: ===

p4 task problem

2002-09-20 Thread Duane Mattos
I'm getting this error. file:/home/dmattos/build/main/build/checkinBinaries.xml:24: Problem exec'ing P4 command: java.io.IOException: p4: cannot execute The environment that I'm passing should be able to find p4. I checked ${env.PATH} and it contained the path to p4 (I checked ${env.P4PASSWD},

RE: spaces in javac directories

2002-09-20 Thread David Adams
This is how I initially got into trouble. The error I received is: [javac] javac: invalid argument: /autobuild/projects/core/Version -Original Message- From: Gordon Tyler [mailto:[EMAIL PROTECTED]] Sent: Friday, September 20, 2002 2:48 PM To: Ant Users List Subject: Re: spaces in javac d

Ant+JUnit -> java.security.AccessControlException: access denied

2002-09-20 Thread otisg
Hello, I think have seen this problem before, but I can't remember what the problem nor solution were :( I am using Ant 1.5 and Java 1.3.1 on Winblows. I did not find anything similar in the mailing list archive. I am running Junit task and getting an error, which claims that there is a file ac

Re: spaces in javac directories

2002-09-20 Thread Gordon Tyler
Gordon Tyler wrote: > David Adams wrote: > >> I have tried a number of different quoting methods ('" "', ' ', " >> ", putting a \ in front of the space to escape). None of these >> methods seem to work. > > I have tried just the space without any quoting or escaping? That should read "Have y

Re: spaces in javac directories

2002-09-20 Thread Gordon Tyler
David Adams wrote: > I have tried a number of different quoting methods ('" "', ' ', " ", >putting a \ in front of the space to escape). None of these methods seem to work. I have tried just the space without any quoting or escaping? Ciao, Gordon -- Gordon Tyler Software Developer, R&D Sit

Re: jar task

2002-09-20 Thread Matt Benson
Maybe you should try using the basedir attribute if you're going to use the all-in-one approach... -Matt --- Guy McArthur <[EMAIL PROTECTED]> wrote: > On Fri, 20 Sep 2002, Matt Benson wrote: > > > I don't how to include the verbose option, or what > > good it would do you, but you can create th

Re: jar task

2002-09-20 Thread Guy McArthur
On Fri, 20 Sep 2002, Matt Benson wrote: > I don't how to include the verbose option, or what > good it would do you, but you can create the jar like > this: > > > > > Hmmm, see I'm trying which seems like it'd be eqvilant to what you wrote, only it produces an empty jar

spaces in javac directories

2002-09-20 Thread David Adams
Hi, I am trying to compile files from and back into a directory structure that contains spaces, the actual task code follows. I have tried a number of different quoting methods ('" "', ' ', " ", putting a \ in front of the space to escape). None of these methods seem to work. Any ideas?

Re: jar task

2002-09-20 Thread Matt Benson
I don't how to include the verbose option, or what good it would do you, but you can create the jar like this: -Matt --- Guy McArthur <[EMAIL PROTECTED]> wrote: > What is the jar task equivilant of > > jar cvf myclasses.jar `find . -name '*class' -print` > > ? > > > -- > To unsubscrib

jar task

2002-09-20 Thread Guy McArthur
What is the jar task equivilant of jar cvf myclasses.jar `find . -name '*class' -print` ? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: background process

2002-09-20 Thread Jonathan Keller
Take a look at the task. You can use it to fire up a server in one thread and run code against that server in another thread. [EMAIL PROTECTED] wrote: >Hi all, > >I am looking for a way to run a process in background >using ANT, do some other tasks and finally kill the >background process bef

Re: Task to perform string replacement in property?

2002-09-20 Thread Davor Cengija
On Fri, 2002-09-20 at 19:24, Todd Breiholz wrote: > I have a property that I would like to replace all occurrences of a > string with another string and (optionally) create a new property with > the value. > > Does anything like this exist currently? There's replace task as well as replacerege

RE: inheritrefs doesn't work

2002-09-20 Thread Armbrust, Daniel C.
I reported this as a bug. Still not much response, (or even verification that it is a bug) Maybe you other guys can add on more test cases. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12820 -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: Including jbosscmp-jdbc.xml in ejbjar task

2002-09-20 Thread Jesse Stockall
On Fri, 2002-09-20 at 13:20, [EMAIL PROTECTED] wrote: This line is going to stop jbosscmp-jdbc.xml from being included. Is there a particular reason you are explicitly excluding *jboss*.xml? Jesse -- Jesse Stockall [EMAIL PROTECTED] -- To unsubscribe, e-mail:

Including jbosscmp-jdbc.xml in ejbjar task

2002-09-20 Thread John . Fairbairn
Hi, I'd like to know how I can configure the ejbjar task to include the jbosscmp-jdbc.xml descriptor file. The jbosscmp-jdbc.xml file is in the descriptor directory but is not being added to the ejb jar file. The ejbjar task was including the jaws.xml file when I was using a lower version of jbos

Task to perform string replacement in property?

2002-09-20 Thread Todd Breiholz
I have a property that I would like to replace all occurrences of a string with another string and (optionally) create a new property with the value. Does anything like this exist currently? Thanks Todd Breiholz -- To unsubscribe, e-mail: For additional commands

Re: OS-specific execution of any element requested

2002-09-20 Thread Michael Salera
Using a build.sh and a build.xml with a task, ant is echoing a "count = 0, total = 17" on seemingly every source file in the compilation step. Anyone know of a way (without removing the to get rid of this? Perhaps a newbie question, pls. forgive if that's the case although I couldn't find a wo

Re: OS-specific execution of any element requested

2002-09-20 Thread Vilya Harvey
I've modified my copy of Ant (1.5) to have if="" and unless="" on every task; I can send you the modified source code if you like. When I have a bit more time I intend to submit a patch against the version in CVS through the proper channels... Vil. -- Vilya Harvey, Consultant [EMAIL PROTECTED]

Re: OS-specific execution of any element requested

2002-09-20 Thread Matt Benson
I thought that would be nice too, having if and unless available everywhere. I don't really think about it anymore. What you do is wrap these types of things in other targets, put the if/unless on the targets, and make your main target dependent on those. -Matt --- Markus Kramer <[EMAIL PROTEC

Re: OS-specific execution of any element requested

2002-09-20 Thread Markus Kramer
Matt, this sounds wonderful, trouble is that the unless attribute is not allowed for things like paths: brakes Ant. My proposal would be to have the unless (and the if) attribute allowed on *any* Ant element. This is more flexible than my first proposal to have an "os" attribute. Trouble is,

Re: unless problem ant 1.4.1

2002-09-20 Thread Jesse Stockall
On Fri, 2002-09-20 at 11:19, Edward Zarecor wrote: > > > transfer status: ${transfer.complete} > > Completion files are not present. Failing for now. > > > Use the property name without the ${} Ant is looking for a property named "${transfer.complete}" rather then a prope

Re: unless problem ant 1.4.1

2002-09-20 Thread Edward Zarecor
Thanks. Sorry for being an idiot ;) Ed. - Original Message - From: "Gordon Tyler" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, September 20, 2002 11:30 AM Subject: Re: unless problem ant 1.4.1 > Edward Zarecor wrote: > > > > This should be: > > > > The u

Re: unless problem ant 1.4.1

2002-09-20 Thread Gordon Tyler
Edward Zarecor wrote: > This should be: The unless attribute must contain the _name_ of a property. Ciao, Gordon -- Gordon Tyler Software Developer, R&D Sitraka -- Performance is Mission Critical -- To unsubscribe, e-mail: For additional commands, e-mail:

unless problem ant 1.4.1

2002-09-20 Thread Edward Zarecor
Maybe I'm loosing it, but this logic looks pretty straightforward to me except that my second target which defines an unless condition executes if the available file exists and if it doesn't exist. Echoing the condition property is giving me the expected result, either true or the literal ${trans

RE: OS-specific execution of any element requested

2002-09-20 Thread EXT / FOCAL MALAPRADE Roland
Absolutely. much better than antcalls. Good tip ;) Roland. -Message d'origine- De : Matt Benson [mailto:[EMAIL PROTECTED]] Envoye : vendredi 20 septembre 2002 15:21 A : Ant Users List Objet : RE: OS-specific execution of any element requested Or making all the targets dependencies and

RE: list of arguments for java task

2002-09-20 Thread EXT / FOCAL MALAPRADE Roland
De rien :-) -Message d'origine- De : Mastrorillo Laurence [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 13:37 À : Ant Users List Objet : Re: list of arguments for java task EXT / FOCAL MALAPRADE Roland a écrit : > is this code inside a target? > coz if it isn't that mi

Re: background process

2002-09-20 Thread Matt Benson
Seems that judicious use of tasks and file parsing could get you what you need. -Matt --- [EMAIL PROTECTED] wrote: > Hi all, > > I am looking for a way to run a process in > background > using ANT, do some other tasks and finally kill the > background process before leaving ANT. > > Has anyon

RE: OS-specific execution of any element requested

2002-09-20 Thread Matt Benson
Or making all the targets dependencies and relying on if/unless to stop the wrong ones from executing is probably the intended way, as opposed to which is nice for more dynamic things. -Matt --- EXT / FOCAL MALAPRADE Roland <[EMAIL PROTECTED]> wrote: > you could use a as such: > > >

RE: OS-specific execution of any element requested

2002-09-20 Thread EXT / FOCAL MALAPRADE Roland
you could use a as such: with a PatternSet. i.e.: and then call a target as such: if you make one target per os, and call all of them with an , the right one should get called. Roland -Message d'origine- De : Markus Kramer [mailto:[EMAIL PROTECTED]] Envoye : v

Re: delete emacs ~-files does not work

2002-09-20 Thread Stefan Bodewig
-- To unsubscribe, e-mail: For additional commands, e-mail:

Re: list of arguments for java task

2002-09-20 Thread Mastrorillo Laurence
EXT / FOCAL MALAPRADE Roland a écrit : > is this code inside a target? > coz if it isn't that might be the problem. > BINGO !!! Merci beaucoup Laurence > > Roland. > > -Message d'origine- > De : Mastrorillo Laurence [mailto:[EMAIL PROTECTED]] > Envoyé : vendredi 20 septembre 2002 10:

Re: deleting emacs ~-files does not work

2002-09-20 Thread Jesse Stockall
On Fri, 2002-09-20 at 07:42, Klara Ward wrote: > I tried > > > > > > > > with this result: > > clean: >[delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a > nested fileset element instead. Try this: Jesse -- Jesse Stockall [EMAIL PROTEC

Re: deleting emacs ~-files does not work

2002-09-20 Thread Klara Ward
I tried with this result: clean: [delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead. Klara (using ant1.5.1beta) - Original Message - From: "Conor MacNeill" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PRO

OS-specific execution of any element requested

2002-09-20 Thread Markus Kramer
I don't see a way to constrain elements of a java target to the operating system. This leads to "Copy and Paste" java targets, one for each OS, which is a bad thing. The following does not work, but it would be nice to have, I think. I propose that *each* element can have a os attribute. Below, th

Re: deleting emacs ~-files does not work

2002-09-20 Thread Conor MacNeill
Klara Ward wrote: > I've tried deleting the emacs ~-files with this delete task, but it won't work > > > > > > > > Any ideas why this won't work? > Look at the defaultExcludes attribute Conor -- To unsubscribe, e-mail: For additional comm

deleting emacs ~-files does not work

2002-09-20 Thread Klara Ward
I've tried deleting the emacs ~-files with this delete task, but it won't work Any ideas why this won't work? Klara

RE: list of arguments for java task

2002-09-20 Thread EXT / FOCAL MALAPRADE Roland
is this code inside a target? coz if it isn't that might be the problem. Roland. -Message d'origine- De : Mastrorillo Laurence [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 10:27 À : Ant Users List Objet : Re: list of arguments for java task EXT / FOCAL MALAPRADE Rolan

background process

2002-09-20 Thread tran . huynh
Hi all, I am looking for a way to run a process in background using ANT, do some other tasks and finally kill the background process before leaving ANT. Has anyone ever done this before ? Any hint/help would be greatly appreciated. Tran -- To unsubscribe, e-mail:

Re: list of arguments for java task

2002-09-20 Thread Mastrorillo Laurence
EXT / FOCAL MALAPRADE Roland a écrit : > sorry about that. I meant to use fileset > > try this instead : > > > > > > This is actually what I have done after i encountered the error, but still got "Unexpected element pathconvert". Here is the code : Laurence > > R

RE: list of arguments for java task

2002-09-20 Thread EXT / FOCAL MALAPRADE Roland
sorry about that. I meant to use fileset try this instead : Roland. -Message d'origine- De : Mastrorillo Laurence [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 20 septembre 2002 09:36 À : Ant Users List Objet : Re: list of arguments for java task Thanks for your help Roland Wha

Re: list of arguments for java task

2002-09-20 Thread Mastrorillo Laurence
Thanks for your help Roland What I want to do is exactly pass a list of filenames to a java class. I tried your solution but I got an "Unexpected element "pathconvert"" error :-( I'm jusing Ant 1.5 and jdk1.2 any idea? Laurence EXT / FOCAL MALAPRADE Roland a écrit : > If what you want to do

delete emacs ~-files does not work

2002-09-20 Thread Klara Ward
I've tried deleting the emacs ~-files with this delete task, but it won't work Any ideas why this won't work? Klara