Re: Reading environment variables in ant script directly

2009-12-30 Thread Joe Schmetzer
like this: If Ant were to pick up environment variables directly, if this particular property was defined in the external environment, then that definition would take precedence, and the build would probably fail, although the reason would not be immediatly obvious. Regards, Joe Schmetzer Ant

Re: [ANN] Ant Script Library 1.1.0 Released

2009-09-16 Thread Joe Schmetzer
2009/9/16 Michael Ludwig : > Joe Schmetzer schrieb: >> >> Version 1.1.0 of the Ant Script Library has just been released. >> >> The Ant Script Library (ASL) is a collection of re-usable Ant scripts >> that can be imported into your own projects. The ASL provides a

Re: Newbie question: importing properties from XML file via command line

2009-09-14 Thread Joe Schmetzer
2009/9/14 Scott Stark : > Joe wrote: >> That's not correct: ant properties in the file are expanded inline. >> See http://ant.apache.org/manual/CoreTasks/property.html for details >> (I don't know about ${file.separator}, though) > > I see that in the documentation; however it's not working for me.

[ANN] Ant Script Library 1.1.0 Released

2009-09-14 Thread Joe Schmetzer
Version 1.1.0 of the Ant Script Library has just been released. The Ant Script Library (ASL) is a collection of re-usable Ant scripts that can be imported into your own projects. The ASL provides a number of pre-defined targets that simplify setting up build scripts for a new or existing project,

Re: How add global property with input task?

2009-09-13 Thread Joe Schmetzer
2009/9/12 don rhummy : > When I have an Input task with "addProperty", the property it creates is only > valid within that one target. So if two targets are being called in the same > build run, the property added by the input task in target "1" is not visible > in target "2"!! How would I add i

Re: Newbie question: importing properties from XML file via command line

2009-09-13 Thread Joe Schmetzer
2009/9/11 Scott Stark : >> Any particular reason you're not using a plain old properties file? > > Also I've noticed you can't "inherit" properties in a properties file. For > example, this doesn't work: > > projectRoot=C:\\working > documentSource=${projectRoot}\\documents > > And you can't even u

Re: Selecting source files if they have been compiled

2009-08-21 Thread Joe Schmetzer
2009/8/21 Stefan Walter : > David Weintraub, 20.08.09, 23:13h CEST: > >> Patternsets to the rescue! >> >> >> >>     >> >> >> >     sourcepath=""> >>     >> >> >> Your different tasks can define different patternsets for source files. > > Thanks for your reply. That would certainly work; howeve

Re: Strategies for reusing targets that require paths

2009-07-28 Thread Joe Schmetzer
Hi David, I have used a similar technique in the Ant Script Library: http://www.exubero.com/asl/ You use your scenario of running unit tests, the ASL defines a number of targets which set default values for the test classpath, the test cases, and any other resources. It uses a combination of prop

Re: Normalizing paths in files

2009-03-25 Thread Joe Schmetzer
There's no need to use a fake name like "FOO" that. The "location" attribute of the property task does exactly what is needed. For example: http://ant.apache.org/manual/CoreTasks/property.html for details Cheers, Joe On Wed, 2009-03-25 at 15:41 -0400, David Weintraub wrote: > Try the "dirname"

Re: How do I run maven build from ant

2009-03-25 Thread Joe Schmetzer
The Maven tasks for Ant are limited to dependency management, artifact deployment and POM processing. They currently do not handle invoking Maven builds from Ant. I suspect the easiest solution for you is to just invoke Maven directly using an task. Regards, Joe On Wed, March 25, 2009 2:58 pm, e

Re: Help... how to get a value from Java and pass it to another Target in ANT

2009-03-12 Thread Joe Schmetzer
Hi Shylendran, The task has the output and output outputproperty attributes. If you get your Java program to write the data you need to stdout, the text will appear there. Alternatively, you could get your Java program to write a properties file to the filesystem, and in then later use the Ant

Re: Declare few projects on a build.xml

2009-03-05 Thread Joe Schmetzer
Similarly, I've also just released some Ant library scripts here: http://www.exubero.com/asl/ These are just build plugins which you can either import directly in your own build, or just look over them as an example of how to write re-usable Ant modules. Cheers, Joe On Thu, March 5, 2009 3:44 p

Re:

2009-02-26 Thread Joe Schmetzer
Ant will unconditionally substitute a double "$$" with a single "$", as this is the escape mechanism for avoiding property expansion. See http://ant.apache.org/manual/using.html#properties for details. Cheers, Joe On Thu, February 26, 2009 2:16 pm, Stefan Krause wrote: > If I define a property co

Re: how to call a file in build.xml

2008-07-29 Thread Joe Schmetzer
Actually, exec *is* supported on Linux. You just need to specify the executable as "make". e.g. Cheers, Joe On Tue, July 29, 2008 10:53 am, Kamran Hameed wrote: > My point is that i am not invoking any simple script. Makefile should be > called with make command > > On Tue, Jul 29, 2008 at 9:19

Re: arg and jvmarg

2008-04-11 Thread Joe Schmetzer
On Fri, April 11, 2008 8:42 am, Dave Pawson wrote: > http://ant.apache.org/manual/using.html#arg > > mentions using > For an xslt task I want to specify > -o filename > > Trying this > > > > > The single '-l' works OK, > but the -o option causes a problem with the processor. > > How can I s

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Joe Schmetzer
> > > You can have a look to ivy as well. > > > > Every module can be published to a repository. Every module can pick up > > its dependencies from this repository and if > > required you can write a master build that build the submodules in the > > right order.

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Joe Schmetzer
Here's the technique I use in these situations: http://www.exubero.com/ant/dependencies.html Cheers, Joe On Tue, November 27, 2007 3:23 pm, Dimitris Mouchritsas wrote: > Hi all, I'm trying to figure out what's the best way to handle a J2EE > project with different modules. > I'm thinking to crea

Re: Building Dependent targets

2007-05-24 Thread Joe Schmetzer
e > dependent targets once built will not  be built again If you're willing to reorganise you build targets into different projects, the technique described here can help: http://www.exubero.com/ant/dependencies.html HTH -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exub

Re: Python implementation for Ant

2007-02-07 Thread Joe Schmetzer
are a number of efforts that allow Java integration[2]. Cheers, Joe [1] http://rake.rubyforge.org/ [2] http://blog.aslakhellesoy.com/articles/2006/12/18/building-java-with-jruby -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/

Re: SVN Task?!

2006-07-19 Thread Joe Schmetzer
you want to test this out. Cheers, -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ +44-(0)7775-770-422 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re: Maven vs. Ant?

2006-06-13 Thread Joe Schmetzer
Hi Antoine, I manage project dependencies using the technique described at http://www.exubero.com/ant/dependencies.html This uses vanilla Ant features to manage transitive dependencies between subprojects (but not external dependencies). For internal subprojects, I will generally configure all my

Re: deploy by ant

2006-05-11 Thread Joe Schmetzer
for use by end users. See http://en.wikipedia.org/wiki/Software_deployment for some hints. > How can be done the same using ANT. 1. Work out all the activities and tasks that need to be done to deploy your software. 2. Automate these activities, using an Ant script, or other suitable to

Re: Project Build Strategy Question:

2006-04-15 Thread Joe Schmetzer
hecks in the files which have been modified, and > > > tags all the projects in the repository by committing the local > > > working folders under Anthill into Subversion and finally it deploys > > > the war files to the servers for QA testing, etc. > > > &g

Re: AW: Introduction to Ant

2006-03-10 Thread Joe Schmetzer
rüngliche Nachricht- > >Von: Joe Schmetzer [mailto:[EMAIL PROTECTED] > >Gesendet: Donnerstag, 9. März 2006 23:31 > >An: Ant Users List > >Betreff: Introduction to Ant > > > >I've just published a new slide show called "Introduction to > >Ant

Introduction to Ant

2006-03-09 Thread Joe Schmetzer
gest any corrections, additions or improvements. Cheers! -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: Have an Ant script run even with missing JARs?

2006-02-28 Thread Joe Schmetzer
ation tasks such as set up properties, declare taskdefs, etc. Many other targets can then make use of this initialisation by depending upon it. For example: ... HTH -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ --

Re: question about dependencies

2006-02-22 Thread Joe Schmetzer
eters). See http://ant.apache.org/manual/CoreTasks/antcall.html for details. -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Support for JUnit 4?

2006-02-22 Thread Joe Schmetzer
On Wed, 22 February, 2006 2:00 pm, Steve Loughran wrote: > Joe Schmetzer wrote: >> Without claiming to understand the considerations that went into the >> design of JUnit4, I get the feeling that it is a response to TestNG, >> which relies entirely upon annotations for tagging

Re: Support for JUnit 4?

2006-02-22 Thread Joe Schmetzer
ethods. But as you note, the test infrastructure must now work harder. Cheers! -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/blog/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Regarding Continous build integration.

2006-02-17 Thread Joe Schmetzer
s, you can try the CC mailing list at http://cruisecontrol.sourceforge.net/contact.html, as this obviously not an ant related question. Cheers, -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ - To unsubscr

RE: Regarding Continous build integration.

2006-02-17 Thread Joe Schmetzer
http://confluence.public.thoughtworks.org/display/CC/Managing+CruiseControl+With+JMX Good luck! -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Zip a lot of files

2005-09-30 Thread Joe Schmetzer
st solution. -- Joe Schmetzer .:. Renaissance Developer .:. http://www.exubero.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Zip a lot of files

2005-09-30 Thread Joe Schmetzer
owing: > > d:\testing\tt1.zip > d:\testing\tt2.zip > d:\testing\tt3.zip > d:\testing\tt4.zip > d:\testing\tt5.zip > d:\testing\tt6.zip > > In my build.xml i can specify one zip - filename only: > > > > Use instead of http://ant.apache.org/manua

Re: [Junit] How to handle TestSuites correctly

2005-08-30 Thread Joe Schmetzer
he individual tests instead. This will generate an XML file for each test case, and the report will show each individual classname. In your example, change the line reading to look like This assumes that all your individual test cases use the same naming convention. -- Joe Schmetzer .:

Re: Junit Tests with depedencies - possible to determine order

2005-06-14 Thread Joe Schmetzer
On Tue, June 14, 2005 9:31 am, Mikael Petterson (KI/EAB) said: > Hi, > > we have a couple of junit tests that have 'oder' dependecy like, first > CreateHwTest must be executed and then RecoverHwTest. > Is it possible to set the order which the junit tests must be executed in? JUnit explicitly does

Managing project dependencies

2005-05-09 Thread Joe Schmetzer
I currently maintain a number of interdependent projects using Ant. Each project has it's own build script, importing common targets, but also ensuring that any dependant projects are built first. I manage project build dependencies using a combination of imports of shared dependency declarations a