AW: Problem with exec task

2006-01-23 Thread Jan.Materne
And is that REALLY an executable? AFAIK a .pl is a perl script which needs the perl interpreter ... Jan >-Ursprüngliche Nachricht- >Von: Stefan Bodewig [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 23. Januar 2006 22:26 >An: user@ant.apache.org >Betreff: Re: Problem with exec task > >On

AW: ant and os

2006-01-23 Thread Jan.Materne
Do you HAVE to differentiate between rmiregistry and rmiregistry.exe ? Try invoking without the .exe suffix on windows (should be resolved via windows´ PATHEXT variable) and you´ll get rid off that problem. Jan >-Ursprüngliche Nachricht- >Von: Stefan Bodewig [mailto:[EMAIL PR

AW: Convert fileset into command-line args, allowing for spaces in directori

2006-01-23 Thread Jan.Materne
Ok, I´ve done some tests... App.java just print the given arguments. The buildfile compiles that and uses several different invocations for that application with a "path" as "argument" Maybe we dont know exactly what you want to achieve, but I´m sure you get your solution here ;-) Jan App.ja

Re: Unit test a build

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, Ninju Bohra <[EMAIL PROTECTED]> wrote: > I too created test cases for my build files (actually they are build > files for testing my custom tasks, but they are still build files). > > I used the BuildFileTest class as the base class (that my JUnit > classes extended from).

Re: Unit test a build

2006-01-23 Thread Ninju Bohra
I too created test cases for my build files (actually they are build files for testing my custom tasks, but they are still build files). I used the BuildFileTest class as the base class (that my JUnit classes extended from). The class provided some convience methods for reading the build.xml,

Re: Problem with exec task

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > I want to run an executable nested in one of my build directories. > I've tried: > > This executes the command, but the work directory is still the base > directory of my build. > I want it set to the directory containing the execut

Re: ant and os

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, Marc Collin <[EMAIL PROTECTED]> wrote: > i search a way to do: > > exec rmiregistry.exe if windows > else exec rmiregistry you'd probably want rmiregistry on OS/2 or OpenVMS as well if you are ever going to run Ant there. Stefan -

Re:[solved] Problem with exec task

2006-01-23 Thread Tommy Nordgren
On Jan 23, 2006, at 10:05 PM, Tommy Nordgren wrote: I have a problem with the exec task. I want to run an executable nested in one of my build directories. I've tried: This executes the command, but the work directory is still the base directory of my build. I want it set to the directory c

Re: Creating a task for getting the current target in a project

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, none ofyourbusiness <[EMAIL PROTECTED]> wrote: > Thats why we would like to make these dependancies optional for > these 2 targets. We would like check for the availibilty of these > jars only if the target is something else then "clean" or "package" .. check for jar

Re: Unit test a build

2006-01-23 Thread Stefan Bodewig
On Mon, 23 Jan 2006, Clifton Craig <[EMAIL PROTECTED]> wrote: > Great idea. However, I'm a little lost. I have a source distribution > of Ant-1.6.5 AntUnit is not part of Ant's source distribution, but a subproject on its own right. Check out

Problem with exec task

2006-01-23 Thread Tommy Nordgren
I have a problem with the exec task. I want to run an executable nested in one of my build directories. I've tried: This executes the command, but the work directory is still the base directory of my build. I want it set to the directory containing the executable. When I tries: e

Re: Copy a directory list

2006-01-23 Thread Clifton Craig
Matt, You bastard! Why won't you shut up??!!! ;) Thanx all the same for the boiled down example. --- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG [EMAIL PROTECTED] [EMAIL PROTECTED] On Monday 23 January 200

Re: Uptodate task

2006-01-23 Thread Stefan Bodewig
On Fri, 20 Jan 2006, shreedhar natarajan <[EMAIL PROTECTED]> wrote: > I have a question regarding using task that is being used > as a part of task. I have a set of src files say one.src, > two.src and they generate one.target and two.target. If any of the > source is updated both target has to

Re: Copy a directory list

2006-01-23 Thread Clifton Craig
Sorry Matt, I don't believe I read your reply correctly. I'll go back and re-read then post again. Thanx! On Monday 23 January 2006 3:29 pm, Matt Benson wrote: > --- Clifton Craig <[EMAIL PROTECTED]> wrote: > > [SNIP] > > > ;) I must clarify that > > my tone was not intended as a heated tone. It

Re: Copy a directory list

2006-01-23 Thread Clifton Craig
Matt, That's not bad! Thanx for the tip. I haven't tried it yet but I'm sure it will most likely work. I'll work that into my build once I fix an unrelated bug that was dropped into my lap a moment ago. Thanx again. --- Clifton C. Craig, Software E

Re: Copy a directory list

2006-01-23 Thread Matt Benson
Just because I'm a bastard who can't shut up, I'll even boil my example (which may have been obscured by setup and testing) down to a macro: best I can do for now, until we have local properties for

Re: Copy a directory list

2006-01-23 Thread Matt Benson
--- Clifton Craig <[EMAIL PROTECTED]> wrote: [SNIP] > ;) I must clarify that > my tone was not intended as a heated tone. It is > hard to express or > interperet tone in text so let me assure you all > that I'm not angry at > anybody. Okay, sorry for the misinterpretation... :) [SNIP] > I d

