JUnitTask fork problem?

2006-03-09 Thread Oliver Hummel
Dear all, I have a problem with installing a security manager for a JUnitTask. I use something like the following code to call ant programmatically: JUnitTask junit = (JUnitTask) project.createTask("junit"); junit.createJvmarg().setValue("-Djava.security.manager"); junit.setTaskName("junit"); jun

Re: How to access command line arguments passed to Ant. How to search Ant manual

2006-03-09 Thread Ninju Bohra
This was discussed on the mailing list a couple of times...here a link to the latest time is was discussed: http://marc.theaimsgroup.com/?l=ant-user&m=113040722211523&w=2 (And a reasonable solution is offered, yea !!) - Original Message From: [EMAIL PROTECTED] To: user@ant.apache

Issue overriding a target in build.xml that is importing other build files with the same target

2006-03-09 Thread Eric Wood
I have a build.xml (A.xml) that defines: A.xml imports a build.xml file (B.xml) which does NOT have a deploy target. B.xml imports a build.xml file (C.xml) which does have a deploy target. C.xml imports a build.xml file D.xml) which does have a deploy target. So A.xml imports B.xml which impo

Re: uptodate with a target directory

2006-03-09 Thread Daniel Smith
I've tested this now under Ant 1.6.5, and on two different platforms; the same bug is present. Can anyone confirm this bad behavior on their own system? If there are no objections, I think I'll create a bug report. For comparison, here is a full script that works correctly (notice that

[ant1.6.5] IBiblio upload request for ant-testutil.jar and its sources

2006-03-09 Thread Adrian Herscu
Hi all, Can someone upload the ant-testutil.jar and its sources to IBiblio so it will be available for Maven 2 users? This jar is not distributed as part of the ANT (1.6.5) binary distribution and it took me some time to make it work with the ANT tutorials -- if it would be on the ibiblio repo the

Introduction to Ant

2006-03-09 Thread Joe Schmetzer
I've just published a new slide show called "Introduction to Ant" at http://www.exubero.com/ant/antintro-s5.html Hopefully this can become a useful resource for people learning about Ant, or teaching others about Ant. I'd be interested in any feedback, if people want to suggest any corrections, ad

junit & ant

2006-03-09 Thread Adam Stroud
Hey All: I am sure that most of you have seen this message com across the list before. I am trying to use junit with ant. I want to be able to have the junit.jar file reside somewhere else than in the ANT_HOME/lib directory. I have searched the web for ideas about how to solve this problem but

[ant-testutil] setUp() an ANT test case

2006-03-09 Thread Adrian Herscu
Hi all, I am following the ANT tutorials, and now I am trying to see how I can run tests under Maven. I have put the HelloWorld and HelloWorldTest classes into a package (let's say mypck). The test build file is also found in that package. So when compiled the file system looks like this: basedi

How can I check an xml file timestamp and execute with a java in build file

2006-03-09 Thread Yagna Boorada
Hi I am currently using a java class to parse a set of xml files. I would like to check the timestamp of each one of of the xml files and process only those. It would be a great help for me if I get one. Yagna If your mind can conceive it and heart can believe it then you c

question about overall build success when subant fails.

2006-03-09 Thread Kevin Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Re-Post. Is this the wrong list to post this to? if so, what would be a better list? Thanks. Kevin Kevin Martin wrote: > Saw a thread from 2004 where the user had multiple subant tasks that weren't > dependent on each other so he set the > failon

Exec Task

2006-03-09 Thread Res Pons
How do I pass arguments with quotation marks intact to the exec task? I am having difficulty passing double quotes for comments to the svn ci -m "comment" filename Thank you.

AW: Introduction to Ant

2006-03-09 Thread Jan.Materne
Nice slides - location/date of presentation is not set ;-) - how to go to previous slide? - 3: I love the last sentence "Ant is not a programming language" - 4: maybe you´ll say a few words about which scm´s are supported -- scm: svn, cvs, synergy, perforce, ... -- also supports JUnit4 - 4:

AW: How can I check an xml file timestamp and execute with a java in build file

2006-03-09 Thread Jan.Materne
>I would like to check the timestamp of each one of of the >xml files and process only those. Those which are what? Try nested selectors in . Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

AW: Exec Task

2006-03-09 Thread Jan.Materne
>How do I pass arguments with quotation marks intact to the >exec task? I am having difficulty passing double quotes for >comments to the svn ci -m "comment" filename xml entities? " > > Mmh ... really ?? Multiple options need a But here it would be

RE: How can I check an xml file timestamp and execute with a java in build file

2006-03-09 Thread Yagna Boorada
Hi Jan Thanks for your reply! Basically I want to pass only modified xml files for parsing. How does this fileset helps me to recognise modified files. Yagna If your mind can conceive it and heart can believe it then you can surely achieve it. Extn: 4452, 7818 -O

AW: How can I check an xml file timestamp and execute with a java in build file

2006-03-09 Thread Jan.Materne
A fileset selects files. include/exclude uses name patterns for selecting special files. For more precise selection you could specify nested selectors [1]. For a simple timestamp check, you could use . If you use generated files (which content could be unchanged, but completetly new created) you

RE: junit & ant

2006-03-09 Thread Jon Skeet
> I am sure that most of you have seen this message com across > the list before. I am trying to use junit with ant. I want > to be able to have the junit.jar file reside somewhere else > than in the ANT_HOME/lib directory. I have searched the web > for ideas about how to solve this problem