Possible to perform a dependency subtraction?

2009-07-21 Thread Chris Nokes
Here's the confs for a module I depend on:     runtime     web extends runtime "runtime" represents the jars to be added to the EAR. "web" represents the compile classpath for the module.  Web must extend runtime because I want the jar set of runtime and web to be binary compatible and resolve c

Re: Adding parallel JUnit task

2009-07-21 Thread Konstantin Boudnik
Hi Jason. It is an interesting insight. This junit runner for Hadoop you've mentioned, would it actually allow to parallel an execution of a bunch of tests on a multi-way hardware? Or it would require someone to make manual split of tests into separate test suites first? Is the source code is ava

Re: exec unix script not working for me

2009-07-21 Thread glenn opdycke-hansen
line endings on files from svn: If the line endings are an issue, you can try a property eol-style: native for the files that are exported and need the appropriate line endings for the target system. See http://svnbook.red-bean.com/en/1.1/ch07s02.html for eol-style details. --glenn On Tue, Jul 21,

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
Inspiration struck! What are the end-of-line characters on your script? I've seen this type of error when the lines in a shell script shell end with . Also make sure that the last line in the shell script ends with a . Some text editors don't put the final on the end of the file. On Tue, Jul 21,

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
You have the following error message: Cannot run program "/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0/runSqlPlusUnix.sh" (in directory "/u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0"): error=2, No such file or directory I never used TeamCit

Re: exec unix script not working for me

2009-07-21 Thread Amy Davis
The unix script file is pulled from SVN into TeamCity's work area. The ant script copies it to the location where I want it to run, does a chmod on it, and then tries to execute it. The ${sql.deploy.script} argument just contains the directory name (bad name, you're right). I tried

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread Scot P. Floess
Oh wow - yeah Ivy is the way to go... Truth be known, with Ivy I can't quite see the need for Maven at all... I use Maven at work - but I've always felt like it tries to be too many things at once. So for me, I use Beanshell and Ant Contrib mostly... Here is my ivy.xml:

Re: exec unix script not working for me

2009-07-21 Thread David Weintraub
If you put a Shebang in your shell script, and you have the executable bit on in the mode, you don't have to specify the shell. HOWEVER, if you do use the shell, you need to put the full directory name where your script can be found: By the way, is ${sql.deploy.script} a directory

Re: exec unix script not working for me

2009-07-21 Thread robert lazarski
On Tue, Jul 21, 2009 at 1:48 PM, Amy Davis wrote: > > Maybe I don't fully understand your suggestion. I tried adding the ant task > in front of my exec task as below > >                 >                                    osfamily="unix"> >                     >                 > > and got > > [a

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread David Weintraub
On Tue, Jul 21, 2009 at 12:00 PM, Scot P. Floess wrote: > Of course I am also using Ivy - so it is downloading Jars for me :) I really need to look at Ivy and see if I can get it working. I understand the ideas of Maven: You merely describe your project. You don't have to worry about how to do th

Re: exec unix script not working for me

2009-07-21 Thread Amy Davis
Maybe I don't fully understand your suggestion. I tried adding the ant task in front of my exec task as below and got [ant] The following error occurred while executing this line: java.io.FileNotFoundException: /u01/ossint

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread Scot P. Floess
Yeah thats true... I was just thinking of the case where the Java app may need to be built first - just complexity from that perspective... I've been known to use Beanshell in my work, but solely because I am writing a build environment around Ant - and didn't feel like compiling some Java

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread David Weintraub
On Tue, Jul 21, 2009 at 11:11 AM, Scot P. Floess wrote: > > You can probably also script it using beanshell vs writing an external Java > application. Just a word of warning: To write beanshell scripts, you need to add in bsf.jar and bsh.jar into your $ANT_HOME/lib which makes your build process a

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread Scot P. Floess
You can probably also script it using beanshell vs writing an external Java application... On Tue, 21 Jul 2009, David Weintraub wrote: Ant can run tasks (which is what you want with JBoss). JBoss has a Java API that allows you to start, stop, and deploy in it. You can also use the JBoss API

Re: Use ANT to stop / start a java service wrapper (JBoss)