Re: Copy a directory list

2006-01-23 Thread Clifton Craig
Embarassing! Ok, some I misspelt purest. (Or is that misspelled purist.) Admitting that I'm not the purest I sought out to be ;) I must clarify that my tone was not intended as a heated tone. It is hard to express or interperet tone in text so let me assure you all that I'm not angry at anybody

Re: Convert fileset into command-line args, allowing for spaces in directori

2006-01-23 Thread Dominique Devienne
On 1/23/06, Javier Pavier <[EMAIL PROTECTED]> wrote: > >Lets give an example, if my FileSet has > >/my/file/with a space/file1 > >/my/file/withoutaspace/file2 > > > >I want these both passed in as they are there as 2 separate commandline > >args. > > I managed to achieve this at last since I'm usin

Re: Unit test a build

2006-01-23 Thread Antoine Levy-Lambert
Clifton Craig wrote: >On Sunday 22 January 2006 4:55 pm, Steve Loughran wrote: > > >>Clifton Craig wrote: >> >> >>>Given my passion for TDD I am now looking for a way to apply unit tests >>>to my Ant build files. Is there an easy way or framework I can use? >>> >>> >>you need the antun

Re: No supported regular expression matcher found

2006-01-23 Thread Antoine Levy-Lambert
Hello Benjamin, I did not look into the source code of the propertyregex task (from ant-contrib), but if it behaves like other regular expression based ant tasks, maybe it uses the same mechanism like ant to find out a regular expression implementation. The property |ant.regexp.regexpimpl| govern

Re: ant and os

2006-01-23 Thread Andrew Goktepe
Then have the script act according to whether or not running.on.windows is set. You can also use the os attribute of exec, but there are multiple OS values for multiple versions of Windows. -Andrew On 1/23/06, Marc Collin <[EMAIL PROTECTED]> wrote: > > hi > > i search a way to do: > > ex

Re: Copy a directory list

2006-01-23 Thread Matt Benson
--- Ken Gentle <[EMAIL PROTECTED]> wrote: > Just for the record, the word is "purist" - Mary, > Mother of Jesus, is > reported to have be "the purest". :) Hmm. Purism regarding use of the word "purist". We may end up with another "misspelt is misspelled" argument on our hands. I do agree y

RE: sshexec fix for ant1.7 question

2006-01-23 Thread Anderson, Rob (Global Trade)
Which option is better really depends on a lot of things. I would patch 1.6.5. -Rob Anderson > -Original Message- > From: glenn opdycke-hansen [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 7:37 AM > To: user@ant.apache.org > Subject: sshexec fix for ant1.7 question > > I h

No supported regular expression matcher found

2006-01-23 Thread Benjamin Podszun
Hi there. I'm using the propertyregex task - or at least I'd love to. I get the exception given in the message subject when I try to run ant with my buildfile. I'm using java 1.5 and rely on regexps quite heavily.. Since the platform supports them: What's the dependency here? Checking googl

Re: Copy a directory list

2006-01-23 Thread Ken Gentle
Just for the record, the word is "purist" - Mary, Mother of Jesus, is reported to have be "the purest". :) Um, Clifton, the first solution I showed you is 100%, pure, core ANT. It does involve a file read. I have a similar issue in my current project that necessitates writing properties to

