Skip to content

Commit

Permalink
Added build system and new JAR
Browse files Browse the repository at this point in the history
git-svn-id: svn://rarepos.cs.uni-tuebingen.de/tfpredict@101 71221333-9ef9-431f-bb7f-117e0a61b720
  • Loading branch information
mroemer committed Apr 23, 2015
1 parent 659d2d5 commit fb59978
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
File renamed without changes.
Binary file added dist/TFpredict_1.3.jar
Binary file not shown.
69 changes: 69 additions & 0 deletions dist/tfpredict_build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jar" name="Create Runnable Jar for Project TFPredict">
<target name="help">
<echo>
This is an ANT build script to build a stand-alone JAR for
TFpredict.

To make this script work, you only need to set the paths in
the init method.
</echo>
</target>

<!-- define some properties that are used throughout the tasks -->
<target name="init">
<property name="base" location=".." />

<!-- the main class -->
<property name="main" value="main.TFpredictMain" />

<!-- the path to the sources -->
<property name="src" location="${base}/src" />

<!-- the path to the binaries -->
<property name="classes" location="build/classes" />

<!-- the application jar file -->
<property name="appJar" value="TFpredict.jar" />
</target>

<target name="clean" depends="init">
<delete dir="build" />
<delete file="${appJar}" />
</target>

<target name="compile" depends="clean">
<mkdir dir="${classes}"/>
<path id="class.path">
<fileset dir="${base}/lib">
<include name="**/*.jar" />
</fileset>
</path>
<javac debug="on" srcdir="${src}" destdir="${classes}">
<classpath refid="class.path" />
</javac>
</target>

<!-- puts the application specific classes into application.jar. -->
<target name="jar" depends="compile">
<jar jarfile="${appJar}">
<manifest>
<attribute name="Main-Class" value="${main}" />
<attribute name="Built-By" value="Center for Bioinformatics Tuebingen (ZBIT)" />
</manifest>
<!-- INCLUDE/ EXCLUDE DEMO-->
<!--<fileset dir="${src}">-->
<!-- <include name="demo/view/**/*.properties"/>-->
<!-- <exclude name="demo/view/**/resource/**"/>-->
<!--</fileset>-->
<fileset dir="${classes}">
</fileset>

<zipfileset dir="${src}/resources" excludes="**/*.java" prefix="resources/"/>
<fileset file="${base}/readme.txt" />
<fileset file="${base}/license.txt" />
<zipgroupfileset dir="${base}/lib" includes="**/*.jar"/>
</jar>
</target>

</project>

0 comments on commit fb59978

Please sign in to comment.