Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Joe Schmetzer
Hi Dimitris, If you're still having troubles with the technique at http://www.exubero.com/ant/dependencies.html , I would recommend that you download the example scripts mentioned at the bottom of the email (http://www.exubero.com/ant/example.tar.gz ). Hopefully, using that as a base, you can exte

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Prashant Reddy
On Tue, 2007-11-27 at 15:50 +, Joe Schmetzer wrote: > Here's the technique I use in these situations: > > http://www.exubero.com/ant/dependencies.html Another modification to the same technique would be to import predefined "macrodef"s from a common-build script. This way the build file impor

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Rob Seegel
Dimitris Mouchritsas wrote: Are there any best practices that you know of? I'm unsure if there is one set of practices that work well in all circumstances, but I'd be happy to share a few ideas that I put into place for our in-house build system which is used by 3-4 different projects, one

Re: Variables and zip file comments

2007-11-27 Thread David Weintraub
You cannot reset the value of a property. They are not variables because they don't vary. Once you set the value of a property, you cannot change it. There are a couple of ways to handle what you want: * Use or . These allow you to pass parameters that will set properties inside the calls. See the

Variables and zip file comments

2007-11-27 Thread Chuck Holzwarth
The builds I do are differential builds. I use svn diff to gather the diffs. The system is composed of several modules. Each module goes into its own zip file. When code is released, the zip files require a comment that contains, among other things, the names of all of the zip files that are par

Re: Search and replace in property

2007-11-27 Thread David Weintraub
Are you actually doing something with the properties before doing the replace? If not, you could use a filter. Unfortunately, doesn't support the filter directly, but you could copy the property file, then use the to point to your copy: Remember that you cannot change a pr

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Steve Loughran
Dimitris Mouchritsas wrote: I guess I need to start reading on Ivy then... While playing around with Joe's solution I managed to put ant in an infinite loop. My worst fear is that I won't be able to persuade my manager to start using Ivy. Well, I could point you to Ant in Action as a book tha

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
I guess I need to start reading on Ivy then... While playing around with Joe's solution I managed to put ant in an infinite loop. My worst fear is that I won't be able to persuade my manager to start using Ivy. Currently we do our build in a horrendous and huge, over 1500 line, build file. On Nov

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Steve Loughran
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 create a sub project structure a bit like Maven but have ant build files. I can handle each project separately easily. My problem is interconnecting th

Re: Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
I've had a look in Joe's solution but I could not understand much yet. Although it seems to be exactly what I want I've difficulty grasping the solution. I want to take a look in Ivy as well but probably at a later time. Thank you both. Joe if you could elaborate a bit on your solution... I'll try

RE: Handling multiple subproject in J2EE app

2007-11-27 Thread Gilles Scokart
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. Gilles > -Original Message- > From: Joe Schmetze

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

Handling multiple subproject in J2EE app

2007-11-27 Thread Dimitris Mouchritsas
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 create a sub project structure a bit like Maven but have ant build files. I can handle each project separately easily. My problem is interconnecting the sub-projects. For example I

Re: AW: Search and replace in property

2007-11-27 Thread Ognjen Blagojevic
Hello Jan, You could use for manipulating properties. Thanks. This is exactly the task I was looking for. Regards, Ognjen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Search and replace in property

2007-11-27 Thread Jan.Materne
You could use for manipulating properties. Another approach is manipulating the property file with BEFORE loading them. Jan > -Ursprüngliche Nachricht- > Von: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. November 2007 13:55 > An: Ant Users List > Betreff:

Search and replace in property

2007-11-27 Thread Ognjen Blagojevic
Hi all, I need tho read the properties from the file, and then to do a string replacement in their values. Something like this: 1. read_properties 2. do_something_with_properties 3. replace_in_property('&', '&') 4. do_someting_else_with_escaped_properties How can I do the step 3? The only