ant and os

2006-01-23 Thread Marc Collin
hi i search a way to do: exec rmiregistry.exe if windows else exec rmiregistry any idea? thanks -- www.laboiteaprog.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Unit test a build

2006-01-23 Thread Steve Loughran
Clifton Craig wrote: On Sunday 22 January 2006 4:55 pm, Steve Loughran wrote: Clifton Craig wrote: Given my passion for TDD I am now looking for a way to apply unit tests to my Ant build files. Is there an easy way or framework I can use? you need the antunit test framework; its in Ant's SVN r

RE: Convert fileset into command-line args, allowing for spaces in directori

2006-01-23 Thread Javier Pavier
Lets give an example, if my FileSet has /my/file/with a space/file1 /my/file/withoutaspace/file2 I want these both passed in as they are there as 2 separate commandline args. I managed to achieve this at last since I'm using a Jelly file and so can use a Jelly tokenizer to split the path apar

Re: Unit test a build

2006-01-23 Thread Clifton Craig
On Sunday 22 January 2006 4:55 pm, Steve Loughran wrote: > Clifton Craig wrote: > > Given my passion for TDD I am now looking for a way to apply unit tests > > to my Ant build files. Is there an easy way or framework I can use? > > you need the antunit test framework; its in Ant's SVN repo. Its rea

Creating a task for getting the current target in a project

2006-01-23 Thread none ofyourbusiness
hi, In our ant script we do an antcall at a certain moment. This antcall call's another xml ant script with a specific target. This called xml ant script contains a project with mulitple targets, and outside those targets, it also checks for the availability of certain 3th party jars and puts

RE: Convert fileset into command-line args, allowing for spaces in directori

2006-01-23 Thread Javier Pavier
Hi, hmm, dont know what this stuff should do. But if it works for you, I can skip that ... It just creates fileset of the files I need. It works :-) >refid="my.files"/> which will semicolon separate my files for >me ... ok, but how do I then get these as command line args on >a task ? One

Re: Copy a directory list

2006-01-23 Thread Clifton Craig
See, herein lies the problem. I'm not open to Ant-contrib. I'm what you might call a purest. I believe that this should be possible using vanilla Ant declarative syntax. I refuse to muddy up my build with forced procedural logic when it doesn't need to be included. I don't have the list in a fil

AW: Convert fileset into command-line args, allowing for spaces in directories

2006-01-23 Thread Jan.Materne
>I have a fileset, and i have a variable defining includes, and >one defining excludes. The fileset is created like this. This >works fine. > > > > > > > > > > > > > > hmm, dont know what this stuff should do. But if it works for you, I can skip t

Convert fileset into command-line args, allowing for spaces in directories

2006-01-23 Thread Javier Pavier
Hi, probably some obvious answer :-) but I cant find it. I have a fileset, and i have a variable defining includes, and one defining excludes. The fileset is created like this. This works fine. I now want to pass all of these files into a jav

AW: SUSPECT: RE: How to exclude files with same pattern except on e

2006-01-23 Thread Kasparek, Bernadette
Hi, yes it works. Thanks, Bernadette -Ursprüngliche Nachricht- Von: Stephen McConnell [mailto:[EMAIL PROTECTED] Gesendet: Montag, 23. Januar 2006 06:08 An: 'Ant Users List' Betreff: SUSPECT: RE: How to exclude files with same pattern except one > -Original Message- > From:

Re: Copy a directory list

2006-01-23 Thread Frank Harnack
Another ant-contrib solution may be using the for task: Regards Frank Quoting Ken Gentle <[EMAIL PROTECTED]>: > At 15:57 2006-01-21, you wrote: > > > Here is the error: the includes attribute sho