2009-07-21 Thread David Weintraub
Ant can run tasks (which is what you want with JBoss). JBoss has a Java API that allows you to start, stop, and deploy in it. You can also use the JBoss API to query the server state. You'll have to write a small Java program to do this for you, but then you can run it with the task. If that's

Re: How to enable compression in SSH/SCP task?

2009-07-21 Thread Stefan Bodewig
On 2009-07-21, Atsuhiko Yamanaka wrote: > Hi, > On Tue, Jul 21, 2009 at 4:14 AM, Avlesh Singh wrote: >>> I would like to know if it is possible to enable compression on SCP task? >> Find details on filing bugs here - http://ant.apache.org/bugs.html for reference:

Re: exec unix script not working for me

2009-07-21 Thread robert lazarski
On Tue, Jul 21, 2009 at 11:21 AM, Amy Davis wrote: > > I'm having trouble getting a unix script to execute through my ant script. > What am I doing wrong? > > /u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/build.xml:62: > Execute failed: java.io.IOException: Cannot run program "runSqlP

exec unix script not working for me

2009-07-21 Thread Amy Davis
I'm having trouble getting a unix script to execute through my ant script. What am I doing wrong? Attempt 1 ant script snippet: Attempt 1 verbose output: [if] copy [copy] Copying 1 file to /u01/ossint/TeamCityBuildAgent/work/ba331bf4546cf0c1/sql/deployment/r1-0 [if] chmod

RE: how to change name of war & ear file based on user input values

2009-07-21 Thread Scot P. Floess
You can definitely use the and - probably will make things clean and obvious. On Tue, 21 Jul 2009, edumudi.viswan...@oracle.com wrote: Thank you for prompt reply. If ant -Dxyz=1 -Dyyy=1 ear-targetthen earfile name is webpro.ear If ant -Dxyz=1 -Dyyy=2 ear-target then earfile name sh

AW: AW: a task for selecting among possible options?

2009-07-21 Thread Jan.Materne
Because you always configure file+value with the same value you could tune it: ... Jan >-Ursprüngliche Nachricht- >Von: Michael George [mailto:mdgeo...@cs.cornell.edu] >Gesendet: Dienstag, 21. Juli 2009 14:17 >An: Ant Users List >Betreff: Re: AW: a ta

RE: how to change name of war & ear file based on user input values

2009-07-21 Thread edumudi.viswan...@oracle.com
Thank you for prompt reply. If ant -Dxyz=1 -Dyyy=1 ear-targetthen earfile name is webpro.ear If ant -Dxyz=1 -Dyyy=2 ear-target then earfile name should be like this webpro2.ear. For thet do I need to write & ? Please help Thanks & regards, vishy -Original Message- From:

Re: how to change name of war & ear file based on user input values

2009-07-21 Thread Scot P. Floess
Well just include the environment variables in your call to the ear task... For example, I am modifying the example given in the Ant documentation for creating an ear: appxml="${src.dir}/metadata/application.xml"> HTH, Flossy On Tue, 21 Jul 2009, edumudi.viswan...@oracle.com wro

Re: AW: a task for selecting among possible options?

2009-07-21 Thread Michael George
Oh my god that's so much simpler than what I was doing. Thanks! --Mike jan.mate...@rzf.fin-nrw.de wrote: ... more available tasks Because properties are immutable the first hit wins. Jan -Ursprüngliche Nachricht- Von: Michael George [mailto:mdgeo...@cs.cornell.edu] Gesende

how to change name of war & ear file based on user input values

2009-07-21 Thread edumudi.viswan...@oracle.com
Hi, I have an build.xml file. If I run the target "ear-target" using ant -Dxyz=1 -Dyyy=1 ear-target@ command prompt, it should create webpro11.ear & webpro11.war & if I run "ear-target" using ant -Dxyz=1 -Dyyy=2 ear-target@ command prompt, it should create webpro12.ear &

Re: How to enable compression in SSH/SCP task?

2009-07-21 Thread Atsuhiko Yamanaka
Hi, On Tue, Jul 21, 2009 at 4:14 AM, Avlesh Singh wrote: >> >> I would like to know if it is possible to enable compression on SCP task? >> If it is, how? >> > AFAIK, the compression option is currently not supported in the scp task. > Using the old school exec task in this manner - ...>, might b