This is build script no.2 by Michael Aemisegger. It allows you to build magnolia independently of any IDE.
The ant build script starts with svn checkout and can build several artefacts like magnolia2.jar, transportable tar.gz etc. It also enables patching magnolia (e.g. make certain methods public or adjust jsp's) and hotdeploy into a local tomcat installation. Check the targets.
Requirements
- JDK 1.4 or JDK 1.5
- ant 1.6
Usage
- download attached build_magnolia.tar.gz and extract it to a directory of your choice
- change directory to <Magnolia2>/build
- set JAVA_HOME in ant.sh
- type './ant.sh -propertyfile build.properties'
- enjoy
Remarks
- if you use JDK 1.4.x you must override the jars in <Magnolia2>/res/lib/build with the ones packed in svn-jars-for-1.4.tar.gz
- some adjustements might be needed for Windows systems
- You can share the directories in <Magnolia2> with your IDE. I'm running eclipse this way.
- adapt the build.properties to your needs. You can specify which magnolia revision to download. You probably need to adjust 'magnolia.patch.stripCount' if you're trying to patch magnolia (needs still some improvement for generalization)
- You can easily create patches for the checked out revision of magnolia using the target 'magnolia.createPatch'. This only works if you have 'diff' in your path (like on *nix systems)
- Wondering about the 'pagnolia' stuff? Pagnolia is a kind of mass Portal/CMS product built on top of magnolia. Check out http://www.pagnolia.ch
In its previous incarnation on JspWiki, this page was last edited on Feb 9, 2007 10:26:30 AM by BorisKraft
Other known authors include :
- AndreasWeder
- MichaelAemisegger
- OrtwinGlueck