Commit fde8947a authored by Jonathan Shahen's avatar Jonathan Shahen
Browse files

build script for running on Linux

parent b3def67b
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="Vagabond JavaDoc Build Script" default="javadoc">
<project name="Vagabond-CUI" default="dist">
<description>Mohawk Tool Implementation.</description>
<!-- Properties for the JAR file -->
<property name="user.name" location="Jonathan Shahen" />
<!-- set global properties for this build -->
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="bin" location="bin" />
<property name="data" location="data" />
<property name="logs" location="logs" />
<property name="build" location="${bin}/build" />
<property name="dist" location="${bin}/dist" />
<path id="test.classpath">
<pathelement location="${build}" />
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="init">
<!-- create the bin directory -->
<mkdir dir="${bin}" />
<!-- create the build directory -->
<mkdir dir="${build}" />
<!-- create the distribution directory -->
<mkdir dir="${dist}" />
<!-- create the logs directory -->
<mkdir dir="${logs}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<!-- compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="on" deprecation="true">
<src path="${src}" />
<classpath>
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<!-- put everything in ${build} into the jar file -->
<jar destfile="${dist}/${ant.project.name}.jar" basedir="${build}">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="vagabond.VagabondCUI" />
<attribute name="Class-Path" value="." />
</manifest>
<fileset dir="${build}" />
<zipfileset src="${lib}/commons-csv-1.3/commons-csv-1.3.jar" />
<zipfileset src="${lib}/commons-math3-3.6.1/commons-math3-3.6.1.jar" />
<zipfileset src="${lib}/commons-cli-1.2.jar" />
<zipfileset src="${lib}/commons-lang3-3.3.2.jar" />
<zipfileset src="${lib}/hamcrest-core-1.3.jar" />
<zipfileset src="${lib}/junit-4.12.jar" />
<zipfileset src="${lib}/circuit.jar" />
<zipfileset src="${lib}/oplall.jar" />
</jar>
</target>
<target name="javadoc">
<javadoc
access="private"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment