* add svn support to build script

This commit is contained in:
Reinhard Pointner 2011-11-09 02:57:10 +00:00
parent 85b4b69398
commit 8d46aef7ef
7 changed files with 20 additions and 12 deletions

View File

@ -1,15 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<project name="filebot" default="fatjar">
<!-- include application properties -->
<property file="source/net/sourceforge/filebot/Settings.properties" />
<property name="title" value="${application.name}" />
<property name="version" value="${application.version}" />
<tstamp>
<format property="today" pattern="yyyy-MM-dd" />
</tstamp>
<!-- define source dirs -->
<property name="dir.source" location="${basedir}/source" />
<property name="dir.test" location="${basedir}/test" />
<property name="dir.build" location="${basedir}/build" />
@ -17,7 +8,21 @@
<property name="dir.lib" location="${basedir}/lib" />
<property name="dir.website" location="${basedir}/website" />
<property name="dir.installer" location="${basedir}/installer" />
<!-- import svnant -->
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml">
<classpath><fileset dir="${dir.lib}/build" includes="*.jar" /></classpath>
</typedef>
<!-- include application properties -->
<property file="source/net/sourceforge/filebot/Settings.properties" />
<property name="title" value="${application.name}" />
<property name="version" value="${application.version}" />
<svn svnkit="true"><status path="${basedir}" revisionProperty="svn.revision" /></svn>
<tstamp><format property="today" pattern="yyyy-MM-dd" /></tstamp>
<!-- define output paths -->
<property name="path.fatjar" location="${dir.dist}/${title}_${version}.jar" />
<property name="path.appbundle.zip" location="${dir.dist}/${title}_${version}.app.zip" />
<property name="path.source.zip" location="${dir.dist}/filebot-${version}-src.zip" />
@ -53,6 +58,7 @@
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Built-Date" value="${today}" />
<attribute name="Built-Revision" value="${svn.revision}" />
<attribute name="Application-Name" value="${title}" />
<attribute name="Application-Version" value="${version}" />
<attribute name="Main-Class" value="net.sourceforge.filebot.Main" />
@ -218,7 +224,7 @@
<!-- copy jars -->
<copy todir="${dir.dist}/webstart">
<fileset dir="${dir.dist}" includes="filebot.jar" />
<fileset dir="${dir.lib}" includes="*.jar" excludes="junit.jar, jna.jar" />
<fileset dir="${dir.lib}" includes="*.jar" excludes="jna.jar" />
</copy>
<!-- copy jna.jar without native libs -->
@ -299,6 +305,7 @@
<javac srcdir="${dir.source}:${dir.test}" destdir="${dir.build}" source="1.6" encoding="utf-8" includeAntRuntime="false">
<classpath>
<fileset dir="${dir.lib}" includes="*.jar" />
<pathelement location="${dir.lib}/build/junit.jar" />
</classpath>
</javac>
@ -322,6 +329,7 @@
<classpath>
<fileset dir="${dir.dist}" includes="*.jar" />
<fileset dir="${dir.lib}" includes="*.jar" />
<pathelement location="${dir.lib}/build/junit.jar" />
</classpath>
<formatter type="plain" />
@ -336,7 +344,7 @@
<classpath>
<pathelement location="${path.fatjar}" />
<pathelement location="${dir.dist}/filebot-test.jar" />
<pathelement location="${dir.lib}/junit.jar" />
<pathelement location="${dir.lib}/build/junit.jar" />
</classpath>
<formatter type="plain" />

BIN
lib/build/ganymed.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
lib/build/svnant.jar Normal file

Binary file not shown.

BIN
lib/build/svnjavahl.jar Normal file

Binary file not shown.

BIN
lib/build/svnkit.jar Normal file

Binary file not shown.