* add svn support to build script
This commit is contained in:
parent
85b4b69398
commit
8d46aef7ef
32
build.xml
32
build.xml
@ -1,15 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<project name="filebot" default="fatjar">
|
<project name="filebot" default="fatjar">
|
||||||
|
<!-- define source dirs -->
|
||||||
<!-- 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>
|
|
||||||
|
|
||||||
<property name="dir.source" location="${basedir}/source" />
|
<property name="dir.source" location="${basedir}/source" />
|
||||||
<property name="dir.test" location="${basedir}/test" />
|
<property name="dir.test" location="${basedir}/test" />
|
||||||
<property name="dir.build" location="${basedir}/build" />
|
<property name="dir.build" location="${basedir}/build" />
|
||||||
@ -17,7 +8,21 @@
|
|||||||
<property name="dir.lib" location="${basedir}/lib" />
|
<property name="dir.lib" location="${basedir}/lib" />
|
||||||
<property name="dir.website" location="${basedir}/website" />
|
<property name="dir.website" location="${basedir}/website" />
|
||||||
<property name="dir.installer" location="${basedir}/installer" />
|
<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.fatjar" location="${dir.dist}/${title}_${version}.jar" />
|
||||||
<property name="path.appbundle.zip" location="${dir.dist}/${title}_${version}.app.zip" />
|
<property name="path.appbundle.zip" location="${dir.dist}/${title}_${version}.app.zip" />
|
||||||
<property name="path.source.zip" location="${dir.dist}/filebot-${version}-src.zip" />
|
<property name="path.source.zip" location="${dir.dist}/filebot-${version}-src.zip" />
|
||||||
@ -53,6 +58,7 @@
|
|||||||
<manifest>
|
<manifest>
|
||||||
<attribute name="Built-By" value="${user.name}" />
|
<attribute name="Built-By" value="${user.name}" />
|
||||||
<attribute name="Built-Date" value="${today}" />
|
<attribute name="Built-Date" value="${today}" />
|
||||||
|
<attribute name="Built-Revision" value="${svn.revision}" />
|
||||||
<attribute name="Application-Name" value="${title}" />
|
<attribute name="Application-Name" value="${title}" />
|
||||||
<attribute name="Application-Version" value="${version}" />
|
<attribute name="Application-Version" value="${version}" />
|
||||||
<attribute name="Main-Class" value="net.sourceforge.filebot.Main" />
|
<attribute name="Main-Class" value="net.sourceforge.filebot.Main" />
|
||||||
@ -218,7 +224,7 @@
|
|||||||
<!-- copy jars -->
|
<!-- copy jars -->
|
||||||
<copy todir="${dir.dist}/webstart">
|
<copy todir="${dir.dist}/webstart">
|
||||||
<fileset dir="${dir.dist}" includes="filebot.jar" />
|
<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>
|
||||||
|
|
||||||
<!-- copy jna.jar without native libs -->
|
<!-- 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">
|
<javac srcdir="${dir.source}:${dir.test}" destdir="${dir.build}" source="1.6" encoding="utf-8" includeAntRuntime="false">
|
||||||
<classpath>
|
<classpath>
|
||||||
<fileset dir="${dir.lib}" includes="*.jar" />
|
<fileset dir="${dir.lib}" includes="*.jar" />
|
||||||
|
<pathelement location="${dir.lib}/build/junit.jar" />
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
|
|
||||||
@ -322,6 +329,7 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<fileset dir="${dir.dist}" includes="*.jar" />
|
<fileset dir="${dir.dist}" includes="*.jar" />
|
||||||
<fileset dir="${dir.lib}" includes="*.jar" />
|
<fileset dir="${dir.lib}" includes="*.jar" />
|
||||||
|
<pathelement location="${dir.lib}/build/junit.jar" />
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
||||||
<formatter type="plain" />
|
<formatter type="plain" />
|
||||||
@ -336,7 +344,7 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${path.fatjar}" />
|
<pathelement location="${path.fatjar}" />
|
||||||
<pathelement location="${dir.dist}/filebot-test.jar" />
|
<pathelement location="${dir.dist}/filebot-test.jar" />
|
||||||
<pathelement location="${dir.lib}/junit.jar" />
|
<pathelement location="${dir.lib}/build/junit.jar" />
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
||||||
<formatter type="plain" />
|
<formatter type="plain" />
|
||||||
|
BIN
lib/build/ganymed.jar
Normal file
BIN
lib/build/ganymed.jar
Normal file
Binary file not shown.
BIN
lib/build/svnClientAdapter.jar
Normal file
BIN
lib/build/svnClientAdapter.jar
Normal file
Binary file not shown.
BIN
lib/build/svnant.jar
Normal file
BIN
lib/build/svnant.jar
Normal file
Binary file not shown.
BIN
lib/build/svnjavahl.jar
Normal file
BIN
lib/build/svnjavahl.jar
Normal file
Binary file not shown.
BIN
lib/build/svnkit.jar
Normal file
BIN
lib/build/svnkit.jar
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user