Build Requirements
In order to build the components of the dcm4chee archive application you will need to download and install:
- Ant 1.6.x http://ant.apache.org
- XDoclet 1.2.3 http://xdoclet.sourceforge.net
- Apache FOP 0.20.5 http://xmlgraphics.apache.org/fop/
- Jakarta Cactus 1.7 for J2EE 1.3 http://jakarta.apache.org/cactus/ (only needed to build the test suite for dcm4jboss-ejb, not needed to build the application)
- JBoss 4.0.5 GA http://labs.jboss.com/portal/jbossas/download
- Download and run the Installer (
java -jar jems-installer-1.2.0.GA.jar
). Be sure to install the EJB3 option.
- Download and run the Installer (
In addition, you'll need the dcm4chee source code. In order to create the dcm4chee source directories, check out dcm4jboss-all from CVS:
cvs -d:pserver:anonymous@dcm4che.cvs.sourceforge.net:/cvsroot/dcm4che login cvs -z3 -d:pserver:anonymous@dcm4che.cvs.sourceforge.net:/cvsroot/dcm4che co -P dcm4jboss-all
Build Instructions
Create an environment variable pointing to the Ant home directory (ANT_HOME
) and add the $ANT_HOME/bin directory
to your PATH
.
The build scripts dcm4jboss-all/dcm4jboss-xxx/build.xml
assumes following locations of XDoclet, JBoss, Apache FOP and Jakarta Cactus:
xdoclet.home=${user.home}/xdoclet-1.2.3
jboss.home=${user.home}/jboss-4.0.5.GA
fop.home=${user.home}/fop-0.20.5
cactus.home=${user.home}/jakarta-cactus-13-1.7
Instead of modifying the build script directly, you should adjust the dependency paths to suit your environment by copying all of the files dcm4jboss-all/dcm4jboss-XXXX/build.properties.default
to dcm4jboss-all/dcm4jboss-XXXX/build.properties
and modify the paths in them.
Change to the working build directory:
cd dcm4jboss-all/dcm4jboss-build
and invoke:
ant dist
to build all components and pack them in binary distribution packages:
target/dcm4chee-standalone-db2-%version%.zip
target/dcm4chee-standalone-hsql-%version%.zip
target/dcm4chee-standalone-mssql-%version%.zip
target/dcm4chee-standalone-mysql-%version%.zip
target/dcm4chee-standalone-oracle-%version%.zip
target/dcm4chee-standalone-psql-%version%.zip