2009-05-21 10:00:48 +00:00
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2011-08-27 02:20:40 +00:00
<project name= "filebot" default= "fatjar" >
2011-11-09 11:57:54 +00:00
<!-- include application properties -->
<property file= "source/net/sourceforge/filebot/Settings.properties" />
<property name= "title" value= "${application.name}" />
<property name= "version" value= "${application.version}" />
2012-02-26 12:58:16 +00:00
<tstamp >
<format property= "today" pattern= "yyyy-MM-dd" />
</tstamp>
2011-11-09 11:57:54 +00:00
2011-11-09 02:57:10 +00:00
<!-- define source dirs -->
2008-12-31 20:11:27 +00:00
<property name= "dir.source" location= "${basedir}/source" />
<property name= "dir.test" location= "${basedir}/test" />
<property name= "dir.build" location= "${basedir}/build" />
<property name= "dir.dist" location= "${basedir}/dist" />
<property name= "dir.lib" location= "${basedir}/lib" />
2011-08-27 02:20:40 +00:00
<property name= "dir.website" location= "${basedir}/website" />
2010-10-28 12:25:47 +00:00
<property name= "dir.installer" location= "${basedir}/installer" />
2011-11-09 02:57:10 +00:00
<!-- define output paths -->
2010-10-28 12:25:47 +00:00
<property name= "path.fatjar" location= "${dir.dist}/${title}_${version}.jar" />
2011-11-15 12:29:29 +00:00
<property name= "path.appbundle.tar.gz" location= "${dir.dist}/${title}_${version}.app.tar.gz" />
2010-10-28 12:25:47 +00:00
<property name= "path.source.zip" location= "${dir.dist}/filebot-${version}-src.zip" />
2008-02-13 20:08:06 +00:00
2011-08-27 02:20:40 +00:00
<property name= "deploy.release" value= "web.sourceforge.net:/home/frs/project/f/fi/filebot/filebot" />
<property name= "deploy.website" value= "web.sourceforge.net:htdocs" />
2007-12-23 19:28:04 +00:00
2008-12-31 20:11:27 +00:00
<target name= "jar" depends= "build" >
2008-07-30 22:37:01 +00:00
<!-- create dist dir -->
<mkdir dir= "${dir.dist}" />
2008-12-31 20:11:27 +00:00
<!-- main jar -->
<jar destfile= "${dir.dist}/filebot.jar" >
2011-12-14 12:18:06 +00:00
<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" />
</manifest>
2008-12-31 20:11:27 +00:00
<fileset dir= "${dir.build}" excludes= "**/*Test*" />
</jar>
<!-- extra jar containing all the unit tests -->
<jar destfile= "${dir.dist}/filebot-test.jar" >
<fileset dir= "${dir.build}" includes= "**/*Test*" />
</jar>
2009-08-02 11:51:28 +00:00
2010-10-28 12:25:47 +00:00
<!-- source as zip -->
<zip destfile= "${path.source.zip}" >
2009-08-02 11:51:28 +00:00
<fileset dir= "source" />
<fileset dir= "test" />
</zip>
2008-12-31 20:11:27 +00:00
</target>
2010-10-28 12:25:47 +00:00
<target name= "fatjar" depends= "jar" description= "Merge all class files into a single executable jar file" >
<jar destfile= "${path.fatjar}" filesetmanifest= "merge" duplicate= "fail" >
2009-07-29 22:09:10 +00:00
<!-- include main jar -->
<zipfileset src= "${dir.dist}/filebot.jar" />
2009-07-31 00:27:07 +00:00
2008-06-09 18:41:06 +00:00
<!-- include libs -->
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/xercesImpl.jar" >
2009-04-11 23:27:10 +00:00
<include name= "org/apache/**" />
<include name= "org/w3c/dom/html/**" />
2007-12-23 19:28:04 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/nekohtml.jar" >
2009-04-11 23:27:10 +00:00
<include name= "org/cyberneko/html/**" />
2008-02-13 20:08:06 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2011-08-05 04:38:11 +00:00
<zipfileset src= "${dir.lib}/json-simple.jar" >
<include name= "org/json/simple/**" />
2011-08-10 16:20:57 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/simmetrics.jar" >
2009-04-11 23:27:10 +00:00
<include name= "uk/ac/shef/wit/simmetrics/**" />
2008-06-09 18:41:06 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/glazedlists.jar" >
2009-04-11 23:27:10 +00:00
<include name= "ca/odell/glazedlists/**" />
2008-10-12 20:25:23 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/miglayout.jar" >
2009-04-11 23:27:10 +00:00
<include name= "net/miginfocom/**" />
2008-02-13 20:08:06 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2009-08-17 17:23:29 +00:00
<zipfileset src= "${dir.lib}/xmlrpc.jar" >
2009-04-11 23:27:10 +00:00
<include name= "redstone/xmlrpc/**" />
2008-02-13 20:08:06 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2008-12-31 20:11:27 +00:00
<zipfileset src= "${dir.lib}/args4j.jar" >
2009-04-11 23:27:10 +00:00
<include name= "org/kohsuke/args4j/**" />
2008-07-30 22:37:01 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2009-02-02 20:50:04 +00:00
<zipfileset src= "${dir.lib}/ehcache.jar" >
2009-04-11 23:27:10 +00:00
<include name= "net/sf/ehcache/**" />
2009-11-21 19:46:01 +00:00
<include name= "ehcache-failsafe.xml" />
<include name= "ehcache-version.properties" />
2009-04-05 10:08:00 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2010-10-24 13:43:11 +00:00
<zipfileset src= "${dir.lib}/slf4j.jar" >
<include name= "org/slf4j/**" />
</zipfileset>
2012-02-26 12:58:16 +00:00
2010-10-24 13:43:11 +00:00
<zipfileset src= "${dir.lib}/slf4j-jdk.jar" >
<include name= "org/slf4j/**" />
</zipfileset>
2012-02-26 12:58:16 +00:00
2012-02-10 16:43:09 +00:00
<zipfileset src= "${dir.lib}/commons-io.jar" >
<include name= "org/apache/commons/io/**" />
2011-11-26 07:53:00 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2009-04-05 10:08:00 +00:00
<zipfileset src= "${dir.lib}/jna.jar" >
<!-- include classes and native libraries -->
<include name= "com/sun/jna/**" />
2009-04-11 23:27:10 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2009-09-22 21:23:39 +00:00
<zipfileset src= "${dir.lib}/groovy.jar" >
<include name= "groovy*/**" />
<include name= "org/codehaus/groovy/**" />
2010-10-24 17:12:51 +00:00
<include name= "META-INF/dgminfo" />
2009-04-11 23:27:10 +00:00
</zipfileset>
2012-02-26 12:58:16 +00:00
2011-09-03 09:30:38 +00:00
<zipfileset src= "${dir.lib}/icu4j.jar" >
2012-02-09 09:44:00 +00:00
<include name= "com/ibm/icu/**" />
</zipfileset>
2009-07-27 22:34:42 +00:00
2009-06-02 11:32:30 +00:00
<zipfileset src= "${dir.lib}/sublight-ws.jar" >
<include name= "net/sublight/webservice/**" />
</zipfileset>
2012-02-26 12:58:16 +00:00
2009-06-30 20:49:09 +00:00
<zipfileset src= "${dir.lib}/junrar-custom.jar" >
<include name= "de/innosystec/unrar/**" />
</zipfileset>
2012-02-26 12:58:16 +00:00
2011-09-21 13:40:46 +00:00
<zipfileset src= "${dir.lib}/jgat-custom.jar" >
<include name= "com/dmurph/tracking/**" />
</zipfileset>
2012-02-26 18:05:07 +00:00
<zipfileset src= "${dir.lib}/sevenzipjbinding.jar" >
<include name= "net/sf/sevenzipjbinding/**" />
</zipfileset>
2007-12-23 19:28:04 +00:00
</jar>
</target>
2010-10-28 12:25:47 +00:00
<target name= "appbundle" depends= "fatjar" description= "Build an OSX application bundle" >
2011-12-13 15:26:17 +00:00
<taskdef name= "jarbundler" classname= "net.sourceforge.jarbundler.JarBundler" classpath= "${dir.lib}/build/jarbundler.jar" />
2011-11-16 03:00:54 +00:00
<copy tofile= "${dir.dist}/appbundle/FileBot.jar" file= "${path.fatjar}" />
2012-02-26 12:58:16 +00:00
2010-10-28 12:25:47 +00:00
<!-- build app bundle folder and add native libs -->
2011-12-07 07:12:12 +00:00
<jarbundler dir= "${dir.dist}" name= "${title}" version= "${version}" build= "${svn.revision}" icon= "${dir.installer}/appbundle/icon.icns" bundleid= "net.sourceforge.filebot" jar= "${dir.dist}/appbundle/FileBot.jar" stubfile= "${dir.installer}/appbundle/JavaApplicationStub" workingdirectory= "$APP_PACKAGE/Contents/Resources/Java" mainclass= "net.sourceforge.filebot.Main" jvmversion= "1.6+" vmoptions= "-Xmx256m" >
2012-02-26 12:58:16 +00:00
<javaproperty name= "application.deployment" value= "app" />
2011-10-14 09:59:41 +00:00
</jarbundler>
2012-02-26 12:58:16 +00:00
2011-11-20 18:04:50 +00:00
<!-- shell scripts -->
2011-11-16 03:00:54 +00:00
<copy todir= "${dir.dist}/${title}.app/Contents/MacOS" file= "${dir.installer}/appbundle/filebot" />
2011-11-20 18:04:50 +00:00
<copy todir= "${dir.dist}/${title}.app/Contents/MacOS" file= "${dir.installer}/appbundle/install.sh" />
2012-02-26 12:58:16 +00:00
2010-10-28 12:25:47 +00:00
<copy todir= "${dir.dist}/${title}.app/Contents/Resources/Java" >
<fileset dir= "${dir.lib}/native/mac-x86_64" includes= "*.dylib" />
</copy>
2011-11-15 12:29:29 +00:00
<!-- application bundle folder as .tar.gz -->
<tar destfile= "${path.appbundle.tar.gz}" compression= "gzip" >
2011-11-16 03:00:54 +00:00
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**" excludes= "**/MacOS/**" />
2012-02-26 12:58:16 +00:00
<tarfileset dir= "${dir.dist}" includes= "${title}.app/**/MacOS/**" filemode= "755" />
<!-- IMPORTANT application stub must be executable!! -->
2011-11-15 12:29:29 +00:00
</tar>
2010-10-28 12:25:47 +00:00
</target>
2010-11-07 15:04:10 +00:00
<target name= "deb" depends= "fatjar" description= "Build debian package for i386 and amd64" >
2011-11-29 03:18:49 +00:00
<taskdef resource= "ant_deb_task.properties" classpath= "${dir.lib}/build/ant-deb.jar" />
2012-02-26 12:58:16 +00:00
2010-11-07 15:04:10 +00:00
<antcall target= "deb-arch" >
<param name= "arch" value= "i386" />
</antcall>
<antcall target= "deb-arch" >
<param name= "arch" value= "amd64" />
</antcall>
</target>
<target name= "deb-arch" >
2011-11-29 03:18:49 +00:00
<deb todir= "${dir.dist}" package= "filebot" version= "${version}" architecture= "${arch}" section= "misc" depends= "default-jre-headless" recommends= "default-jre" suggests= "openjdk-7-jre" homepage= "http://filebot.sourceforge.net" priority= "optional" >
2011-12-07 05:51:08 +00:00
<maintainer name= "Reinhard Pointner" email= "rednoah@users.sourceforge.net" />
2010-11-07 15:04:10 +00:00
<description synopsis= "The ultimate tv renamer / subtitle downloader / sfv validator" > FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification.</description>
<tarfileset fullpath= "usr/share/filebot/FileBot.jar" file= "${path.fatjar}" />
<tarfileset prefix= "usr/share/filebot" dir= "${dir.lib}/native/linux-${arch}" includes= "*.so" />
<tarfileset prefix= "usr/share/filebot" file= "${dir.installer}/icons/icon48.png" />
2011-11-15 03:31:47 +00:00
<tarfileset prefix= "usr/share/filebot/bin" file= "${dir.installer}/deb/filebot.sh" filemode= "755" />
<tarfileset fullpath= "usr/bin/filebot" file= "${dir.installer}/deb/filebot.sh" filemode= "755" />
2010-11-07 15:04:10 +00:00
<tarfileset prefix= "usr/share/applications" file= "${dir.installer}/deb/FileBot.desktop" />
</deb>
</target>
2010-11-06 11:01:19 +00:00
<target name= "msi" depends= "fatjar" description= "Build Windows Installer for x86 and x64" >
2010-11-07 15:04:10 +00:00
<antcall target= "msi-arch" >
2010-11-06 11:01:19 +00:00
<param name= "arch" value= "x86" />
2012-02-26 18:05:07 +00:00
<param name= "libgcc_name" value= "mingwm10.dll" />
2010-11-06 11:01:19 +00:00
</antcall>
2010-11-07 15:04:10 +00:00
<antcall target= "msi-arch" >
2010-11-06 11:01:19 +00:00
<param name= "arch" value= "x64" />
2012-02-26 18:05:07 +00:00
<param name= "libgcc_name" value= "libgcc_s_sjlj-1.dll" />
2010-11-06 11:01:19 +00:00
</antcall>
</target>
2010-11-07 15:04:10 +00:00
<target name= "msi-arch" >
2010-11-06 11:01:19 +00:00
<property name= "mediainfo" location= "${dir.lib}/native/win32-${arch}/MediaInfo.dll" />
2012-02-26 18:05:07 +00:00
<property name= "lib7z_binding" location= "${dir.lib}/native/win32-${arch}/lib7-Zip-JBinding.dll" />
<property name= "libgcc_path" location= "${dir.lib}/native/win32-${arch}/${libgcc_name}" />
2010-11-07 15:04:10 +00:00
<property name= "installer" location= "${dir.dist}/FileBot_${version}_${arch}.msi" />
2012-02-26 18:05:07 +00:00
2010-11-06 11:01:19 +00:00
<exec executable= "candle.exe" dir= "${dir.installer}/msi" failonerror= "true" >
2012-02-26 18:05:07 +00:00
<arg line= "filebot-wix.xml -out ${dir.dist}/msi.wixobj -arch ${arch} -dreleaseversion=${version} -dfatjar=${path.fatjar} -dmediainfo=${mediainfo} -dlib7z_binding=${lib7z_binding} -dlibgcc_name=${libgcc_name} -dlibgcc_path=${libgcc_path}" />
2010-11-06 11:01:19 +00:00
</exec>
<exec executable= "light.exe" dir= "${dir.installer}/msi" failonerror= "true" >
<arg line= "${dir.dist}/msi.wixobj -sval -ext WixUIExtension -out ${installer}" />
</exec>
</target>
2012-02-26 12:58:16 +00:00
2011-12-28 13:51:36 +00:00
<target name= "portable" depends= "fatjar" description= "Portable application package" >
2012-02-26 12:58:16 +00:00
<mkdir dir= "${dir.dist}/portable" />
2011-12-28 13:51:36 +00:00
<copy file= "${path.fatjar}" tofile= "${dir.dist}/portable/FileBot.jar" />
<copy todir= "${dir.dist}/portable" >
<fileset dir= "${dir.installer}/portable" includes= "*.exe, *.ini, *.sh" />
</copy>
2012-02-26 12:58:16 +00:00
2011-12-28 13:51:36 +00:00
<zip destfile= "${dir.dist}/FileBot_${version}-portable.zip" >
<zipfileset dir= "${dir.dist}/portable" includes= "*.jar, *.exe, *.ini" />
<zipfileset dir= "${dir.dist}/portable" includes= "*.sh" filemode= "755" />
</zip>
</target>
2012-02-26 12:58:16 +00:00
2010-10-28 12:25:47 +00:00
<target name= "webstart" depends= "jar" description= "Build and compress jars used for webstart deployment" >
2009-07-27 22:34:42 +00:00
<!-- create dirs -->
<mkdir dir= "${dir.dist}/webstart" />
2010-10-28 12:25:47 +00:00
<!-- copy jnlp descriptors and icons -->
<copy todir= "${dir.dist}/webstart" >
<fileset dir= "${dir.installer}/webstart" />
<fileset dir= "${dir.installer}/icons" />
</copy>
2009-07-27 22:34:42 +00:00
<!-- copy jars -->
<copy todir= "${dir.dist}/webstart" >
2011-11-09 02:57:10 +00:00
<fileset dir= "${dir.lib}" includes= "*.jar" excludes= "jna.jar" />
2009-07-27 22:34:42 +00:00
</copy>
2009-08-02 11:51:28 +00:00
2009-07-27 22:34:42 +00:00
<!-- copy jna.jar without native libs -->
<jar destfile= "${dir.dist}/webstart/jna.jar" >
<zipfileset src= "${dir.lib}/jna.jar" includes= "**/*.class" />
</jar>
2012-02-26 12:58:16 +00:00
2011-12-26 18:10:53 +00:00
<!-- create mediainfo jar as seperate jar and use as trigger for lazy loading the native libs -->
<jar destfile= "${dir.dist}/webstart/mediainfo.jar" >
<fileset dir= "${dir.build}" includes= "net/sourceforge/filebot/mediainfo/**" />
</jar>
<!-- create indexed main jar -->
<jar destfile= "${dir.dist}/webstart/filebot.jar" index= "yes" >
<fileset dir= "${dir.build}" excludes= "**/*Test*, net/sourceforge/filebot/mediainfo/**" />
<indexjars >
<!-- IMPORTANT if groovy is indexed things break during runtime!! -->
<fileset dir= "${dir.dist}/webstart" includes= "**/*.jar" excludes= "filebot.jar, groovy.jar" />
</indexjars>
</jar>
2009-07-27 22:34:42 +00:00
<!-- create native lib jars -->
<antcall target= "webstart-nativelib" >
2009-07-29 22:09:10 +00:00
<param name= "arch" value= "win32-x86" />
2009-07-27 22:34:42 +00:00
</antcall>
<antcall target= "webstart-nativelib" >
2010-11-06 11:01:19 +00:00
<param name= "arch" value= "win32-x64" />
2009-07-27 22:34:42 +00:00
</antcall>
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "linux-i386" />
</antcall>
<antcall target= "webstart-nativelib" >
<param name= "arch" value= "linux-amd64" />
</antcall>
<antcall target= "webstart-nativelib" >
2010-02-07 02:15:38 +00:00
<param name= "arch" value= "mac-x86_64" />
2009-07-27 22:34:42 +00:00
</antcall>
2011-12-07 21:56:43 +00:00
<!-- sign all jars -->
2009-07-27 22:34:42 +00:00
<apply executable= "pack200" >
2009-08-15 11:47:24 +00:00
<!-- workaround for bug 6575373, see http://bugs.sun.com/view_bug.do?bug_id=6575373 -->
<arg line= "--segment-limit=-1" />
2009-07-27 22:34:42 +00:00
<arg line= "--repack" />
<srcfile />
2011-12-07 21:56:43 +00:00
<fileset dir= "${dir.dist}/webstart" includes= "**/*.jar" />
2009-07-27 22:34:42 +00:00
</apply>
2009-08-15 11:47:24 +00:00
2009-07-27 22:34:42 +00:00
<signjar alias= "filebot" keystore= "filebot.keystore" storepass= "secret" >
2011-12-07 21:56:43 +00:00
<fileset id= "signjar" dir= "${dir.dist}/webstart" includes= "**/*.jar" />
2009-07-27 22:34:42 +00:00
</signjar>
2012-02-26 12:58:16 +00:00
2009-07-27 22:34:42 +00:00
<!-- pack200 all jars -->
<apply executable= "pack200" dest= "${dir.dist}/webstart" >
2009-08-15 11:47:24 +00:00
<!-- workaround for bug 6575373, see http://bugs.sun.com/view_bug.do?bug_id=6575373 -->
<arg line= "--segment-limit=-1" />
2009-07-27 22:34:42 +00:00
<targetfile />
<srcfile />
<fileset dir= "${dir.dist}/webstart" includes= "*.jar" />
<mapper type= "glob" from= "*.jar" to= "*.jar.pack.gz" />
</apply>
</target>
<target name= "webstart-nativelib" >
<!-- create temp dir -->
<mkdir dir= "${dir.dist}/webstart/native/${arch}" />
<!-- copy native libs to temp dir -->
<copy todir= "${dir.dist}/webstart/native/${arch}" flatten= "true" >
<zipfileset src= "${dir.lib}/jna.jar" includes= "com/sun/jna/${arch}/*" />
<fileset dir= "${dir.lib}/native" includes= "${arch}/*" />
</copy>
<!-- create native lib jar -->
<jar destfile= "${dir.dist}/webstart/native/${arch}.jar" basedir= "${dir.dist}/webstart/native/${arch}" />
<!-- delete temp dir -->
<delete dir= "${dir.dist}/webstart/native/${arch}" />
</target>
<target name= "genkey" >
<genkey alias= "filebot" keystore= "filebot.keystore" storepass= "secret" validity= "3650" dname= "CN=${user.name}" />
</target>
2008-06-09 18:41:06 +00:00
<target name= "build" >
2007-12-23 19:28:04 +00:00
<!-- create build dir -->
2008-06-09 18:41:06 +00:00
<mkdir dir= "${dir.build}" />
2007-12-23 19:28:04 +00:00
<!-- compile -->
2011-11-22 13:29:42 +00:00
<javac srcdir= "${dir.source}:${dir.test}" destdir= "${dir.build}" target= "1.6" source= "1.6" encoding= "utf-8" includeAntRuntime= "false" >
2007-12-23 19:28:04 +00:00
<classpath >
2008-06-09 18:41:06 +00:00
<fileset dir= "${dir.lib}" includes= "*.jar" />
2011-11-09 02:57:10 +00:00
<pathelement location= "${dir.lib}/build/junit.jar" />
2007-12-23 19:28:04 +00:00
</classpath>
</javac>
2009-06-02 11:32:30 +00:00
2007-12-23 19:28:04 +00:00
<!-- copy resources -->
2008-06-09 18:41:06 +00:00
<copy todir= "${dir.build}" >
<fileset dir= "${dir.source}" >
2009-07-27 22:34:42 +00:00
<exclude name= "**/*.java" />
2007-12-23 19:28:04 +00:00
</fileset>
</copy>
</target>
<target name= "clean" >
2008-07-30 22:37:01 +00:00
<delete dir= "${dir.dist}" />
2008-06-09 18:41:06 +00:00
<delete dir= "${dir.build}" />
2007-12-23 19:28:04 +00:00
</target>
2008-12-31 20:11:27 +00:00
<target name= "test" depends= "jar" >
<junit printsummary= "yes" fork= "true" >
2008-06-09 18:41:06 +00:00
<classpath >
2008-12-31 20:11:27 +00:00
<fileset dir= "${dir.dist}" includes= "*.jar" />
<fileset dir= "${dir.lib}" includes= "*.jar" />
2011-11-09 02:57:10 +00:00
<pathelement location= "${dir.lib}/build/junit.jar" />
2008-06-09 18:41:06 +00:00
</classpath>
<formatter type= "plain" />
2008-12-31 20:11:27 +00:00
<test name= "net.sourceforge.filebot.AllTests" outfile= "test-report" />
2008-06-09 18:41:06 +00:00
</junit>
</target>
2008-12-31 20:11:27 +00:00
2009-06-02 11:32:30 +00:00
2008-12-31 20:11:27 +00:00
<target name= "test-fatjar" depends= "fatjar" >
<junit printsummary= "yes" fork= "true" >
<classpath >
2010-10-28 12:25:47 +00:00
<pathelement location= "${path.fatjar}" />
2008-12-31 20:11:27 +00:00
<pathelement location= "${dir.dist}/filebot-test.jar" />
2011-11-09 02:57:10 +00:00
<pathelement location= "${dir.lib}/build/junit.jar" />
2008-12-31 20:11:27 +00:00
</classpath>
<formatter type= "plain" />
<test name= "net.sourceforge.filebot.AllTests" outfile= "test-report" />
</junit>
</target>
2009-06-02 11:32:30 +00:00
2011-11-09 11:18:38 +00:00
<target name= "svn-update" >
2011-11-09 11:57:54 +00:00
<typedef resource= "org/tigris/subversion/svnant/svnantlib.xml" >
2012-02-26 12:58:16 +00:00
<classpath >
<fileset dir= "${dir.lib}/build" includes= "*.jar" />
</classpath>
2011-11-09 11:57:54 +00:00
</typedef>
2011-12-01 16:50:33 +00:00
<svnSetting id= "svn.settings" svnkit= "true" javahl= "false" />
2012-02-26 12:58:16 +00:00
<svn refid= "svn.settings" >
<update dir= "${dir.source}" revision= "HEAD" recurse= "false" />
</svn>
<svn refid= "svn.settings" >
<status path= "${dir.source}" revisionProperty= "svn.revision" />
</svn>
2011-11-09 11:18:38 +00:00
<echo > Revision: ${svn.revision}</echo>
</target>
2011-12-28 13:51:36 +00:00
<target name= "deploy-release" depends= "svn-update, fatjar, appbundle, deb, msi, portable, webstart" >
2010-02-04 16:22:45 +00:00
<mkdir dir= "${dir.dist}/release" />
2010-10-24 13:43:11 +00:00
2011-08-31 11:10:43 +00:00
<!-- prepare release packages -->
2010-10-28 12:25:47 +00:00
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${path.fatjar}" />
2011-11-15 12:29:29 +00:00
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${path.appbundle.tar.gz}" />
2010-11-07 15:04:10 +00:00
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${dir.dist}/filebot_${version}_i386.deb" />
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${dir.dist}/filebot_${version}_amd64.deb" />
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${dir.dist}/FileBot_${version}_x86.msi" />
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${dir.dist}/FileBot_${version}_x64.msi" />
2011-12-28 13:51:36 +00:00
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${dir.dist}/FileBot_${version}-portable.zip" />
<copy todir= "${dir.dist}/release/${title}_${version}" file= "${path.source.zip}" />
2010-10-24 13:43:11 +00:00
2011-08-31 11:10:43 +00:00
<!-- ask for sourceforge password -->
<property name= "sf.user" value= "rednoah,filebot" />
<input message= "Please enter password:" addproperty= "sf.password" />
2010-10-28 12:25:47 +00:00
<!-- deploy source zip first so it will be the oldest file in the release folder -->
2011-08-10 16:20:57 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
2010-02-04 16:22:45 +00:00
<fileset dir= "${dir.dist}/release" includes= "**/*-src.zip" />
</scp>
2010-10-24 13:43:11 +00:00
2010-10-28 12:25:47 +00:00
<!-- deploy fatjar -->
2010-11-07 15:04:10 +00:00
<sleep seconds= "5" />
2011-08-10 16:20:57 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
2010-10-24 13:43:11 +00:00
<fileset dir= "${dir.dist}/release" includes= "**/*.jar" />
2010-02-04 16:22:45 +00:00
</scp>
2012-02-26 12:58:16 +00:00
2011-12-28 13:51:36 +00:00
<!-- deploy portable application package -->
<sleep seconds= "5" />
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
<fileset dir= "${dir.dist}/release" includes= "**/*-portable.zip" />
</scp>
2010-10-24 13:43:11 +00:00
2010-11-06 11:01:19 +00:00
<!-- deploy windows installers -->
2010-11-07 15:04:10 +00:00
<sleep seconds= "5" />
2011-08-10 16:20:57 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
2010-11-06 11:01:19 +00:00
<fileset dir= "${dir.dist}/release" includes= "**/*.msi" />
</scp>
2010-11-07 15:04:10 +00:00
<!-- deploy debian packages -->
<sleep seconds= "5" />
2011-08-10 16:20:57 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
2010-11-07 15:04:10 +00:00
<fileset dir= "${dir.dist}/release" includes= "**/*.deb" />
</scp>
2010-10-28 12:25:47 +00:00
<!-- deploy osx app bundle -->
2010-11-07 15:04:10 +00:00
<sleep seconds= "5" />
2011-08-10 16:20:57 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.release}" trust= "yes" verbose= "true" >
2011-11-15 12:29:29 +00:00
<fileset dir= "${dir.dist}/release" includes= "**/*.app.tar.gz" />
2010-10-28 12:25:47 +00:00
</scp>
<!-- deploy webstart jars and jnlp descriptors -->
2011-08-27 02:20:40 +00:00
<scp todir= "${sf.user}:${sf.password}@${deploy.website}/webstart" trust= "yes" verbose= "true" >
2010-02-04 16:22:45 +00:00
<fileset dir= "${dir.dist}/webstart" />
</scp>
</target>
2009-06-02 11:32:30 +00:00
2011-08-10 16:20:57 +00:00
2011-08-27 02:20:40 +00:00
<target name= "deploy-website" >
2011-08-31 11:10:43 +00:00
<!-- prepare website resources -->
2011-08-27 02:20:40 +00:00
<copy todir= "${dir.dist}/website" >
<fileset dir= "${dir.website}" >
2011-12-24 10:57:36 +00:00
<include name= "*.xml" />
2011-12-27 06:03:17 +00:00
<include name= "*.php" />
2011-08-27 02:20:40 +00:00
<include name= "*.html" />
<include name= "*.css" />
<include name= "*.js" />
<include name= "*.png" />
<include name= "*.ico" />
<include name= "images/**" />
2011-09-18 18:41:04 +00:00
<include name= "data/**" />
2011-12-27 18:54:25 +00:00
<include name= "scripts/**" />
2011-12-14 12:18:06 +00:00
<include name= "screenshots/**" />
2011-08-27 02:20:40 +00:00
</fileset>
</copy>
<!-- replace variables for new release -->
<replace dir= "${dir.dist}/website" encoding= "utf-8" summary= "yes" >
<include name= "**/*.html" />
2011-12-27 06:03:17 +00:00
<include name= "**/*.php" />
2011-08-27 02:20:40 +00:00
<replacefilter token= "@{version}" value= "${version}" />
</replace>
<!-- ask for sourceforge password -->
<property name= "sf.user" value= "rednoah,filebot" />
<input message= "Please enter password:" addproperty= "sf.password" />
<!-- upload -->
<scp todir= "${sf.user}:${sf.password}@${deploy.website}" trust= "yes" verbose= "true" >
<fileset dir= "${dir.dist}/website" />
</scp>
</target>
2011-11-09 11:08:24 +00:00
<target name= "deploy-test-package" depends= "svn-update, fatjar" >
2011-08-10 16:20:57 +00:00
<!-- ask for sourceforge password -->
2011-12-14 12:18:06 +00:00
<property name= "sf.user" value= "rednoah,filebot" />
2011-08-10 16:20:57 +00:00
<input message= "Please enter password:" addproperty= "sf.password" />
<input message= "Mark:" addproperty= "mark" />
<!-- deploy fatjar -->
2011-12-01 16:50:33 +00:00
<scp file= "${path.fatjar}" remoteTofile= "${sf.user}:${sf.password}@${deploy.release}/HEAD/filebot-${version}-r${svn.revision}-${mark}.jar" trust= "yes" verbose= "true" />
2011-08-10 16:20:57 +00:00
</target>
2008-03-02 17:02:37 +00:00
</project>