|
I started to look for the sources of
JBoss I've noticed they have huge number
of projects, and every of the projects uses its own Ant file. It would be
very difficult and wrong to manage common procedures (removing temp files,
settings properties, etc) in every project. So they extracted their common
targets into one common, available Ant file (entity) and imported it in
every custom project.
I copied the idea and made my "common" Ant script, because it happened that I had to manage five projects at one time. |
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE project [
<!ENTITY common-config SYSTEM "../build-common.xml">
]>
<project name="pat" basedir="." default="run">
<description>
PAT - Prevayler Automated Transactions nthx at irc.pl
</description>
&common-config;
...
</project>
Ilybra/
build.xml
JavaPetStore/
build.xml
JBossAOPTest/
build.xml
MyDirtyTest/
build.xml
Pat/
build.xml
<!--
|
| Some explaining information here...
| in nice comment style
|
-->