Building a distribution from source

The Vitalsigns build is set up to be built on a linux based system. It has two prerequisites, Apache Maven and a Java JDK installed and available in the path.

Once the prerequisites are met:

  1. clone the git project vs-buildtools to the build machine.
  2. cd into the vs-buildtools/java directory
  3. clone the java projects: vs-batchloader, vs-dataintlib, vs-evalex,vs-rdbmslib, vs-dataserver,vs-mongolib,vs-svclib ,vs-dtolib,vs-proclib, vs-utillib
  4. cd ../web
  5. clone the vs-web project.
  6. cd ../bin
  7. execute the builddist.sh shell script, passing the version number as a parameter. ex: ./builddist.sh 1.0

The shell script in the last step will perform a build of all of the java components, setup a directory for the distribution (vs-buildtools/dist/vitalsigns-), copy the built java to the proper place in the distribution directory, copy the base files for configuration and set up to the distribution, and extract the web application to the distribution. As a final step it will create a compressed tar file of the final distribution in the dist directory.