Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (46 sloc) 1.489 kb
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="jar" name="dbc">
<!-- Laden unserer Property-Datei für Zugriff auf Konstanten (Details folgen unten) -->
<property file="build.properties"/>
<path id="dbc.sourcepath">
<pathelement location="${path.src}"/>
</path>
<path id="dbc.classpath">
<fileset dir="${path.lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${path.bin}"/>
<mkdir dir="${path.jar}"/>
<copy includeemptydirs="false" todir="${path.bin}">
<fileset dir="${path.src}" excludes="**/*.launch"/>
</copy>
</target>
<target depends="init" name="build">
<javac destdir="${path.bin}">
<src refid="dbc.sourcepath" />
<classpath refid="dbc.classpath" />
</javac>
</target>
<target name="jar" depends="build">
<!-- Convert project class path to string property -->
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="dbc.classpath" />
<map from="${basedir}/" to=""/>
</pathconvert>
<delete verbose="on">
<fileset dir="${path.jar}" includes="*.jar"/>
</delete>
<jar destfile="${path.jar}/${ant.project.name}.jar" baseDir="${path.bin}">
<manifest>
<attribute name="Main-Class" value="${manifest.mainclass}" />
<attribute name="Class-Path" value="${manifest.classpath}" />
</manifest>
</jar>
<copy verbose="on" toDir="${path.jar}">
<fileset dir="${path.lib}" />
</copy>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.