[New] added an ant build script
This commit is contained in:
parent
47927ac99b
commit
4a66c0d2a4
|
@ -1,2 +1,7 @@
|
|||
Manifest-Version: 1.0
|
||||
|
||||
Implementation-Vendor: eitchnet.ch
|
||||
Implementation-Title: eitchnet Java Privilege implementation
|
||||
Implementation-Version: 0.0.1
|
||||
Specification-Vendor: eitchnet.ch
|
||||
Specification-Title: eitchnet Java Privilege implementation
|
||||
Specification-Version: 1.6
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="Build Jar" default="dist">
|
||||
|
||||
<!-- define export names -->
|
||||
<property name="projectName" value="Privilege" />
|
||||
<property name="jar" value="${projectName}.jar" />
|
||||
|
||||
<!-- define locations -->
|
||||
<property name="buildFolder" location="${basedir}/bin" />
|
||||
<property name="distJar" location="${basedir}/${jar}" />
|
||||
|
||||
<!-- define class path with eclipse plugins -->
|
||||
<path id="project.class.path">
|
||||
<pathelement path="${java.class.path}" />
|
||||
<fileset dir="${basedir}/lib" includes="*.jar" />
|
||||
</path>
|
||||
|
||||
<target name="dist" description="generate the distribution">
|
||||
|
||||
<!-- compile classes -->
|
||||
<javac srcdir="${basedir}/src" destdir="${buildFolder}" classpathref="project.class.path" debug="yes" source="1.6" target="1.6" />
|
||||
|
||||
<!-- copy resources -->
|
||||
<copy todir="${buildFolder}">
|
||||
<fileset dir="${basedir}/src" defaultexcludes="true" />
|
||||
<!--fileset dir="${basedir}/i18n" defaultexcludes="true" /-->
|
||||
</copy>
|
||||
|
||||
<!-- create the jar -->
|
||||
<jar jarfile="${distJar}" basedir="${buildFolder}" manifest="${basedir}/MANIFEST.MF" />
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in New Issue