Skip to content

Building from Source Code

moulins edited this page Jun 19, 2019 · 3 revisions

The build process is configured via the file src/main/resources/amidst/metadata.properties. For example the <filename> is taken from the variable amidst.build.filename.

Amidst uses maven for its build process.

Building the jar file

  • mvn install

This will place the jar file under target/<filename>.jar.

Building the wrapper for Mac OS X

  • mvn clean
  • mvn install
  • mvn package -DskipTests=true -f travis-ci/wrapper-for-mac/pom.xml
  • bash travis-ci/scripts/zip-and-move-wrapper-for-mac.sh

The zip-and-move-wrapper-for-mac.sh bash script simply creates a zip file from the directory located at travis-ci/wrapper-for-mac/target/<filename>/. You can also do this by yourself.

This will place the zip file under target/<filename>.zip.

Building the wrapper for Windows

  • mvn clean
  • mvn install
  • mvn package -DskipTests=true -f travis-ci/wrapper-for-windows/pom.xml

This will place the exe file under target/<filename>.exe.

Building with Travis CI

Travis CI will execute the steps under Building the jar file for the regular build. It will also create the wrappers for Mac OS X and Windows when it creates a new release.