Skip to content
Snippets Groups Projects
Commit 2344e46b authored by warpzone's avatar warpzone
Browse files

Buildfile aufgeräumt

parent 6b3f347b
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project PortalManager">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="create_run_jar">
<jar destfile="/home/philipp/workspace/PortalManager/PortalManager.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="/home/philipp/workspace/PortalManager/bin"/>
<fileset dir="/home/philipp/workspace/gpj/bin"/>
<zipfileset excludes="META-INF/*.SF" src="/usr/lib/jline/jline.jar"/>
<zipfileset excludes="META-INF/*.SF" src="/usr/share/java/rxtx/RXTXcomm.jar"/>
</jar>
</target>
</project>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="dist" name="Create Runnable Jar for Project PortalManager">
<property name="src.dir" value="src" />
<property name="build.dir" value="bin" />
<property name="dist.dir" value="dist" />
<property name="lib.dir" value="lib" />
<property name="dist.jar" value="${dist.dir}/PortalManager.jar" />
<path id="build.classpath">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path>
<target name="init">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="mrproper" depends="clean">
<delete dir="${dist.dir}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" />
</target>
<target name="dist" depends="compile">
<pathconvert property="dist.manifest.classpathstring" refid="build.classpath" dirsep="/" pathsep=" ">
<map from="${basedir}/" to="" />
</pathconvert>
<jar destfile="${dist.jar}" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="Main"/>
<attribute name="Class-Path" value="${dist.manifest.classpathstring}" />
</manifest>
<fileset dir="${build.dir}"/>
</jar>
<mkdir dir="${dist.dir}/lib" />
<copy todir="${dist.dir}/lib">
<path refid="build.classpath" />
</copy>
<echo file="${dist.dir}/portalmanager.cmd" message="java -jar PortalManager.jar $@" />
<echo file="${dist.dir}/portalmanager.sh" message="java -jar PortalManager.jar %*" />
<copy file="${dist.dir}/portalmanager.sh" tofile="${dist.dir}/portalmanager" />
<chmod file="${dist.dir}/portalmanager.sh" perm="ugo+rx"/>
<chmod file="${dist.dir}/portalmanager" perm="ugo+rx"/>
</target>
</project>
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment