ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiller, Dean D \(Dean\)" <dhil...@avaya.com>
Subject RE: don't copy build.xml files ever again.....
Date Tue, 14 Sep 2004 13:37:28 GMT
Hmmmm.  I thought maven was different.  I have used maven before, but
the more and more I think about it, I guess it is similar, though my
install process is MUCH different and upgrades are simply drop in the
buildtemplate jar.  With maven, you would have to reinstall every
developers maven version from what I understand.  Maybe I should get
more involved in the maven project.  I will have to think about that.

Ps.  The buildtemplate is as easy as "java -jar buildtemplate.jar
-directory <newprojectdir>" and upgrades are as simple as drop the new
jar into the project.  Oh well, I should get on the maven list.
Thanks for the info,
dean

-----Original Message-----
From: Charles Daniels [mailto:cjd4@yahoo.com] 
Sent: Sunday, September 12, 2004 5:33 PM
To: Ant Users List
Subject: RE: don't copy build.xml files ever again.....

Your idea isn't so whacky.  In fact, it's called Maven ;-)

> -----Original Message-----
> From: Dean Hiller [mailto:dean@xsoftware.biz]
> Sent: Sunday, September 12, 2004 12:07 AM
> To: user@ant.apache.org
> Subject: don't copy build.xml files ever again.....
> 
> 
> Well, I had a very whacky idea that seems to be working very 
> well.  Ever find yourself copying a build.xml file only to add 
> stuff to it later like code coverage and wish you could add to 
> all those other projects you copied the build.xml file from.
> 
> Well try this new project out for 
> size.....http://sourceforge.net/projects/mockobject has a 
> buildtemplate.  If you download it and run "java -jar 
> buildtemplate.jar -directory <project>" it installs itself with 
> ant, junit, a code coverage tool for testing all built into one.  
> Ok, I don't here any "that's cool" just yet.  But now try this, 
> start 10 more projects with this buildtemplate.  Then, take the 
> buildtemplate and upgrade ant, or junit, or code coverage, or 
> make changes to the build.xml file, or add the findbugs tool to 
> it.  Then to update the 10 projects with the new build.xml or new 
> junit, or whatever, just drop the buildtemplate.jar right over 
> where it put itself when you first ran "java -jar 
> buildtemplate.jar -directory <project>" which is in the 
> <project>/tools directory.
> 
> It is a pretty sweet way of maintaining alot of similar services 
> build environments.  What is really nice, is you only have to 
> check in build.sh, build.bat, buildtemplate.jar, junit.jar, 
> ant.properties, dist.xml each time you upgrade.  ant, emma, jdk 
> package lists, ant-contrib and a bunch of goodies are hidden 
> inside the buildtemplate.jar.
> 
> It is quite a weird way of going about things but it seems to 
> work out very well in these days of SOA, and a module/project for 
> every service when needing that same buildtemplate.
> 
> This is just meant to be a pattern for others.  The buildtemplate 
> you need may be differen if doing J2EE, etc, but you can start 
> with this implementation and modify it for your own needs.
> thanks and I hope someone likes this whacky idea,
> dean
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message