Skip to content

Instantly share code, notes, and snippets.

@janernsting
Last active December 10, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janernsting/4352938 to your computer and use it in GitHub Desktop.
Save janernsting/4352938 to your computer and use it in GitHub Desktop.
Ant-Buildscript für Aufgabe 12
Main-Class: de.pizza.views.BestellsystemApplication
<?xml version="1.0"?>
<!-- 0794eb5 -->
<project name="de.pizza" default="package" basedir=".">
<!-- passen Sie diese Property an -->
<property name="group" location="09" />
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="jarname" location="${group}_Aufgabe12.jar" />
<property name="zipfile" location="${group}_Aufgabe12.zip" />
<target name="cleanUpBeforeCompile">
<delete file="${jarname}" />
<delete file="${zipfile}" />
<delete dir="bin" includeemptydirs="on" />
</target>
<target name="compile" depends="cleanUpBeforeCompile">
<mkdir dir="${bin}"/>
<javac srcdir="${src}" destdir="${bin}"
includeantruntime="false"
excludes="**/*Test.java" />
</target>
<target name="package" depends="compile">
<jar jarfile="${jarname}" manifest="bestellsystem.mf">
<fileset dir="${bin}" includes="**/*.*" />
</jar>
<zip destfile="${zipfile}">
<fileset dir="${src}" includes="**/*.java" />
</zip>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment