RE: calling maven2 files from ant
I'm not on this list. I've unsubscribed 3 times already in the past 2 weeks. Anyone have a clue wtf is up? From: "EJ Ciramella" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: RE: calling maven2 files from ant Date: Tue, 6 Jun 2006 09:59:02 -0400 I've used the scripts talked about in the three postings (and it's similar to what we're doing - a bat file eventually calls a shell script, etc). But it still hangs. Everything is being redirected properly. -Original Message- From: Master, Tariq (Abbeywood) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 9:53 AM To: Ant Users List Subject: RE: calling maven2 files from ant Steve, It's where CruiseControl hangs by waiting for the CMD shell window to be closed. It's basically waiting for any forked exec call in Ant to finish/close as far as I can gather. Everything works fine using Ant. But it's when a process (CC or cygwin apparantly) calls ant that problems occur. More information: [1] http://sourceforge.net/mailarchive/message.php?msg_id=13111442 [2] http://confluence.public.thoughtworks.org/display/CC/StartingAnAsynchron ousProcessFromExecTask [3] http://confluence.public.thoughtworks.org/display/CC/Starting+a+server+w ith+cc My email to the Cruise mailing list: -- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Master, Tariq (Abbeywood) Sent: 26 May 2006 18:47 To: [EMAIL PROTECTED] Subject: [Cruisecontrol-user] Hang after build successful due to a forkedcmd.exe window open My cruise (2.4.1) calls my ant (1.6.5) scripts on WinXP. My ant script has a target to start up weblogic using the spawned ant task. After my tests run, it shuts down weblogic using the forked command. These work fine as part of a full ant build. However, when cruise runs, it will hang after the "BUILD SUCCESSFUL Total time: 1 minute 19 seconds" message, UNTIL the weblogic cmd window is closed. Once I manually close the window, my cruise debug session immediately dumps/outputs to the console, lots of: [cc]May-26 18:38:16 yElementFilter- Skipping empty -tag ...followed by the build result event success message. Does anyone know what causes cruise to hang? How does it detect a console window open (it was created in a forked process)? How to resolve? Any suggestions or tips appreciated. -Original Message- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 14:39 To: Ant Users List Subject: Re: calling maven2 files from ant EJ Ciramella wrote: > Considering that everything will ultimately be used via CruiseControl AND how little success I've had with the exec task and CC, I was hoping for some optional tasks. > I've never encountered problems with CC and exec. what kind of problems? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Implementing a loop in ANT
I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks in advance for your suggestions. - Guru Balse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing a loop in ANT
Ant-Contrib's accepts any type which exposes an iterator() method I believe, so you'd have to write a Java task or to create such an type. You could also try a recursive or (with proper stopping condition ;-) that writes the numbers to a file, and then it. Using a little
Re: Implementing a loop in ANT
google antcontrib Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer Guru Balse <[EMAIL PROTECTED]> wrote on 06/07/2006 02:17:47 PM: > I am sure this question has been asked before, and I could not see any > reasonable answer in the archives. How can I implement a loop in ANT > without using scripts? For example, if I want to call a certain target > N times, how can I do it? > > Using ant-contrib is OK. Of course, something like > list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that > can be specified in the command line. > > Thanks in advance for your suggestions. > > - Guru Balse > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: junitreport task problem
Hello Deep, if you can fiddle with your weblogic.jar, remove the following entry from it : META-INF\services\javax.xml.transform.TransformerFactory this is a tiny file containing : weblogic.xml.jaxp.RegistrySAXTransformerFactory I also have problems with the weblogic transformation implementation when I run the tests of ant, it prevents the production of an XML file at the end of the test suite. Regards, Antoine > Original-Nachricht > Datum: Tue, 06 Jun 2006 09:32:09 -0500 > Von: "Mistry, Deep M" <[EMAIL PROTECTED]> > An: user@ant.apache.org > Betreff: junitreport task problem > > Hi, > > I've problems in executing the junitreport task. > > Every time I try to run, it gives me the following exception. > > BUILD FAILED: D:\server\build.xml:287: Could not find a valid processor > version implementation from > weblogic.xml.jaxp.RegistrySAXTransformerFactory > > Yes, I do have weblogic.jar in my ant\lib dir. I require this for > starting > the weblogic server and executing junit test prior to this junireport > task. > > I've also tried including xalan.jar and jaxp.jar in ant\lib dir but it > still > looks in weblogic.jar. > > Is there a way to solve this problem? > > Thanks. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant custom task and filesets
I have a task I wrote and I am trying to get it built into my ant setup. I would like to run it like this... ant -f executor.xml xml.beautify -Dxml.include=**\test.xml Ant should resolve **\test.xml to a full path. My target looks like this: Right now it's not working. i want to pass whatever files xml.includeresolves to to my Beautify class, but I can't figure out how to do it.
Re: Ant custom task and filesets
ant -f executor.xml xml.beautify -Dxml.include=**\test.xml Try with forward slash, instead of back slash. --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Implementing ant task which extends ExecTask
Hello I am trying to implement an ant task, which founds in a directory some files, parses them and pass this converted Strings to the ExexTask as arguments. So for me it's not clear now, if the executable command and the arguments should be set in the class ExecTask or in the (inner) field of type CommandLine. A small example would be enough for me. thanks Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing a loop in ANT
Guru: You should be able to do this like: Of course, assuming u do something like: ant -DN=5 -f So, I wrote a simple test script as follows: When running I did/got this: /home/sfloess/development/help/ant/guru> ant *-DN=9* Buildfile: build.xml [echo] val = 1 [echo] val = 2 [echo] val = 3 [echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Hope that helps... Scot Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks in advance for your suggestions. - Guru Balse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Re: Implementing a loop in ANT
Sorry, my boldfaced was turned into *YYY* Let me repost: Command line: ant -DN=9 Buildfile: build.xml [echo] val = 1 [echo] val = 2 [echo] val = 3 [echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Scot P. Floess wrote: Guru: You should be able to do this like: Of course, assuming u do something like: ant -DN=5 -f So, I wrote a simple test script as follows: When running I did/got this: /home/sfloess/development/help/ant/guru> ant *-DN=9* Buildfile: build.xml [echo] val = 1 [echo] val = 2 [echo] val = 3 [echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Hope that helps... Scot Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks in advance for your suggestions. - Guru Balse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing a loop in ANT
Thanks, Scot. You illustrate the problem quite well. The problem is that N is defined as 9, but the loop only goes through 5 iterations :-( Therefore unless we create a string on the fly using ${N} i.e. we create ${list} as "1,2,3,4,5,6,7,8,9" using java script (or other means) and then use , this will not work. (Sigh!) I suppose something could be hacked together using and (see http://ant-contrib.sourceforge.net/tasks/tasks/math_task.html) ... I was hoping for a more elegant solution :-) Scot P. Floess wrote: Sorry, my boldfaced was turned into *YYY* Let me repost: Command line: ant -DN=9 Buildfile: build.xml [echo] val = 1 [echo] val = 2 [echo] val = 3 [echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Scot P. Floess wrote: Guru: You should be able to do this like: Of course, assuming u do something like: ant -DN=5 -f So, I wrote a simple test script as follows: When running I did/got this: /home/sfloess/development/help/ant/guru> ant *-DN=9* Buildfile: build.xml [echo] val = 1 [echo] val = 2 [echo] val = 3 [echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Hope that helps... Scot Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks in advance for your suggestions. - Guru Balse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implementing a loop in ANT
We had the same requirement at my client site and so I created a slighly modified version of the ant-contrib (or was it ) that accepts two optional attributes a listBegin and listEnd and then it constructs a string "list" that is uses for the iteration. I can send you a copy of it (and test cases) just send me an email, Ninju - Original Message From: Guru Balse <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, June 7, 2006 7:47:52 PM Subject: Re: Implementing a loop in ANT Thanks, Scot. You illustrate the problem quite well. The problem is that N is defined as 9, but the loop only goes through 5 iterations :-( Therefore unless we create a string on the fly using ${N} i.e. we create ${list} as "1,2,3,4,5,6,7,8,9" using java script (or other means) and then use , this will not work. (Sigh!) I suppose something could be hacked together using and (see http://ant-contrib.sourceforge.net/tasks/tasks/math_task.html) ... I was hoping for a more elegant solution :-) Scot P. Floess wrote: > Sorry, my boldfaced was turned into *YYY* > > Let me repost: > > > > > > > > > > > > Command line: > > ant -DN=9 > > Buildfile: build.xml > [echo] val = 1 > [echo] val = 2 > [echo] val = 3 > [echo] val = 4 > [echo] val = 9 > > BUILD SUCCESSFUL > Total time: 2 seconds > > > Scot P. Floess wrote: >> Guru: >> >> You should be able to do this like: >> >> >> >> Of course, assuming u do something like: >> >> ant -DN=5 -f >> >> So, I wrote a simple test script as follows: >> >> >> >> >> >> >> >> >> >> >> >> When running I did/got this: >> >> /home/sfloess/development/help/ant/guru> ant *-DN=9* >> Buildfile: build.xml >> [echo] val = 1 >> [echo] val = 2 >> [echo] val = 3 >> [echo] val = 4 >> [echo] val = 9 >> >> BUILD SUCCESSFUL >> Total time: 2 seconds >> >> Hope that helps... >> >> Scot >> >> >> >> >> >> Guru Balse wrote: >>> I am sure this question has been asked before, and I could not see >>> any reasonable answer in the archives. How can I implement a loop >>> in ANT without using scripts? For example, if I want to call a >>> certain target N times, how can I do it? >>> Using ant-contrib is OK. Of course, something like >> list="1,2,3,4,5,6,...,N"> would work but I want N to be a property >>> that can be specified in the command line. >>> >>> Thanks in advance for your suggestions. >>> >>> - Guru Balse >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>>