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

ant file and ci

parent ca8c106f
......@@ -7,9 +7,11 @@
*.jar
*.war
*.ear
*.zip
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# build directory
build
# builds and packages
build/
ssm/
build:
image: openjdk:alpine
before_script:
- apk add --no-cache apache-ant
script:
- ant
artifacts:
paths:
- ssm.zip
ssm
===
# ssm
Download the latest version [here][0]
Simple Stack Machine interpreter
See http://www.staff.science.uu.nl/~dijks106/SSM/
Forked from http://www.staff.science.uu.nl/~dijks106/SSM/
### Authors & Contributors
- Atze Dijkstra
- Mart Lubbers
- Thomas Churchman
[0]: https://gitlab.science.ru.nl/mlubbers/ssm/builds/artifacts/master/file/ssm.zip?job=build
<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="${ant.project.name}.jar"/>
<property name="zip.file" value="${ant.project.name}.zip"/>
<property name="main-class" value="nl.uu.cs.ssmui.Runner"/>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${ant.project.name}" />
<delete file="${jar.file}" />
<delete file="${zip.file}" />
</target>
<target name="compile">
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
<copy todir="${classes.dir}">
<fileset dir="${src.dir}" excludes="**/*.java"/>
</copy>
</target>
<target name="jar" depends="compile">
<jar destfile="${jar.file}" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}" />
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jar.file}" fork="true" />
</target>
<target name="clean-build" depends="clean,jar" />
<target name="package" depends="clean,jar" >
<mkdir dir="${ant.project.name}" />
<copy toDir="${ant.project.name}" >
<fileset dir="." includes="${jar.file} changes.html LICENSE README.md ssm.bat ssm.sh tests/*" />
</copy>
<zip destfile="${zip.file}" basedir="." compress="true" includes="ssm/**/*"/>
</target>
</project>
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