Commit 96afefd7 authored by Mart Lubbers's avatar Mart Lubbers
Browse files

ant file and ci

parent ca8c106f
Pipeline #34603 passed with stage
in 24 seconds
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
*.jar *.jar
*.war *.war
*.ear *.ear
# virtual machine crash logs, see # virtual machine crash logs, see
hs_err_pid* hs_err_pid*
# build directory # builds and packages
build build/
image: openjdk:alpine
- apk add --no-cache apache-ant
- ant
ssm # ssm
Download the latest version [here][0]
Simple Stack Machine interpreter Simple Stack Machine interpreter
See Forked from
### Authors & Contributors
- Atze Dijkstra
- Mart Lubbers
- Thomas Churchman
<project name="ssm" basedir="." default="package">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.file" value="${}.jar"/>
<property name="zip.file" value="${}.zip"/>
<property name="main-class" value="nl.uu.cs.ssmui.Runner"/>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${}" />
<delete file="${jar.file}" />
<delete file="${zip.file}" />
<target name="compile">
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" excludes="**/*.java"/>
<target name="jar" depends="compile">
<jar destfile="${jar.file}" basedir="${classes.dir}">
<attribute name="Main-Class" value="${main-class}" />
<target name="run" depends="jar">
<java jar="${jar.file}" fork="true" />
<target name="clean-build" depends="clean,jar" />
<target name="package" depends="clean,jar" >
<mkdir dir="${}" />
<copy toDir="${}" >
<fileset dir="." includes="${jar.file} changes.html LICENSE ssm.bat tests/*" />
<zip destfile="${zip.file}" basedir="." compress="true" includes="ssm/**/*"/>
Supports Markdown
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