[New] added an ant build script

This commit is contained in:
eitch 2011-07-25 22:35:47 +00:00
parent 47927ac99b
commit 4a66c0d2a4
3 changed files with 42 additions and 1 deletions

View File

@ -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

34
build_package.xml Normal file
View File

@ -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>

View File

@ -8,6 +8,8 @@ A list of TODOs for Privilege
actionAllowed(Role, Privilege, Restrictable)-method. Maybe the Privilege
argument is not needed, as this should be on the Role anyhow...
- i18n for any messages and exceptions!
- Finish the JavaDoc
- Set up a website =)