2009-04-13 17:27:02 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2013-01-08 12:40:40 +00:00
<project name= "syndie" default= "usage" basedir= "." >
2009-05-28 21:28:37 +00:00
<description > Builds, tests and runs the project syndie.</description>
2013-01-04 21:08:25 +00:00
<!--
Include property files so that values can be easily overridden.
2013-01-08 01:25:33 +00:00
Users should create an override.properties file to make changes.
2013-01-04 21:08:25 +00:00
-->
<property file= "override.properties" />
<property file= "build.properties" />
2012-06-03 01:00:56 +00:00
2013-01-09 23:51:38 +00:00
<!-- Set some global properties up -->
2009-05-28 21:28:37 +00:00
<property name= "src.dir" value= "src" />
2013-01-05 17:04:49 +00:00
<property name= "data.dir" value= "data" />
2009-05-28 21:28:37 +00:00
<property name= "build.dir" value= "build" />
<property name= "dist.dir" value= "dist" />
<property name= "lib.dir" value= "lib" />
2013-01-09 01:20:09 +00:00
<property name= "pkgtemp.dir" value= "pkg-temp" />
2013-01-09 23:51:38 +00:00
<property name= "pkgtemp.lib" value= "${pkgtemp.dir}/lib" />
<property name= "i2p.src.dir" value= "../i2p.i2p" />
2016-06-16 13:23:12 +00:00
<property name= "i2psnark.jar" value= "${i2p.src.dir}/build/i2psnark.jar" />
2013-01-09 23:51:38 +00:00
<property name= "launch4j.dir" value= "${i2p.src.dir}/installer/lib/launch4j" />
2013-01-10 15:33:00 +00:00
<property name= "izpack.dir" value= "${i2p.src.dir}/installer/lib/izpack" />
2013-01-09 23:51:38 +00:00
<property name= "desktop.class" value= "syndie.gui.desktop.DesktopMain" />
<property name= "tabs.class" value= "syndie.gui.SWTUI" />
<property name= "cli.class" value= "syndie.db.TextUI" />
2013-01-10 15:33:00 +00:00
<property name= "swt.dir" value= "${basedir}/swt/lib" />
<property name= "swt.lin32" value= "${swt.dir}/swt-lin32.jar" />
<property name= "swt.lin64" value= "${swt.dir}/swt-lin64.jar" />
<property name= "swt.win32" value= "${swt.dir}/swt-win32.jar" />
<property name= "swt.win64" value= "${swt.dir}/swt-win64.jar" />
<property name= "swt.mac32" value= "${swt.dir}/swt-mac32.jar" />
<property name= "swt.mac64" value= "${swt.dir}/swt-mac64.jar" />
2013-01-25 21:24:48 +00:00
<property name= "tab" value= " " />
2016-06-12 15:30:28 +00:00
<property name= "javac.compilerargs" value= "" />
<property name= "javac.version" value= "1.6" />
2013-01-23 15:37:28 +00:00
<property name= "require.gettext" value= "true" />
2013-01-19 15:42:31 +00:00
<condition property= "no.bundle" >
<isfalse value= "${require.gettext}" />
</condition>
2012-06-03 01:00:56 +00:00
2013-01-04 21:08:25 +00:00
<!-- allow lib locations to be overridden -->
<property name= "hsqldb.jar" value= "${lib.dir}/hsqldb.jar" />
<property name= "i2p.jar" value= "${lib.dir}/i2p.jar" />
<property name= "swt.jar" value= "${lib.dir}/swt.jar" />
2013-01-10 00:07:22 +00:00
<available property= "launch4j.available" file= "${launch4j.dir}/launch4j.jar" type= "file" />
2013-02-03 04:07:40 +00:00
<available property= "pack200.available" file= "${java.home}/bin/pack200" type= "file" />
2013-01-04 21:08:25 +00:00
2013-01-09 23:51:38 +00:00
<!-- Set some classpaths up -->
2009-05-28 21:28:37 +00:00
<path id= "classpath.build" >
2013-01-04 21:08:25 +00:00
<pathelement location= "${hsqldb.jar}" />
<pathelement location= "${i2p.jar}" />
<pathelement location= "${swt.jar}" />
2009-05-28 21:28:37 +00:00
</path>
<path id= "classpath.run" >
2013-01-09 23:51:38 +00:00
<pathelement location= "${build.dir}/syndie.jar" />
2009-05-28 21:28:37 +00:00
<path refid= "classpath.build" />
</path>
2012-06-03 01:00:56 +00:00
2013-01-09 23:51:38 +00:00
<!-- Set up a fileset for the resources -->
2009-05-28 21:28:37 +00:00
<path id= "resources.path" >
2013-01-05 17:04:49 +00:00
<fileset dir= "${data.dir}" />
2009-05-28 21:28:37 +00:00
</path>
2012-06-03 01:00:56 +00:00
2013-01-25 21:24:48 +00:00
<path id= "cli.resources.path" >
<fileset dir= "${data.dir}" excludes= "syndie/gui/** syndie/html/** syndie/trac/** com/** syndie/locale/** imports/Browser/** imports/DesktopUI/**" />
</path>
2013-01-08 12:40:40 +00:00
<target name= "help" depends= "usage" />
<target name= "usage" >
<echo message= "Useful targets:" />
<echo message= " clean: ${tab}Clean up the workspace" />
2013-01-09 23:51:38 +00:00
<echo message= " distclean: ${tab}Clean up all generated files" />
<echo message= " jar: ${tab}Create syndie.jar in build/ without the dependencies" />
2013-01-25 21:24:48 +00:00
<echo message= " jar-cli: ${tab}Create syndie-cli.jar in build/ without the dependencies" />
2013-01-08 12:40:40 +00:00
<echo message= " javadocs: ${tab}Generate javadocs for ${ant.project.name}" />
2013-01-25 21:24:48 +00:00
<echo message= " maintainer: ${tab}Display targets for building installers/packages for ${ant.project.name}" />
2013-01-09 23:51:38 +00:00
<echo message= " pkg: ${tab}Generate jar files and copy docs to ./dist" />
<echo message= " pkg-exe: ${tab}Same as pkg but also wraps jar files with launch4j into EXE files" />
2013-01-25 21:24:48 +00:00
<echo message= " poupdate: ${tab}Update PO files for translators" />
2013-01-09 23:51:38 +00:00
<echo message= " run: ${tab}Run ${ant.project.name} with the 'Tabs' interface" />
<echo message= " run-desktop: ${tab}Run ${ant.project.name} with the alternative 'Desktop' interface" />
2013-01-25 21:24:48 +00:00
<echo message= " singlejar: ${tab}Create a single syndie.jar in ${basedir} containing dependencies for YOUR system" />
<echo message= "totallyclean: ${tab}Clean up all generated files and any files downloaded during the build (e.g. SWT)" />
</target>
<target name= "maintainer" >
<echo message= "Useful targets for ${ant.project.name} maintainers:" />
<echo message= " clean: ${tab}Clean up the workspace" />
<echo message= " distclean: ${tab}Clean up all generated files" />
<echo message= " installer-all: ${tab}Create 32- and 64-bit installers for all supported OSes" />
<echo message= " installer-linux: ${tab}Create 32- and 64-bit installers for Linux" />
<echo message= " installer-linux32: ${tab}Create 32-bit Linux installer" />
<echo message= " installer-linux64: ${tab}Create 64-bit Linux installer" />
<echo message= " installer-osx: ${tab}Create 32- and 64-bit installers for OSX" />
<echo message= " installer-osx32: ${tab}Create 32-bit OSX installer" />
<echo message= " installer-osx64: ${tab}Create 64-bit OSX installer" />
<echo message= " installer-windows: ${tab}Create 32- and 64-bit installers for Windows, wrapped with launch4j (if available)" />
<echo message= "installer-windows32: ${tab}Create 32-bit Windows installer (add -exe to use launch4j, if available)" />
<echo message= "installer-windows64: ${tab}Create 64-bit Windows installer (add -exe to use launch4j, if available)" />
<echo message= " pkg-all: ${tab}Create installers and packages for all supported systems" />
<echo message= " pkg-osx: ${tab}Create 32- and 64-bit Application Bundles for OSX" />
<echo message= " pkg-osx32: ${tab}Create 32-bit OSX Application Bundle" />
<echo message= " pkg-osx64: ${tab}Create 64-bit OSX Application Bundle" />
<echo message= " plugin: ${tab}Create signed I2P plugins for all supported systems" />
<echo message= " release: ${tab}Create all pkgs/installers with the "pkg-all" target, sign with gpg, generate sha256 checksum files, and update files in doc/web" />
<echo message= " source-tarball: ${tab}Create source tarball" />
<echo message= " totallyclean: ${tab}Clean up all generated files and any files downloaded during the build (e.g. SWT)" />
2013-01-08 12:40:40 +00:00
</target>
2013-01-09 02:36:17 +00:00
2013-01-09 23:51:38 +00:00
<macrodef name= "make-stub-jar" >
2013-01-10 15:33:00 +00:00
<attribute name= "name" default= "" />
2013-01-09 23:51:38 +00:00
<attribute name= "type-class" />
<attribute name= "additional" default= "" />
<sequential >
2013-01-10 15:33:00 +00:00
<jar destfile= "${pkgtemp.dir}/bin/syndie@{name}.jar" >
2013-01-09 23:51:38 +00:00
<manifest >
<attribute name= "Main-Class" value= "@{type-class}" />
2013-01-10 15:33:00 +00:00
<attribute name= "Class-Path" value= "../lib/i2p.jar ../lib/hsqldb.jar ../lib/syndie.jar @{additional}" />
2016-06-16 13:23:12 +00:00
<attribute name= "Built-By" value= "${build.built-by}" />
2013-01-09 23:51:38 +00:00
<attribute name= "Build-Date" value= "${build.timestamp}" />
<attribute name= "Base-Revision" value= "${workspace.version}" />
</manifest>
</jar>
</sequential>
</macrodef>
2016-10-19 19:05:48 +00:00
<macrodef name= "make-stub-jar-debian" >
<attribute name= "name" default= "" />
<attribute name= "type-class" />
<attribute name= "additional" default= "" />
<sequential >
<jar destfile= "${pkgtemp.dir}/bin/syndie@{name}.jar" >
<manifest >
<attribute name= "Main-Class" value= "@{type-class}" />
<attribute name= "Class-Path" value= "${i2p.jar} ${hsqldb.jar} /usr/share/syndie/syndie.jar @{additional}" />
<attribute name= "Built-By" value= "${build.built-by}" />
<attribute name= "Build-Date" value= "${build.timestamp}" />
<attribute name= "Base-Revision" value= "${workspace.version}" />
</manifest>
</jar>
</sequential>
</macrodef>
2013-02-03 04:07:40 +00:00
<macrodef name= "repack" >
<attribute name= "jarname" />
<sequential >
<fail unless= "pack200.available" > Pack200 not found!</fail>
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-r" />
<arg value= "@{jarname}" />
</exec>
</sequential>
</macrodef>
2013-01-09 23:51:38 +00:00
<macrodef name= "wrap-to-exe" >
2013-01-10 15:33:00 +00:00
<attribute name= "type" default= "" />
2013-01-09 23:51:38 +00:00
<sequential >
<local name= "launch4j.config" />
<tempfile property= "launch4j.config" deleteonexit= "true" />
2013-01-10 00:07:22 +00:00
<fail unless= "launch4j.available" > Specify the location of the Launch4J installation directory with -Dlaunch4j.dir=/some/path/to/launch4j.jar</fail>
2013-01-09 23:51:38 +00:00
<taskdef name= "launch4j" classpath= "${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar"
classname="net.sf.launch4j.ant.Launch4jTask" />
<echo file= "${launch4j.config}" > < ![CDATA[
<launch4jConfig >
<headerType > 0</headerType>
2013-01-10 15:33:00 +00:00
<jar > ${pkgtemp.dir}/bin/syndie@{type}.jar</jar>
<outfile > ${pkgtemp.dir}/bin/syndie@{type}.exe</outfile>
2013-01-09 23:51:38 +00:00
<errTitle > Syndie-@{type}</errTitle>
<chdir > .</chdir>
<icon > doc/web/favicon.ico</icon>
2013-02-02 15:20:11 +00:00
<jre > <minVersion > 1.6.0</minVersion> </jre>
2013-01-09 23:51:38 +00:00
<versionInfo >
<fileVersion > 0.0.0.0</fileVersion>
<productVersion > 0.0.0.0</productVersion>
<txtFileVersion > syndie-@{type}-${full.version}</txtFileVersion>
<txtProductVersion > ${full.version}</txtProductVersion>
<fileDescription > Syndie @{type} Launcher</fileDescription>
<copyright > copyright is theft</copyright>
<productName > Syndie ${full.version}</productName>
<internalName > syndie</internalName>
2013-01-10 15:33:00 +00:00
<originalFilename > syndie@{type}.exe</originalFilename>
2013-01-09 23:51:38 +00:00
</versionInfo>
</launch4jConfig>
]]></echo>
<launch4j configFile= "${launch4j.config}" />
</sequential>
</macrodef>
2013-01-10 15:33:00 +00:00
<macrodef name= "wrap-installer" >
<attribute name= "bits" />
<sequential >
<local name= "launch4j.config" />
<tempfile property= "launch4j.config" deleteonexit= "true" />
<fail unless= "launch4j.available" > Specify the location of the Launch4J installation directory with -Dlaunch4j.dir=/some/path/to/launch4j.jar</fail>
<taskdef name= "launch4j" classpath= "${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar"
classname="net.sf.launch4j.ant.Launch4jTask" />
<echo file= "${launch4j.config}" > < ![CDATA[
<launch4jConfig >
<headerType > 0</headerType>
2013-02-03 19:10:12 +00:00
<jar > syndie-installer-${syndie.release.version}.bin.win@{bits}.jar</jar>
<outfile > syndie-installer-${syndie.release.version}.bin.win@{bits}.exe</outfile>
2013-01-10 15:33:00 +00:00
<errTitle > Syndie ${full.version} installer</errTitle>
<chdir > .</chdir>
<icon > doc/web/favicon.ico</icon>
2013-02-02 15:20:11 +00:00
<jre > <minVersion > 1.6.0</minVersion> </jre>
2013-01-10 15:33:00 +00:00
<versionInfo >
<fileVersion > 0.0.0.0</fileVersion>
<productVersion > 0.0.0.0</productVersion>
<txtFileVersion > syndie-${full.version} Windows @{bit}bit</txtFileVersion>
<txtProductVersion > ${full.version}</txtProductVersion>
<fileDescription > Syndie ${full.version} Installation Launcher</fileDescription>
<copyright > copyright is theft</copyright>
<productName > Syndie ${full.version}</productName>
<internalName > syndie</internalName>
<originalFilename > syndie-installer-${full.version}.bin.win@{bits}.exe</originalFilename>
</versionInfo>
</launch4jConfig>
]]></echo>
<launch4j configFile= "${launch4j.config}" />
2013-02-03 19:10:12 +00:00
<delete file= "syndie-installer-${syndie.release.version}.bin.win@{bits}.jar" />
2013-01-10 15:33:00 +00:00
</sequential>
</macrodef>
2013-01-25 21:24:48 +00:00
<macrodef name= "sign-and-sum" >
<attribute name= "file" />
<sequential >
<exec executable= "gpg" failonerror= "true" >
<arg value= "-b" />
<arg value= "-u" />
2016-06-16 13:23:12 +00:00
<arg value= "${release.gpg.keyid}" />
2013-01-25 21:24:48 +00:00
<arg value= "@{file}" />
</exec>
<checksum format= "MD5SUM" file= "@{file}" algorithm= "sha-256" fileext= ".sha256" />
</sequential>
</macrodef>
2013-02-03 04:45:36 +00:00
<macrodef name= "make-torrent" >
<attribute name= "file" />
<sequential >
<java classname= "org.klomp.snark.Storage" fork= "false" failonerror= "true" >
<classpath >
<pathelement location= "${i2p.jar}" />
<pathelement location= "${i2psnark.jar}" />
</classpath>
2016-06-16 13:23:12 +00:00
<arg value= "-a" />
2013-02-03 04:45:36 +00:00
<arg value= "http://tracker2.postman.i2p/announce.php" />
2016-06-16 13:23:12 +00:00
<arg value= "@{file}" />
2013-02-03 04:45:36 +00:00
</java>
</sequential>
</macrodef>
2013-01-10 15:33:00 +00:00
<macrodef name= "build-installer" >
<attribute name= "os" />
<attribute name= "swt" />
<attribute name= "arch" />
<sequential >
<taskdef name= "izpack" classpath= "build/izpackpatch.jar:${izpack.dir}/standalone-compiler.jar"
classname="com.izforge.izpack.ant.IzPackTask" />
<jar destfile= "build/izpackpatch.jar"
basedir="resources/izpack/patches" />
<delete file= "${pkgtemp.dir}/lib/swt.jar" />
2016-06-16 13:23:12 +00:00
<copy file= "${i2p.src.dir}/installer/resources/i2plogo.png" tofile= "resources/i2plogo.png" />
2013-01-13 18:45:51 +00:00
<copy file= "resources/uninstall.ico" todir= "${pkgtemp.dir}/doc/Uninstaller" />
2013-01-10 15:33:00 +00:00
<copy tofile= "${pkgtemp.dir}/lib/swt.jar" file= "@{swt}" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-swt" />
2013-02-03 19:10:12 +00:00
<izpack output= "syndie-installer-${syndie.release.version}.bin.@{os}@{arch}.jar"
2013-01-10 15:33:00 +00:00
installerType="standard"
basedir="."
izPackDir="${izpack.dir}/">
<config > < ![CDATA[
<installation version= "1.0" >
<info >
2013-02-03 04:57:24 +00:00
<!-- <pack200/> -->
2013-01-10 15:33:00 +00:00
<appname > Syndie</appname>
<appversion > @{full.version}</appversion>
<appsubpath > syndie</appsubpath>
<authors >
<author name= "Syndie development team" email= "http://syndie.i2p2.de" />
</authors>
<url > http://syndie.i2p2.de</url>
2013-02-02 15:20:11 +00:00
<javaversion > 1.6</javaversion>
2013-01-10 15:33:00 +00:00
<summarylogfilepath > $INSTALL_PATH/install.log</summarylogfilepath>
<run-privileged condition= "izpack.windowsinstall.vista|izpack.windowsinstall.7" />
</info>
<variables >
<variable name= "desktopshortcutcheckboxenabled" value= "true" />
</variables>
<guiprefs width= "590" height= "356" resizable= "yes" >
2016-06-16 13:23:12 +00:00
<!--
2013-01-15 19:06:50 +00:00
<modifier key= "labelFontSize" value= "1.2" />
2016-06-16 13:23:12 +00:00
-->
2013-01-10 15:33:00 +00:00
<laf name= "liquid" >
<os family= "unix" />
</laf>
<modifier key= "langDisplayType" value= "native" />
</guiprefs>
<locale >
<langpack iso3= "eng" />
<langpack iso3= "cat" />
<langpack iso3= "chn" />
<langpack iso3= "cze" />
<langpack iso3= "dan" />
<langpack iso3= "deu" />
<langpack iso3= "ell" />
<langpack iso3= "fa" />
<langpack iso3= "fin" />
<langpack iso3= "fra" />
<langpack iso3= "glg" />
<langpack iso3= "hun" />
<langpack iso3= "ind" />
<langpack iso3= "ita" />
<langpack iso3= "jpn" />
<langpack iso3= "kor" />
<langpack iso3= "mys" />
<langpack iso3= "ned" />
<langpack iso3= "nor" />
<langpack iso3= "pol" />
<langpack iso3= "por" />
<langpack iso3= "rom" />
<langpack iso3= "rus" />
<langpack iso3= "scg" />
<langpack iso3= "spa" />
<langpack iso3= "svk" />
<langpack iso3= "swe" />
<langpack iso3= "tur" />
<langpack iso3= "twn" />
<langpack iso3= "ukr" />
</locale>
<native type= "izpack" name= "ShellLink.dll" />
<native type= "izpack" name= "ShellLink_x64.dll" />
<resources >
2016-06-16 13:23:12 +00:00
<res id= "Installer.image" src= "resources/i2plogo.png" />
2013-01-10 15:33:00 +00:00
<res id= "shortcutSpec.xml" src= "resources/Win_shortcutSpec.xml" />
<res id= "Unix_shortcutSpec.xml" src= "resources/Unix_shortcutSpec.xml" />
</resources>
<panels >
<panel classname= "HelloPanel" />
<panel classname= "TargetPanel" />
<panel classname= "SummaryPanel" />
<panel classname= "InstallPanel" />
2016-06-16 13:23:12 +00:00
<panel classname= "ShortcutPanel" > <os family= "windows" /> </panel>
2013-01-10 15:33:00 +00:00
<panel classname= "SimpleFinishPanel" />
</panels>
<packs >
<pack name= "Base" required= "yes" >
<description > Base installation files</description>
<fileset dir= "pkg-temp" includes= "**/*" targetdir= "$INSTALL_PATH" />
2013-01-13 18:45:51 +00:00
<!-- Windows stub EXEs -->
2013-01-10 15:33:00 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie.exe" type= "bin" stage= "never" keep= "true" failure= "warn" >
<os family= "windows" />
</executable>
<executable targetfile= "$INSTALL_PATH/bin/syndie-desktop.exe" type= "bin" stage= "never" keep= "true" failure= "warn" >
<os family= "windows" />
</executable>
2013-01-15 19:06:50 +00:00
<!-- substitute variables in the Linux scripts -->
<parsable targetfile= "$INSTALL_PATH/bin/syndie-cli.sh" type= "shell" failure= "warn" >
<os name= "Linux" />
</parsable>
<parsable targetfile= "$INSTALL_PATH/bin/syndie.sh" type= "shell" failure= "warn" >
<os name= "Linux" />
</parsable>
<parsable targetfile= "$INSTALL_PATH/bin/syndie-desktop.sh" type= "shell" failure= "warn" >
<os name= "Linux" />
</parsable>
<!-- set Linux scripts to be executable -->
<executable targetfile= "$INSTALL_PATH/bin/syndie-desktop.sh" type= "shell" stage= "never" keep= "true" failure= "warn" >
<os name= "Linux" />
2013-01-10 15:33:00 +00:00
</executable>
2013-01-15 19:06:50 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie-cli.sh" type= "shell" stage= "never" keep= "true" failure= "warn" >
<os name= "Linux" />
2013-01-10 15:33:00 +00:00
</executable>
2013-01-15 19:06:50 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie.sh" type= "shell" stage= "never" keep= "true" failure= "warn" >
<os name= "Linux" />
2013-01-13 18:45:51 +00:00
</executable>
2013-01-15 19:06:50 +00:00
<!-- substitute variables in the OSX scripts -->
<parsable targetfile= "$INSTALL_PATH/bin/syndie.command" type= "shell" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-15 19:06:50 +00:00
</parsable>
<parsable targetfile= "$INSTALL_PATH/bin/syndie-cli.sh" type= "shell" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-13 18:45:51 +00:00
</parsable>
2013-01-15 19:06:50 +00:00
<parsable targetfile= "$INSTALL_PATH/bin/syndie-desktop.command" type= "shell" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-13 18:45:51 +00:00
</parsable>
<!-- set OSX scripts to be executable -->
2013-01-15 19:06:50 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie.command" type= "shell" stage= "never" keep= "true" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-13 18:45:51 +00:00
</executable>
2013-01-15 19:06:50 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie-cli.sh" type= "shell" stage= "never" keep= "true" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-13 18:45:51 +00:00
</executable>
2013-01-15 19:06:50 +00:00
<executable targetfile= "$INSTALL_PATH/bin/syndie-desktop.command" type= "shell" stage= "never" keep= "true" failure= "warn" >
2013-02-13 23:36:32 +00:00
<os family= "mac" />
2013-01-10 15:33:00 +00:00
</executable>
</pack>
</packs>
</installation>
]]></config>
</izpack>
</sequential>
</macrodef>
2013-01-04 21:08:25 +00:00
<target name= "init" depends= "buildProperties" >
2013-01-11 18:59:32 +00:00
<!-- abort the build right away in case deps cannot be found -->
<available property= "have.i2p" file= "${i2p.jar}" type= "file" />
<fail message= "Cannot find ${i2p.jar}. Please read INSTALL and build.properties for advice." >
<condition >
<not >
<istrue value= "${have.i2p}" />
</not>
</condition>
</fail>
<available property= "have.hsqldb" file= "${hsqldb.jar}" type= "file" />
<fail message= "Cannot find ${hsqldb.jar}. Please read INSTALL and build.properties for advice." >
<condition >
<not >
<istrue value= "${have.hsqldb}" />
</not>
</condition>
</fail>
2009-05-28 21:28:37 +00:00
<mkdir dir= "${dist.dir}" />
2013-01-09 23:51:38 +00:00
<mkdir dir= "${build.dir}/obj" />
2013-01-25 21:24:48 +00:00
<mkdir dir= "${build.dir}/cli-obj" />
2009-05-28 21:28:37 +00:00
</target>
2012-06-03 01:00:56 +00:00
2013-01-07 11:50:55 +00:00
<condition property= "depend.available" >
<typefound name= "depend" />
</condition>
2013-01-11 12:31:08 +00:00
<target name= "-depend" if= "depend.available" >
2013-01-07 11:50:55 +00:00
<depend
cache="builddep"
2013-01-07 14:40:19 +00:00
srcdir="src"
2013-01-09 23:51:38 +00:00
destdir="${build.dir}/obj">
2013-01-07 11:50:55 +00:00
<classpath >
<path refid= "classpath.build" />
</classpath>
</depend>
</target>
2013-01-11 12:31:08 +00:00
<target name= "compile" depends= "init, -depend" description= "compile the source" >
2013-01-25 21:24:48 +00:00
<available property= "have.swt" file= "${swt.jar}" type= "file" />
<fail message= "Cannot find ${swt.jar}. Please read INSTALL and build.properties for advice." >
<condition >
<not >
<istrue value= "${have.swt}" />
</not>
</condition>
</fail>
2016-06-12 15:30:28 +00:00
<javac srcdir= "${src.dir}" destdir= "${build.dir}/obj" debug= "true" source= "${javac.version}" target= "${javac.version}"
2013-01-07 19:13:54 +00:00
deprecation="on" includeAntRuntime="false">
2016-06-12 15:30:28 +00:00
<compilerarg line= "${javac.compilerargs}" />
2009-05-28 21:28:37 +00:00
<classpath >
<path refid= "classpath.build" />
</classpath>
</javac>
</target>
2012-06-03 01:00:56 +00:00
2013-01-25 21:24:48 +00:00
<target name= "compile-cli" depends= "init" description= "compile just the cli" >
<delete dir= "${build.dir}/cli-obj" />
<mkdir dir= "${build.dir}/cli-obj" />
2016-06-12 15:30:28 +00:00
<javac srcdir= "${src.dir}" destdir= "${build.dir}/cli-obj" debug= "true" source= "${javac.version}" target= "${javac.version}"
2013-01-25 21:24:48 +00:00
excludes="syndie/gui/** syndie/trac/** com/** syndie/locale/** imports/Browser/** imports/DesktopUI/**"
deprecation="on" includeAntRuntime="false">
2016-06-12 15:30:28 +00:00
<compilerarg line= "${javac.compilerargs}" />
2013-01-25 21:24:48 +00:00
<classpath >
<pathelement location= "${i2p.jar}" />
<pathelement location= "${hsqldb.jar}" />
</classpath>
</javac>
</target>
2013-01-19 15:42:31 +00:00
<target name= "bundle" depends= "compile" description= "process the translations" unless= "no.bundle" >
2016-06-12 15:30:28 +00:00
<mkdir dir= "build/messages-src" />
2013-01-10 13:58:44 +00:00
<!-- Update the messages_*.po files -->
<exec executable= "sh" osfamily= "unix" failifexecutionfails= "true" failonerror= "${require.gettext}" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
</exec>
<exec executable= "sh" osfamily= "mac" failifexecutionfails= "true" failonerror= "${require.gettext}" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
</exec>
<exec executable= "sh" osfamily= "windows" failifexecutionfails= "false" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
</exec>
2016-06-12 15:30:28 +00:00
<javac source= "${javac.version}" target= "${javac.version}"
includeAntRuntime="false"
srcdir="build/messages-src" destdir="build/obj">
<compilerarg line= "${javac.compilerargs}" />
</javac>
2013-01-10 13:58:44 +00:00
</target>
<target name= "poupdate" depends= "compile" description= "generate the translation files" >
<!-- Update the messages_*.po files. -->
<exec executable= "sh" osfamily= "unix" failifexecutionfails= "true" failonerror= "true" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
<arg value= "-p" />
</exec>
<exec executable= "sh" osfamily= "mac" failifexecutionfails= "true" failonerror= "true" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
<arg value= "-p" />
</exec>
<exec executable= "sh" osfamily= "windows" failifexecutionfails= "true" failonerror= "true" >
2016-06-16 14:41:03 +00:00
<arg value= "scripts/bundle-messages.sh" />
2013-01-10 13:58:44 +00:00
<arg value= "-p" />
</exec>
</target>
<target name= "jar" depends= "compile, bundle" description= "Build jar in ./build" >
2013-01-08 01:25:33 +00:00
<property name= "build.built-by" value= "unknown" />
2013-01-09 23:51:38 +00:00
<jar jarfile= "${build.dir}/syndie.jar" >
<fileset dir= "${build.dir}/obj" />
2013-01-07 11:50:55 +00:00
<path refid= "resources.path" />
2013-01-08 01:25:33 +00:00
<manifest >
<attribute name= "Built-By" value= "${build.built-by}" />
<attribute name= "Build-Date" value= "${build.timestamp}" />
<attribute name= "Base-revision" value= "${workspace.version}" />
</manifest>
2013-01-07 11:50:55 +00:00
</jar>
2009-05-28 21:28:37 +00:00
</target>
2009-05-23 18:41:24 +00:00
2016-10-19 19:05:48 +00:00
<!-- note hardcoded hsqldb path, won't work for debian -->
2013-01-25 21:24:48 +00:00
<target name= "jar-cli" depends= "compile-cli" description= "Build jar with only the cli in ./build" >
2013-01-10 15:33:00 +00:00
<property name= "build.built-by" value= "unknown" />
<jar jarfile= "${build.dir}/syndie-cli.jar" >
2013-01-25 21:24:48 +00:00
<fileset dir= "${build.dir}/cli-obj" />
<path refid= "cli.resources.path" />
2013-01-10 15:33:00 +00:00
<manifest >
<attribute name= "Class-Path" value= "../lib/i2p.jar ../lib/hsqldb.jar" />
<attribute name= "Built-By" value= "${build.built-by}" />
<attribute name= "Build-Date" value= "${build.timestamp}" />
<attribute name= "Base-revision" value= "${workspace.version}" />
<attribute name= "Main-Class" value= "syndie.db.TextUI" />
</manifest>
</jar>
</target>
2013-01-25 21:24:48 +00:00
<target name= "dist" depends= "pkg" />
<target name= "singlejar" depends= "jar" description= "Combine all jars" >
2013-01-10 15:33:00 +00:00
<copy file= "${swt.jar}" tofile= "${pkgtemp.lib}/swt.jar" />
2013-01-09 23:51:38 +00:00
<copy file= "${i2p.jar}" todir= "${pkgtemp.lib}" />
<copy file= "${hsqldb.jar}" todir= "${pkgtemp.lib}" />
2009-05-28 21:28:37 +00:00
<jar jarfile= "syndie.jar" index= "true" >
<manifest >
<attribute name= "Main-Class" value= "syndie.gui.SWTUI" />
2013-01-08 01:25:33 +00:00
<attribute name= "Built-By" value= "${build.built-by}" />
<attribute name= "Build-Date" value= "${build.timestamp}" />
<attribute name= "Base-revision" value= "${workspace.version}" />
2009-05-28 21:28:37 +00:00
</manifest>
2013-01-09 23:51:38 +00:00
<zipfileset src= "${build.dir}/syndie.jar" includes= "**" />
<zipgroupfileset dir= "${pkgtemp.lib}" includes= "*.jar" />
2009-05-28 21:28:37 +00:00
</jar>
</target>
2012-06-03 01:00:56 +00:00
2013-01-08 11:55:05 +00:00
<target name= "run" depends= "jar" description= "run Syndie with the 'Tabs' interface" >
2009-05-28 21:28:37 +00:00
<condition property= "run.args" value= "" >
<not >
<isset property= "run.args" />
</not>
</condition>
2013-01-08 01:25:33 +00:00
<echo message= "Running Syndie with args ${run.args}" />
2009-05-28 21:28:37 +00:00
<java classname= "syndie.gui.SWTUI" fork= "true" failonerror= "false" >
<arg line= "${run.args}" />
<classpath >
<path refid= "classpath.run" />
</classpath>
</java>
</target>
2012-06-03 01:00:56 +00:00
2013-01-08 11:55:05 +00:00
<target name= "run-desktop" depends= "jar" description= "run Syndie with the 'Desktop' interface" >
<condition property= "run.args" value= "" >
<not >
<isset property= "run.args" />
</not>
</condition>
<echo message= "Running Syndie with args ${run.args}" />
<java classname= "syndie.gui.desktop.DesktopMain" fork= "true" failonerror= "false" >
<arg line= "${run.args}" />
<classpath >
<path refid= "classpath.run" />
</classpath>
</java>
</target>
2013-01-10 15:33:00 +00:00
<target name= "-check-for-izpack" >
<available property= "found.izpack" file= "${izpack.dir}/standalone-compiler.jar" type= "file" />
<fail unless= "found.izpack" > The installer targets require izpack! Specify -Dizpack.dir=/path/to/standalone-compiler.jar</fail>
</target>
2013-01-10 00:07:22 +00:00
<target name= "-check-launch4j" if= "launch4j.available" description= "Check if this system can run launch4j" >
2013-01-09 23:51:38 +00:00
<condition property= "can.create.exe" >
<and >
<or >
<os arch= "x86" />
<os arch= "i386" />
2013-01-11 12:31:08 +00:00
<os arch= "i586" />
<os arch= "i686" />
<os arch= "amd64" />
2013-01-09 23:51:38 +00:00
<os arch= "x86_64" />
</or>
<or >
<os name= "Linux" />
<os family= "windows" />
</or>
</and>
</condition>
</target>
2013-01-11 12:31:08 +00:00
<target name= "jars2exe" if= "can.create.exe" unless= "no.exe" depends= "-check-launch4j, stub-jars" description= "Wrap jar files into EXEs" >
2013-01-10 15:33:00 +00:00
<wrap-to-exe type= "-desktop" />
<wrap-to-exe />
2013-01-09 23:51:38 +00:00
</target>
2013-01-07 19:13:54 +00:00
<target name= "plugin" depends= "buildProperties, jar" >
2010-03-02 00:09:09 +00:00
<mkdir dir= "plugin/lib" />
<buildnumber file= "scripts/build.number" />
2016-06-14 16:03:15 +00:00
<!-- make the update xpi2p and su3 files, both 32 and 64 bit -->
2013-01-11 22:01:05 +00:00
2010-03-03 00:20:57 +00:00
<delete file= "plugin/lib/hsqldb.jar.pack" />
<delete file= "plugin/lib/swt.jar.pack" />
2010-03-02 00:09:09 +00:00
<copy file= "LICENSE" todir= "plugin" />
2011-05-30 16:16:29 +00:00
<copy file= "src/com/LICENSE.txt" tofile= "plugin/LICENSE-jazzy.txt" />
2013-01-23 23:58:40 +00:00
<copy file= "LICENSE-EPL-v1.0.html" todir= "plugin" />
2013-02-02 15:20:11 +00:00
<copy file= "lib/hsqldb_lic.txt" todir= "plugin" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-linux32.config" tofile= "plugin/plugin.config" overwrite= "true" />
2010-03-03 00:20:57 +00:00
<copy file= "scripts/clients-linux.config" tofile= "plugin/clients.config" overwrite= "true" />
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2013-01-07 19:13:54 +00:00
<arg value= "version=${full.version}-b${build.number}" />
2010-03-02 00:09:09 +00:00
</exec>
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2010-03-02 00:09:09 +00:00
<arg value= "update-only=true" />
</exec>
2013-01-11 22:01:05 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
2010-03-02 00:09:09 +00:00
<arg value= "-g" />
<arg value= "plugin/lib/syndie.jar.pack" />
2013-01-09 23:51:38 +00:00
<arg value= "${build.dir}/syndie.jar" />
2010-03-02 00:09:09 +00:00
</exec>
2013-02-02 15:20:11 +00:00
<!-- include hsqldb.jar in the updater now -->
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/hsqldb.jar.pack" />
<arg value= "${hsqldb.jar}" />
</exec>
2016-06-13 14:52:10 +00:00
<input message= "Enter su3 signing key password:" addproperty= "release.password.su3" />
<fail message= "You must enter a password." >
<condition >
<equals arg1= "${release.password.su3}" arg2= "" />
</condition>
</fail>
2016-06-14 16:03:15 +00:00
<!-- make the linux update xpi2p and su3 files, 32 bit, no SWT -->
2016-06-13 14:52:10 +00:00
<!-- this will fail if no su3 keys exist, as it needs the password twice -->
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2010-03-02 00:09:09 +00:00
<arg value= "plugin" />
</exec>
2010-03-03 00:20:57 +00:00
<move file= "syndie.xpi2p" tofile= "syndie-linux-i386-update.xpi2p" />
2016-06-14 16:03:15 +00:00
<move file= "syndie.su3" tofile= "syndie-linux-i386-update.su3" />
<!-- make the linux update xpi2p and su3 files, 64 bit, with SWT -->
2016-06-13 16:27:14 +00:00
<!--
- These will not be used until the next update.
2016-06-14 16:03:15 +00:00
- We put an updated swt.jar in the 64-bit updates,
2016-06-13 16:27:14 +00:00
- but NOT the 32-bit one, since old 64-bit linux and mac installs
- will point to the 32-bit linux update.
-->
2016-06-14 16:03:15 +00:00
<copy file= "scripts/plugin-linux64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "update-only=true" />
</exec>
<ant dir= "swt" target= "ensure-lin64-swt" />
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
<arg value= "${swt.lin64}" />
</exec>
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-linux-x86-64-update.xpi2p" />
<move file= "syndie.su3" tofile= "syndie-linux-x86-64-update.su3" />
2010-03-03 00:20:57 +00:00
2016-06-14 16:03:15 +00:00
<!-- make the mac update xpi2p and su3 files, 64 bit, with SWT -->
<copy file= "scripts/plugin-mac64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "update-only=true" />
</exec>
<ant dir= "swt" target= "ensure-mac64-swt" />
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
<arg value= "${swt.mac64}" />
</exec>
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-mac64-update.xpi2p" />
<move file= "syndie.su3" tofile= "syndie-mac64-update.su3" />
<!-- make the windows update xpi2p, 32 bit, no SWT -->
<delete file= "plugin/lib/swt.jar.pack" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-windows32.config" tofile= "plugin/plugin.config" overwrite= "true" />
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2013-01-27 17:42:16 +00:00
<arg value= "version=${full.version}-b${build.number}" />
2010-03-03 00:20:57 +00:00
</exec>
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2010-03-03 00:20:57 +00:00
<arg value= "update-only=true" />
</exec>
<copy file= "scripts/clients-windows.config" tofile= "plugin/clients.config" overwrite= "true" />
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2010-03-03 00:20:57 +00:00
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-win32-update.xpi2p" />
2016-06-14 16:03:15 +00:00
<move file= "syndie.su3" tofile= "syndie-win32-update.su3" />
<!-- make the windows update xpi2p, 64 bit, with SWT -->
2016-06-13 16:27:14 +00:00
<!--
- These will not be used until the next update.
2016-06-14 16:03:15 +00:00
- We put an updated swt.jar in the 64-bit updates,
2016-06-13 16:27:14 +00:00
- but NOT the 32-bit one, since old 64-bit windows installs
- will point to the 32-bit update.
-->
2016-06-14 16:03:15 +00:00
<copy file= "scripts/plugin-windows64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "update-only=true" />
</exec>
<ant dir= "swt" target= "ensure-mac64-swt" />
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
<arg value= "${swt.mac64}" />
</exec>
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-win64-update.xpi2p" />
<move file= "syndie.su3" tofile= "syndie-win64-update.su3" />
<!-- Make install xpi2p/su3 -->
2010-03-02 00:09:09 +00:00
2016-06-14 16:03:15 +00:00
<!-- make the 32 bit linux install xpi2p/su3 -->
2013-01-23 13:22:21 +00:00
<ant dir= "swt" target= "ensure-lin32-swt" />
2010-03-05 18:39:14 +00:00
<copy file= "scripts/LICENSE-swt.txt" todir= "plugin" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-linux32.config" tofile= "plugin/plugin.config" overwrite= "true" />
2010-03-03 00:20:57 +00:00
<copy file= "scripts/clients-linux.config" tofile= "plugin/clients.config" overwrite= "true" />
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2013-01-27 17:42:16 +00:00
<arg value= "version=${full.version}-b${build.number}" />
2010-03-02 00:09:09 +00:00
</exec>
2013-01-11 22:01:05 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
2010-03-02 00:09:09 +00:00
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
2013-01-11 22:01:05 +00:00
<arg value= "${swt.lin32}" />
2010-03-02 00:09:09 +00:00
</exec>
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2010-03-02 00:09:09 +00:00
<arg value= "plugin" />
</exec>
2010-03-03 00:20:57 +00:00
<move file= "syndie.xpi2p" tofile= "syndie-linux-i386.xpi2p" />
2016-06-13 14:52:10 +00:00
<move file= "syndie.su3" tofile= "syndie-linux-i386.su3" />
2010-03-03 00:20:57 +00:00
2016-06-14 16:03:15 +00:00
<!-- make the 64 bit linux install xpi2p/su3 -->
2013-01-23 13:22:21 +00:00
<ant dir= "swt" target= "ensure-lin64-swt" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-linux64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
2013-01-11 22:01:05 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
2010-03-08 01:31:12 +00:00
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
2013-01-11 22:01:05 +00:00
<arg value= "${swt.lin64}" />
2010-03-08 01:31:12 +00:00
</exec>
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2010-03-08 01:31:12 +00:00
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-linux-x86-64.xpi2p" />
2016-06-13 14:52:10 +00:00
<move file= "syndie.su3" tofile= "syndie-linux-x86-64.su3" />
2010-03-08 01:31:12 +00:00
2016-06-13 16:27:14 +00:00
<!-- macs use the linux clients config file -->
2016-06-14 16:03:15 +00:00
<!-- make the 64 bit mac install xpi2p/su3 -->
2013-01-23 13:22:21 +00:00
<ant dir= "swt" target= "ensure-mac64-swt" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-mac64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
2013-01-23 13:22:21 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
<arg value= "${swt.mac64}" />
</exec>
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2013-01-23 13:22:21 +00:00
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-mac64.xpi2p" />
2016-06-13 14:52:10 +00:00
<move file= "syndie.su3" tofile= "syndie-mac64.su3" />
2013-01-23 13:22:21 +00:00
2016-06-14 16:03:15 +00:00
<!-- make the 32 bit windows install xpi2p/su3 -->
2013-01-23 13:22:21 +00:00
<ant dir= "swt" target= "ensure-win32-swt" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-windows32.config" tofile= "plugin/plugin.config" overwrite= "true" />
2010-03-03 00:20:57 +00:00
<copy file= "scripts/clients-windows.config" tofile= "plugin/clients.config" overwrite= "true" />
2010-03-21 15:47:11 +00:00
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
2013-01-27 17:42:16 +00:00
<arg value= "version=${full.version}-b${build.number}" />
2010-03-03 00:20:57 +00:00
</exec>
2013-01-11 22:01:05 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
2010-03-03 00:20:57 +00:00
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
2013-01-11 22:01:05 +00:00
<arg value= "${swt.win32}" />
2010-03-03 00:20:57 +00:00
</exec>
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2010-03-03 00:20:57 +00:00
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-win32.xpi2p" />
2016-06-13 14:52:10 +00:00
<move file= "syndie.su3" tofile= "syndie-win32.su3" />
2010-03-03 00:20:57 +00:00
2016-06-14 16:03:15 +00:00
<!-- make the 64 bit windows install xpi2p/su3 -->
2013-01-23 13:22:21 +00:00
<ant dir= "swt" target= "ensure-win64-swt" />
2016-06-13 16:27:14 +00:00
<copy file= "scripts/plugin-windows64.config" tofile= "plugin/plugin.config" overwrite= "true" />
<exec executable= "echo" osfamily= "unix" failonerror= "true" output= "plugin/plugin.config" append= "true" >
<arg value= "version=${full.version}-b${build.number}" />
</exec>
2013-01-23 13:22:21 +00:00
<exec executable= "${java.home}/bin/pack200" failonerror= "true" >
<arg value= "-g" />
<arg value= "plugin/lib/swt.jar.pack" />
<arg value= "${swt.win64}" />
</exec>
2016-06-13 14:52:10 +00:00
<exec executable= "scripts/makeplugin.sh" inputstring= "${release.password.su3}" failonerror= "true" >
2013-01-23 13:22:21 +00:00
<arg value= "plugin" />
</exec>
<move file= "syndie.xpi2p" tofile= "syndie-win64.xpi2p" />
2016-06-13 14:52:10 +00:00
<move file= "syndie.su3" tofile= "syndie-win64.su3" />
2013-01-23 13:22:21 +00:00
2010-03-02 00:09:09 +00:00
</target>
2012-06-03 01:00:56 +00:00
2013-01-09 23:51:38 +00:00
<target name= "-checkForMtn" >
2013-01-04 21:08:25 +00:00
<available property= "mtn.available" file= "_MTN" type= "dir" />
</target>
2013-01-11 12:31:08 +00:00
<target name= "-getMtnRev" depends= "-checkForMtn" if= "mtn.available" >
2013-01-07 19:13:54 +00:00
<exec executable= "mtn" outputproperty= "workspace.version" errorproperty= "mtn.error1" failifexecutionfails= "false" >
2013-01-04 21:08:25 +00:00
<arg value= "automate" />
<arg value= "get_base_revision_id" />
</exec>
</target>
2013-01-13 18:45:51 +00:00
<target name= "buildProperties" depends= "-getMtnRev, -trimMtnRev, getReleaseNumber, getBuildNumber" >
2013-01-25 21:24:48 +00:00
<tstamp >
<format property= "build.timestamp" pattern= "yyyy-MM-dd HH:mm:ss z" timezone= "UTC" locale= "en" />
<format property= "files.date" pattern= "yyyy/MM/dd" timezone= "UTC" locale= "en" />
</tstamp>
2013-01-04 21:08:25 +00:00
<!-- default if not set above -->
<property name= "workspace.version" value= "unknown" />
2013-01-07 19:13:54 +00:00
<property name= "full.version" value= "${release.number}-${syndie.build.number}" />
2013-01-08 12:19:55 +00:00
<property name= "MtnShortHash" value= "unknown" />
2013-01-13 18:45:51 +00:00
<condition property= "extended.version" value= "${full.version}-${MtnShortHash}" >
2013-01-08 12:19:55 +00:00
<not >
<or >
<equals arg1= "${MtnShortHash}" arg2= "" />
<equals arg1= "${MtnShortHash}" arg2= "unknown" />
</or>
</not>
</condition>
<!-- if not set above we'll set it here -->
2013-01-13 18:45:51 +00:00
<property name= "extended.version" value= "${full.version}" />
2013-02-03 19:10:12 +00:00
<condition property= "syndie.release.version" value= "${extended.version}" >
<or >
<not >
<equals arg1= "${syndie.build.number}" arg2= "0" />
</not>
<isset property= "with.revision" />
</or>
</condition>
<!-- if not set above we'll set it here -->
<property name= "syndie.release.version" value= "${release.number}" />
<echo message= "Building version ${syndie.release.version} (mtn rev ${workspace.version})" />
2013-01-08 12:19:55 +00:00
</target>
2013-01-04 21:08:25 +00:00
2013-01-13 18:45:51 +00:00
<target name= "-trimMtnRev" if= "with.revision" description= "Shorten MTN rev ID" >
2013-01-08 12:19:55 +00:00
<script language= "javascript" >
< ![CDATA[
var MtnRev = project.getProperty("workspace.version");
if (MtnRev != 'unknown' & & MtnRev != null) {
echo = project.createTask("echo");
var MtnShortHash = MtnRev.substring(0,8);
project.setProperty("MtnShortHash", MtnShortHash);
echo.setMessage("Trimmed hash: " + MtnShortHash);
echo.perform();
} else {
project.setProperty("MtnShortHash", 'unknown');
}
]]>
</script>
</target>
<target name= "getReleaseNumber" description= "Extract the Release number from the source" >
2013-01-04 21:08:25 +00:00
<loadfile srcfile= "src/syndie/Version.java" property= "release.number" >
<filterchain >
<linecontains >
<contains value= "public static final String VERSION" />
</linecontains>
<tokenfilter >
2013-11-04 01:28:38 +00:00
<replaceregex pattern= '.*"([^"]+)-[0-9]+(?:-rc)?";' replace= "\1" flags= "gi" />
2013-01-04 21:08:25 +00:00
</tokenfilter>
<striplinebreaks />
<trim />
<ignoreblank />
</filterchain>
</loadfile>
<property name= "release.number" value= "unknown" />
<echo message= "Release number is ${release.number}" />
</target>
2013-01-06 15:44:26 +00:00
2013-01-08 12:19:55 +00:00
<target name= "getBuildNumber" description= "Extract the build number from the source" >
2013-01-07 19:13:54 +00:00
<loadfile srcfile= "src/syndie/Version.java" property= "syndie.build.number" >
<filterchain >
<linecontains >
<contains value= "public static final String VERSION" />
</linecontains>
<tokenfilter >
2013-11-04 01:38:01 +00:00
<replaceregex pattern= '.*"[^"]+(?:a|b|rc)?-([0-9]+(?:-rc)?)";' replace= "\1" flags= "gi" />
2013-01-07 19:13:54 +00:00
</tokenfilter>
<striplinebreaks />
<trim />
<ignoreblank />
</filterchain>
</loadfile>
<property name= "syndie.build.number" value= "unknown" />
<echo message= "Build number is ${syndie.build.number}" />
</target>
2013-01-11 12:31:08 +00:00
<target name= "stub-jars" depends= "jar, preppkg" description= "Create manifest-only jars for Syndie" >
2013-01-10 15:33:00 +00:00
<make-stub-jar name= "-desktop" additional= "../lib/swt.jar" type-class= "${desktop.class}" />
<make-stub-jar additional= "../lib/swt.jar" type-class= "${tabs.class}" />
<make-stub-jar name= "-cli" type-class= "${cli.class}" />
2013-01-09 23:51:38 +00:00
</target>
2016-10-19 19:05:48 +00:00
<!-- use this target from debian/rules -->
<target name= "stub-jars-debian" depends= "jar, preppkg-debian" description= "Create manifest-only jars for Syndie" >
<make-stub-jar-debian name= "-desktop" additional= "${swt.jar}" type-class= "${desktop.class}" />
2016-10-19 19:21:56 +00:00
<make-stub-jar-debian additional= "${swt.jar}" type-class= "${tabs.class}" />
<make-stub-jar-debian name= "-cli" type-class= "${cli.class}" />
2016-10-19 19:05:48 +00:00
</target>
2013-01-10 15:33:00 +00:00
<target name= "preppkg" depends= "prep-docs, jar" >
<copy file= "${swt.jar}" tofile= "${pkgtemp.dir}/lib/swt.jar" />
2013-01-09 23:51:38 +00:00
<copy file= "${hsqldb.jar}" todir= "${pkgtemp.dir}/lib" />
<copy file= "${i2p.jar}" todir= "${pkgtemp.dir}/lib" />
<copy file= "${build.dir}/syndie.jar" todir= "${pkgtemp.dir}/lib" />
2013-01-09 02:36:17 +00:00
</target>
2013-01-09 01:20:09 +00:00
2016-10-19 19:05:48 +00:00
<target name= "preppkg-debian" depends= "prep-docs-debian, jar" >
<copy file= "${build.dir}/syndie.jar" todir= "${pkgtemp.dir}/lib" />
</target>
<target name= "prep-docs" depends= "prep-docs-debian" >
<copy file= "lib/hsqldb_lic.txt" todir= "${pkgtemp.dir}/doc/licenses" />
<replaceregexp file= "${pkgtemp.dir}/doc/LICENSE" byline= "true"
match="lib/hsqldb_lic.txt"
replace="licenses/hsqldb_lic.txt">
</replaceregexp>
</target>
<target name= "prep-docs-debian" >
2013-01-10 15:33:00 +00:00
<copy todir= "${pkgtemp.dir}/bin" >
<fileset dir= "./bin" />
</copy>
<copy todir= "${pkgtemp.dir}/doc" >
2013-01-09 01:20:09 +00:00
<fileset dir= "." includes= "CHANGES CREDITS INSTALL README TODO" />
</copy>
2013-01-10 15:33:00 +00:00
<copy todir= "${pkgtemp.dir}/doc/web" >
2013-01-09 01:20:09 +00:00
<fileset dir= "doc/web" />
</copy>
2013-01-15 15:21:40 +00:00
<copy file= "LICENSE" todir= "${pkgtemp.dir}/doc/" />
<copy todir= "${pkgtemp.dir}/doc/licenses" >
<fileset dir= "doc/licenses/" excludes= "SWT/**" />
</copy>
<replaceregexp file= "${pkgtemp.dir}/doc/LICENSE" byline= "true"
match="doc/licenses/"
replace="licenses/">
</replaceregexp>
2013-01-09 01:20:09 +00:00
</target>
2013-01-09 23:51:38 +00:00
<target name= "prep-swt-licenses" depends= "prep-win-licenses, prep-lin-licenses, prep-mac-licenses, prep-common-swt" />
2013-01-09 02:36:17 +00:00
<target name= "prep-common-swt" >
2013-01-10 15:33:00 +00:00
<copy file= "src/com/LICENSE.txt" tofile= "${pkgtemp.dir}/doc/licenses/LICENSE-Jazzy-GPL-v2.1.txt" />
<copy todir= "${pkgtemp.dir}/doc/licenses/SWT/about_files" >
2013-01-09 01:20:09 +00:00
<fileset dir= "doc/licenses/SWT/common" />
</copy>
</target>
2013-01-09 02:36:17 +00:00
<target name= "prep-win-licenses" depends= "prep-common-swt" >
2013-01-10 15:33:00 +00:00
<copy file= "doc/licenses/SWT/lin/about.html" tofile= "${pkgtemp.dir}/doc/licenses/SWT/Windows.html" />
2013-01-09 01:20:09 +00:00
</target>
2013-01-09 02:36:17 +00:00
<target name= "prep-lin-licenses" depends= "prep-common-swt" >
2013-01-10 15:33:00 +00:00
<copy todir= "${pkgtemp.dir}/doc/licenses/SWT/about_files" >
2013-01-09 02:36:17 +00:00
<fileset dir= "doc/licenses/SWT/lin/about_files" />
2013-01-09 01:20:09 +00:00
</copy>
2013-01-10 15:33:00 +00:00
<copy file= "doc/licenses/SWT/lin/about.html" tofile= "${pkgtemp.dir}/doc/licenses/SWT/Linux.html" />
2013-01-09 01:20:09 +00:00
</target>
2013-01-09 02:36:17 +00:00
<target name= "prep-mac-licenses" depends= "prep-common-swt" >
2013-01-10 15:33:00 +00:00
<copy file= "doc/licenses/SWT/mac/about.html" tofile= "${pkgtemp.dir}/doc/licenses/SWT/OSX.html" />
2013-01-09 01:20:09 +00:00
</target>
2013-01-10 00:07:22 +00:00
<target name= "prep-launch4j-license" if= "launch4j.available" >
2013-01-10 15:33:00 +00:00
<copy file= "${launch4j.dir}/LICENSE.txt" tofile= "${pkgtemp.dir}/doc/licenses/License-Launch4j.txt" />
2013-01-09 23:51:38 +00:00
</target>
2013-01-11 12:31:08 +00:00
<target name= "pkg" depends= "clean, prep-launch4j-license, prep-swt-licenses, stub-jars, jar, preppkg" >
2013-01-25 21:24:48 +00:00
<delete dir= "${dist.dir}" />
2013-01-09 23:51:38 +00:00
<move todir= "${dist.dir}" >
<fileset dir= "${pkgtemp.dir}" />
</move>
</target>
2013-01-11 12:31:08 +00:00
<target name= "pkg-exe" depends= "clean, jars2exe, pkg" />
2013-01-09 23:51:38 +00:00
2013-01-13 18:45:51 +00:00
<target name= "source-tarball" depends= "buildProperties" description= "Generate source tarball" >
2013-01-06 18:26:40 +00:00
<!-- will this use the monotonerc file in the current workspace? -->
<fail message= "This target cannot be used without Monotone!" >
<condition >
<not >
<isset property= "mtn.available" />
</not>
</condition>
</fail>
2013-02-03 19:10:12 +00:00
<property name= "source.tarball.name" value= "${ant.project.name}-${syndie.release.version}.src.tar.bz2" />
<echo message= "Checking out fresh copy into ../${ant.project.name}-${syndie.release.version} for tarballing:" />
<delete dir= "../${ant.project.name}-${syndie.release.version}" />
2013-01-06 18:26:40 +00:00
<exec executable= "mtn" failonerror= "true" >
<arg value= "co" />
<arg value= "-b" />
<arg value= "i2p.${ant.project.name}" />
<!-- w: is the revision of the current workspace -->
<arg value= "-r" />
<arg value= "w:" />
2013-02-03 19:10:12 +00:00
<arg value= "../${ant.project.name}-${syndie.release.version}" />
2013-01-06 18:26:40 +00:00
</exec>
<delete includeemptydirs= "true" quiet= "false" >
2013-02-03 19:10:12 +00:00
<fileset dir= "../${ant.project.name}-${syndie.release.version}/_MTN" />
2016-10-19 19:10:23 +00:00
<fileset dir= "../${ant.project.name}-${syndie.release.version}/debian-alt" />
<fileset dir= "../${ant.project.name}-${syndie.release.version}/lib" />
2013-01-06 18:26:40 +00:00
</delete>
2013-01-11 12:31:08 +00:00
<tar longfile= "gnu" destfile= "${source.tarball.name}" compression= "bzip2" >
2013-02-03 19:10:12 +00:00
<tarfileset dir= "../${ant.project.name}-${syndie.release.version}" prefix= "${ant.project.name}-${syndie.release.version}" >
2013-01-06 18:26:40 +00:00
<include name= "**/**" />
<exclude name= "debian/**" />
2016-10-19 19:05:48 +00:00
<exclude name= "debian-alt/**" />
<exclude name= "lib/**" />
2013-01-06 18:26:40 +00:00
<exclude name= "**/*.sh" />
</tarfileset>
2013-02-03 19:10:12 +00:00
<tarfileset dir= "../${ant.project.name}-${syndie.release.version}" prefix= "${ant.project.name}-${syndie.release.version}" filemode= "755" >
2013-01-06 18:26:40 +00:00
<exclude name= "debian/**" />
<include name= "**/*.sh" />
</tarfileset>
</tar>
</target>
2013-01-06 21:31:30 +00:00
2016-10-19 19:05:48 +00:00
<target name= "debian-binary" >
<exec executable= "fakeroot" failonerror= "true" >
<arg value= "debian/rules" />
<arg value= "clean" />
<arg value= "binary" />
</exec>
</target>
2013-01-11 12:31:08 +00:00
<target name= "debian-tarball" depends= "source-tarball" >
<copy verbose= "true" file= "${source.tarball.name}"
2013-02-03 19:10:12 +00:00
tofile="../${ant.project.name}_${syndie.release.version}.orig.tar.bz2" />
2013-01-11 12:31:08 +00:00
</target>
2013-01-08 12:19:55 +00:00
<target name= "sloccount.report" description= "Generate 'sloccount' report" >
<echo message= "Generating sloccount report (this will take awhile)" />
<exec executable= "sloccount" failonerror= "true" >
<arg value= "--details" />
<arg value= "--wide" />
<arg value= "${basedir}" />
<redirector output= "sloccount.sc" >
<outputfilterchain >
<linecontainsregexp negate= "true" >
<regexp pattern= "(WARNING|Warning:|sloccount\.sc)" />
</linecontainsregexp>
</outputfilterchain>
</redirector>
</exec>
<echo message= "sloccount report saved to the file sloccount.sc" />
</target>
<target name= "findbugs" depends= "jar" description= "Analyze source with Findbugs" >
2013-01-06 21:31:30 +00:00
<echo message= "Starting findbugs, this will take a while..." />
<exec executable= "nice" failonerror= "true" >
<arg value= "findbugs" />
<arg value= "-textui" />
<arg value= "-projectName" />
<arg value= "${ant.project.name}" />
<arg value= "-sortByClass" />
<arg value= "-xml" />
<arg value= "-output" />
<arg value= "${ant.project.name}.fba" />
<arg value= "-auxclasspath" />
<arg value= "${swt.jar}:${hsqldb.jar}:${i2p.jar}" />
<arg value= "-sourcepath" />
<arg value= "src" />
<!-- start of the files to be analyzed -->
2013-01-09 23:51:38 +00:00
<arg value= "${build.dir}/syndie.jar" />
2013-01-06 21:31:30 +00:00
</exec>
<echo message= "Findbugs output stored in ${ant.project.name}.fba" />
<echo message= "Now run: findbugs ${ant.project.name}.fba" />
</target>
2013-01-07 19:13:54 +00:00
2013-01-08 12:40:40 +00:00
<target name= "javadoc" depends= "javadocs" />
<target name= "javadocs" depends= "buildProperties" description= "Generate Javadocs" >
2013-01-07 19:13:54 +00:00
<!-- only set the locale if not set elsewhere -->
<property name= "javadoc.locale" value= "en_US" />
<mkdir dir= "./build" />
<mkdir dir= "./build/javadoc" />
<javadoc access= "package"
destdir="./build/javadoc"
packagenames="*"
use="true"
splitindex="true"
author="true"
version="true"
locale="${javadoc.locale}"
doctitle="Syndie Javadocs for Release ${release.number} Build ${syndie.build.number}"
windowtitle="Syndie Distributed Forums - Java Documentation - Version ${full.version}">
2013-01-07 22:17:48 +00:00
<group title= "Syndie" packages= "syndie*" />
<group title= "Spell Checker" packages= "com.swabunga.*" />
2013-01-07 19:13:54 +00:00
<sourcepath >
<pathelement location= "src" />
</sourcepath>
<classpath >
<pathelement location= "${swt.jar}" />
<pathelement location= "${i2p.jar}" />
</classpath>
2013-01-13 18:45:51 +00:00
<!-- These variables are stored in build.properties.
2013-01-12 01:17:49 +00:00
End-users can override by creating the file override.properties -->
<link offline= "true" href= "${javasedocs.url}" packagelistLoc= "resources/package-lists/java/" />
<link offline= "true" href= "${swtdocs.url}" packagelistLoc= "resources/package-lists/swt/" />
<link offline= "true" href= "${i2pdocs.url}" packagelistLoc= "resources/package-lists/i2p/" />
2013-01-07 19:13:54 +00:00
</javadoc>
<echo message= "Warning, javadoc embeds timestamps in the output, run with 'TZ=UTC ant javadoc' if you plan to distribute" />
</target>
2013-01-08 12:19:55 +00:00
<target name= "clean" description= "clean up" >
<delete dir= "${build.dir}" />
<delete dir= "builddep" />
<delete file= "sloccount.sc" />
<delete dir= "plugin" />
2013-01-09 01:20:09 +00:00
<delete dir= "${pkgtemp.dir}" />
2013-01-10 15:33:00 +00:00
<delete file= "plugin.zip" />
2013-01-08 12:19:55 +00:00
<delete file= "${ant.project.name}.fba" />
2013-01-10 15:33:00 +00:00
<delete dir= "pkg-osx" />
2016-06-16 13:23:12 +00:00
<delete file= "resources/i2plogo.png" />
2013-01-09 01:20:09 +00:00
</target>
2013-01-10 15:33:00 +00:00
<target name= "distclean" depends= "clean" description= "More throrough clean-up" >
2013-01-08 12:19:55 +00:00
<delete file= "syndie.xpi2p" />
2013-01-09 01:20:09 +00:00
<delete dir= "${dist.dir}" />
2013-01-10 15:33:00 +00:00
<delete quiet= "true" >
2013-01-25 21:24:48 +00:00
<fileset dir= "." includes= "syndie-installer* syndie*tar.bz2 *.sha256 *.sig" />
2013-01-10 15:33:00 +00:00
</delete>
<delete file= "syndie-installer*.jar" />
<delete file= "syndie-installer*.exe" />
2013-01-08 12:19:55 +00:00
<delete file= "syndie-update.xpi2p" />
2016-08-09 16:37:41 +00:00
<delete file= "syndie-mac64.xpi2p" />
<delete file= "syndie-mac64-update.xpi2p" />
2013-01-08 12:19:55 +00:00
<delete file= "syndie-win32.xpi2p" />
<delete file= "syndie-win32-update.xpi2p" />
2016-08-09 16:37:41 +00:00
<delete file= "syndie-win64.xpi2p" />
<delete file= "syndie-win64-update.xpi2p" />
2013-01-08 12:19:55 +00:00
<delete file= "syndie-linux-i386.xpi2p" />
<delete file= "syndie-linux-i386-update.xpi2p" />
<delete file= "syndie-linux-x86-64.xpi2p" />
2016-08-09 16:37:41 +00:00
<delete file= "syndie-linux-x86-64-update.xpi2p" />
<delete file= "syndie-update.su3" />
<delete file= "syndie-mac64.su3" />
<delete file= "syndie-mac64-update.su3" />
<delete file= "syndie-win32.su3" />
<delete file= "syndie-win32-update.su3" />
<delete file= "syndie-win64.su3" />
<delete file= "syndie-win64-update.su3" />
<delete file= "syndie-linux-i386.su3" />
<delete file= "syndie-linux-i386-update.su3" />
<delete file= "syndie-linux-x86-64.su3" />
<delete file= "syndie-linux-x86-64-update.su3" />
2013-01-08 12:19:55 +00:00
</target>
2013-01-09 23:51:38 +00:00
2013-01-10 15:33:00 +00:00
<target name= "totallyclean" depends= "distclean" description= "Most thorough clearning" >
2013-01-09 23:51:38 +00:00
<delete file= "lib/i2p.jar" />
<delete file= "lib/swt.jar" />
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "totallyclean" />
2013-01-09 23:51:38 +00:00
</target>
2013-01-25 21:24:48 +00:00
<target name= "debug" depends= "buildProperties" description= "Print properties" >
2013-01-09 02:36:17 +00:00
<echoproperties />
</target>
2013-01-09 23:51:38 +00:00
2013-01-11 12:31:08 +00:00
<target name= "delete-windows-files" >
2013-01-10 15:33:00 +00:00
<delete failonerror= "false" quiet= "true" >
2013-01-13 18:45:51 +00:00
<fileset dir= "${pkgtemp.dir}" includes= "**/*.exe" />
</delete>
</target>
<target name= "delete-stub-jars" >
<delete failonerror= "false" quiet= "true" >
<fileset dir= "${pkgtemp.dir}/bin" includes= "*.jar" />
</delete>
</target>
<target name= "delete-osx-files" >
<delete failonerror= "false" quiet= "true" >
<fileset dir= "${pkgtemp.dir}/bin" includes= "*.command *.sh" />
2013-01-10 15:33:00 +00:00
</delete>
</target>
2013-01-15 19:06:50 +00:00
<target name= "delete-linux-files" >
<delete failonerror= "false" quiet= "true" >
<fileset dir= "${pkgtemp.dir}/bin" includes= "*.sh" />
</delete>
</target>
2013-02-03 04:07:40 +00:00
<target name= "repack-osx-bundle" if= "do.repack" >
<repack jarname= "pkg-osx/Syndie.app/Contents/MacOS/swt.jar" />
<repack jarname= "pkg-osx/Syndie.app/Contents/MacOS/i2p.jar" />
<repack jarname= "pkg-osx/Syndie.app/Contents/MacOS/syndie.jar" />
<repack jarname= "pkg-osx/Syndie.app/Contents/MacOS/hsqldb.jar" />
</target>
<target name= "repack-common" if= "do.repack" >
<repack jarname= "${pkgtemp.dir}/lib/i2p.jar" />
<repack jarname= "${pkgtemp.dir}/lib/hsqldb.jar" />
<repack jarname= "${pkgtemp.dir}/lib/syndie.jar" />
</target>
<target name= "repack-swt" if= "do.repack" >
<repack jarname= "${pkgtemp.dir}/lib/swt.jar" />
</target>
<target name= "repack-cli" if= "do.repack" >
<repack jarname= "${pkgtemp.dir}/lib/i2p.jar" />
<repack jarname= "${pkgtemp.dir}/lib/hsqldb.jar" />
<repack jarname= "${pkgtemp.dir}/bin/syndie-cli.jar" />
</target>
2013-01-15 19:06:50 +00:00
<target name= "installer-linux" depends= "installer-linux32, installer-linux64" description= "Create Linux installers (i386 and x86_64)" />
2013-01-10 15:33:00 +00:00
2013-01-13 18:45:51 +00:00
<!-- Aliases -->
<target name= "installer-lin32" depends= "installer-linux32" />
<target name= "installer-lin64" depends= "installer-linux64" />
<target name= "installer-win32" depends= "installer-windows32" />
<target name= "installer-win64" depends= "installer-windows64" />
<target name= "installer-mac32" depends= "installer-osx32" />
<target name= "installer-mac64" depends= "installer-osx64" />
2013-01-15 19:06:50 +00:00
<target name= "linux-start-scripts" >
<echo file= "${pkgtemp.dir}/bin/syndie.sh" > < ![CDATA[#!/bin/sh
2013-12-03 21:28:49 +00:00
java -jar %INSTALL_PATH/bin/syndie.jar "$@" -Dsyndie.dict=/usr/share/dict/words
2013-01-15 19:06:50 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-desktop.sh" > < ![CDATA[#!/bin/sh
2013-12-03 21:28:49 +00:00
java -jar %INSTALL_PATH/bin/syndie-desktop.jar "$@" -Dsyndie.dict=/usr/share/dict/words
2013-01-15 19:06:50 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-cli.sh" > < ![CDATA[#!/bin/sh
2013-02-14 12:59:00 +00:00
java -jar %INSTALL_PATH/bin/syndie-cli.jar "$@"
2013-01-15 19:06:50 +00:00
]]></echo>
</target>
2013-01-13 18:45:51 +00:00
2013-01-15 19:06:50 +00:00
<target name= "installer-linux32" depends= "-check-for-izpack, stub-jars, preppkg, delete-windows-files, delete-osx-files, linux-start-scripts" description= "Create i386 installer for Linux" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-lin32-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-10 15:33:00 +00:00
<build-installer os= "linux" arch= "32" swt= "${swt.lin32}" />
</target>
2013-01-15 19:06:50 +00:00
<target name= "installer-linux64" depends= "-check-for-izpack, stub-jars, preppkg, delete-windows-files, delete-osx-files, linux-start-scripts" description= "Create x86_64 installer for Linux" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-lin64-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-10 15:33:00 +00:00
<build-installer os= "linux" arch= "64" swt= "${swt.lin64}" />
</target>
2013-01-13 18:45:51 +00:00
<target name= "installer-windows" depends= "installer-windows64-exe, installer-windows32-exe, delete-osx-files" description= "Create i386 and x86_64 installers for Windows" />
2013-01-10 15:33:00 +00:00
<target name= "installer-windows32-exe" if= "can.create.exe" unless= "no.exe" depends= "-check-launch4j, installer-windows32" description= "Create i386 installer for Windows and wrap it into an EXE" >
<wrap-installer bits= "32" />
</target>
<target name= "installer-windows64-exe" if= "can.create.exe" unless= "no.exe" depends= "-check-launch4j, installer-windows64" description= "Create x86_64 installer for Windows and wrap it into an EXE" >
<wrap-installer bits= "64" />
</target>
2013-01-15 19:06:50 +00:00
<target name= "installer-windows32" depends= "-check-for-izpack, jars2exe, stub-jars, preppkg, delete-osx-files, delete-linux-files" description= "Create i386 installer for Windows" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-win32-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-13 18:45:51 +00:00
<build-installer os= "win" arch= "32" swt= "${swt.win32}" />
2013-01-10 15:33:00 +00:00
</target>
2013-01-15 19:06:50 +00:00
<target name= "installer-windows64" depends= "-check-for-izpack, jars2exe, stub-jars, preppkg, delete-osx-files, delete-linux-files" description= "Create x86_64 installer for Windows" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-win64-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-13 18:45:51 +00:00
<build-installer os= "win" arch= "64" swt= "${swt.win64}" />
2013-01-10 15:33:00 +00:00
</target>
2013-01-13 18:45:51 +00:00
<!--
The installer-osx* targets create Izpack installers. Also available are the pkg-osx* targets
which create OSX-style .app bundles.
-->
<target name= "installer-osx" depends= "installer-osx32, installer-osx64" />
2013-01-15 19:06:50 +00:00
<target name= "installer-osx32" depends= "-check-for-izpack, preppkg, delete-windows-files, delete-linux-files, delete-stub-jars" description= "Create i386 installer for OSX" >
2013-01-13 18:45:51 +00:00
<echo file= "${pkgtemp.dir}/bin/syndie.command" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/swt.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d32 -XstartOnFirstThread -cp $CP syndie.gui.SWTUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-cli.sh" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d32 -XstartOnFirstThread -cp $CP syndie.db.TextUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-desktop.command" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d32 -XstartOnFirstThread -cp $CP syndie.db.TextUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<ant dir= "swt" target= "ensure-mac32-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-13 18:45:51 +00:00
<build-installer os= "osx" arch= "32" swt= "${swt.mac32}" />
</target>
2013-01-15 19:06:50 +00:00
<target name= "installer-osx64" depends= "-check-for-izpack, preppkg, delete-windows-files, delete-linux-files, delete-stub-jars" description= "Create x86_64 installer for OSX" >
2013-01-13 18:45:51 +00:00
<echo file= "${pkgtemp.dir}/bin/syndie.command" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/swt.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d64 -XstartOnFirstThread -cp $CP syndie.gui.SWTUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-cli.sh" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d64 -XstartOnFirstThread -cp $CP syndie.db.TextUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<echo file= "${pkgtemp.dir}/bin/syndie-desktop.command" > < ![CDATA[#!/bin/sh
2013-02-13 23:36:32 +00:00
CP=%INSTALL_PATH/lib/i2p.jar:%INSTALL_PATH/lib/hsqldb.jar:%INSTALL_PATH/lib/syndie.jar
2013-02-14 12:59:00 +00:00
java -d64 -XstartOnFirstThread -cp $CP syndie.db.TextUI "$@"
2013-01-13 18:45:51 +00:00
]]></echo>
<ant dir= "swt" target= "ensure-mac64-swt" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-common" />
2013-01-13 18:45:51 +00:00
<build-installer os= "osx" arch= "64" swt= "${swt.mac64}" />
</target>
2016-06-16 13:23:12 +00:00
<target name= "installer-all" depends= "installer-linux, installer-windows, installer-osx64" description= "Create Windows, Linux and OSX installers" />
2013-01-10 15:33:00 +00:00
<target name= "prep-osx" depends= "jar, prep-docs, prep-mac-licenses" >
<mkdir dir= "pkg-osx/Syndie.app/Contents/MacOS" />
<mkdir dir= "pkg-osx/Syndie.app/Contents/Resources" />
<copy file= "${hsqldb.jar}" todir= "pkg-osx/Syndie.app/Contents/MacOS" />
2013-01-11 21:07:32 +00:00
<copy file= "${i2p.jar}" todir= "pkg-osx/Syndie.app/Contents/MacOS" />
2013-01-10 15:33:00 +00:00
<copy file= "${build.dir}/syndie.jar" todir= "pkg-osx/Syndie.app/Contents/MacOS" />
<copy file= "resources/osx.icns" tofile= "pkg-osx/Syndie.app/Contents/syndie.icns" />
2013-01-13 18:45:51 +00:00
<echo file= "pkg-osx/Syndie.app/Contents/Info.plist" > < ![CDATA[
2013-01-11 21:07:32 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version= "1.0" >
<dict >
<key > CFBundleExecutable</key>
<string > startsyndie.sh</string>
<key > CFBundleGetInfoString</key>
<string > Syndie ${full.version} for Mac OS X</string>
<key > CFBundleIconFile</key>
<string > syndie.icns</string>
<key > CFBundleIdentifier</key>
<string > syndie.gui.SWTUI</string>
<key > CFBundleInfoDictionaryVersion</key>
<string > 6.0</string>
<key > CFBundleName</key>
<string > Syndie</string>
<key > CFBundlePackageType</key>
<string > APPL</string>
<key > CFBundleShortVersionString</key>
<string > 1.102.${syndie.build.number}</string>
<key > CFBundleSignature</key>
<string > synd</string>
<key > CFBundleVersion</key>
<string > 1.0</string>
<key > NSPrincipalClass</key>
<string > NSApplication</string>
</dict>
</plist>
2013-01-10 15:33:00 +00:00
]]></echo>
<copy todir= "pkg-osx/doc" >
<fileset dir= "pkg-temp/doc" />
</copy>
</target>
<target name= "pkg-cli" depends= "jar-cli, prep-docs" >
<copy file= "${build.dir}/syndie-cli.jar" todir= "${pkgtemp.dir}/bin" />
<copy file= "${hsqldb.jar}" todir= "${pkgtemp.dir}/lib" />
2013-02-03 04:07:40 +00:00
<copy file= "${i2p.jar}" todir= "${pkgtemp.dir}/lib" />
<ant target= "repack-cli" />
2013-01-10 15:33:00 +00:00
<echo file= "${pkgtemp.dir}/bin/readme.txt" > In order to use this headless version of Syndie,
copy i2p.jar to the lib directory, then simply
2013-01-15 19:06:50 +00:00
run "java -jar syndie-cli.jar".
2013-01-10 15:33:00 +00:00
Alternatively, you can run a command like the following:
java -cp path/to/hsqldb.jar:path/to/i2p.jar:path/to/syndie-cli.jar syndie.db.TextUI
</echo>
2013-02-03 19:10:12 +00:00
<tar destfile= "syndie-cli-${syndie.release.version}.bin.tar.bz2" compression= "bzip2" >
<tarfileset dir= "${pkgtemp.dir}" prefix= "syndie-cli-${syndie.release.version}" filemode= "644" >
2013-01-10 15:33:00 +00:00
<include name= "bin/*" />
2013-01-15 21:37:09 +00:00
<exclude name= "bin/*.exe" />
<exclude name= "bin/*.sh" />
<exclude name= "bin/*.command" />
2013-01-10 15:33:00 +00:00
<include name= "lib/hsqldb.jar" />
<include name= "doc/*" />
2013-01-15 21:37:09 +00:00
<exclude name= "doc/Uninstaller/" />
<include name= "doc/licenses/*.txt" />
2013-01-10 15:33:00 +00:00
<exclude name= "doc/web" />
</tarfileset>
</tar>
</target>
2013-01-13 18:45:51 +00:00
<!-- The pkg - osx* targets create OSX .app bundles that run Syndie with the tabs interface -->
<target name= "pkg-osx" depends= "pkg-osx32, pkg-osx64" description= "Create both i386 and x86_64 '.app' bundles for OSX" />
<target name= "pkg-osx32" depends= "prep-osx" description= "Create an i386 '.app' bundle for OSX" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-mac32-swt" />
<delete file= "pkg-osx/Syndie.app/Contents/MacOS/swt.jar" />
<copy file= "${swt.mac32}" tofile= "pkg-osx/Syndie.app/Contents/MacOS/swt.jar" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-osx-bundle" />
2013-01-11 19:52:05 +00:00
<echo file= "pkg-osx/Syndie.app/Contents/MacOS/startsyndie.sh" > < ![CDATA[#!/bin/sh
2013-01-11 21:07:32 +00:00
DIR=`dirname $0`
CP=$DIR/swt.jar:$DIR/hsqldb.jar:$DIR/syndie.jar:$DIR/i2p.jar
exec java -d32 -XstartOnFirstThread -cp $CP syndie.gui.SWTUI
2013-01-11 19:52:05 +00:00
]]></echo>
2013-02-03 19:10:12 +00:00
<tar destfile= "syndie-${syndie.release.version}.bin.osx32.tar.bz2" compression= "bzip2" >
<tarfileset dir= "pkg-osx" prefix= "syndie-${syndie.release.version}" filemode= "644" >
2013-01-10 15:33:00 +00:00
<include name= "**/**" />
<exclude name= "**/*.sh" />
</tarfileset>
2013-02-03 19:10:12 +00:00
<tarfileset dir= "pkg-osx" prefix= "syndie-${syndie.release.version}" filemode= "755" >
2013-01-10 15:33:00 +00:00
<include name= "**/*.sh" />
</tarfileset>
</tar>
</target>
2013-01-13 18:45:51 +00:00
<target name= "pkg-osx64" depends= "prep-osx" description= "Create an x86_64 '.app' bundle for OSX" >
2013-01-10 15:33:00 +00:00
<ant dir= "swt" target= "ensure-mac64-swt" />
<delete file= "pkg-osx/Syndie.app/Contents/MacOS/swt.jar" />
<copy file= "${swt.mac64}" tofile= "pkg-osx/Syndie.app/Contents/MacOS/swt.jar" />
2013-02-03 04:07:40 +00:00
<ant target= "repack-osx-bundle" />
2013-01-11 19:52:05 +00:00
<echo file= "pkg-osx/Syndie.app/Contents/MacOS/startsyndie.sh" > < ![CDATA[#!/bin/sh
2013-01-11 21:07:32 +00:00
DIR=`dirname $0`
CP=$DIR/swt.jar:$DIR/hsqldb.jar:$DIR/syndie.jar:$DIR/i2p.jar
exec java -d64 -XstartOnFirstThread -cp $CP syndie.gui.SWTUI
]]></echo>
2013-02-03 19:10:12 +00:00
<tar destfile= "syndie-${syndie.release.version}.bin.osx64.tar.bz2" compression= "bzip2" >
<tarfileset dir= "pkg-osx" prefix= "syndie-${syndie.release.version}" filemode= "644" >
2013-01-10 15:33:00 +00:00
<include name= "**/**" />
<exclude name= "**/*.sh" />
</tarfileset>
2013-02-03 19:10:12 +00:00
<tarfileset dir= "pkg-osx" prefix= "syndie-${syndie.release.version}" filemode= "755" >
2013-01-10 15:33:00 +00:00
<include name= "**/*.sh" />
</tarfileset>
</tar>
</target>
2016-06-16 13:23:12 +00:00
<target name= "pkg-all" depends= "distclean, installer-all, pkg-osx64, source-tarball, pkg-cli" description= "Create packages/installers for all supported systems." />
2013-01-25 21:24:48 +00:00
<target name= "-check-gpgkey" >
2016-06-16 13:23:12 +00:00
<echo message= "Sign the files:" />
<input message= "Enter GPG key ID (e.g. 0x12345678) for signing:" addproperty= "release.gpg.keyid" />
<fail message= "You must enter a key ID." >
2013-01-25 21:24:48 +00:00
<condition >
<not >
2016-06-16 13:23:12 +00:00
<isset property= "release.gpg.keyid" />
2013-01-25 21:24:48 +00:00
</not>
</condition>
</fail>
</target>
<target name= "release" depends= "-check-gpgkey, pkg-all, update-site" description= "build, sign, and checksum files then update site" >
<delete dir= "./dist" />
<mkdir dir= "./dist" />
2013-02-03 19:10:12 +00:00
<sign-and-sum file= "syndie-installer-${syndie.release.version}.bin.linux32.jar" />
<sign-and-sum file= "syndie-installer-${syndie.release.version}.bin.linux64.jar" />
<sign-and-sum file= "syndie-installer-${syndie.release.version}.bin.win32.exe" />
<sign-and-sum file= "syndie-installer-${syndie.release.version}.bin.win64.exe" />
<sign-and-sum file= "syndie-installer-${syndie.release.version}.bin.osx64.jar" />
<sign-and-sum file= "syndie-cli-${syndie.release.version}.bin.tar.bz2" />
<sign-and-sum file= "syndie-${syndie.release.version}.src.tar.bz2" />
<sign-and-sum file= "syndie-${syndie.release.version}.bin.osx64.tar.bz2" />
2013-02-03 04:45:36 +00:00
<ant target= "-torrent" />
2013-01-25 21:24:48 +00:00
<move todir= "./dist" >
2013-02-03 04:45:36 +00:00
<fileset dir= "." includes= "*.exe *.sha256 *.sig *.bz2 *.jar *.torrent" />
2013-01-25 21:24:48 +00:00
</move>
2013-02-03 19:10:12 +00:00
<echo message= "If you're happy with the results, remember to mtn tag w: ${ant.project.name}-${syndie.release.version}" />
2013-01-25 21:24:48 +00:00
</target>
2013-02-03 04:45:36 +00:00
<target name= "-torrent" if= "i2psnark.jar" >
<available property= "i2psnark.available" file= "${i2psnark.jar}" type= "file" />
<fail unless= "i2psnark.available" > ERROR: -Di2psnark.jar set but ${i2psnark.jar} could not be found!</fail>
2013-02-03 19:10:12 +00:00
<make-torrent file= "syndie-cli-${syndie.release.version}.bin.tar.bz2" />
<make-torrent file= "syndie-installer-${syndie.release.version}.bin.linux32.jar" />
<make-torrent file= "syndie-installer-${syndie.release.version}.bin.linux64.jar" />
<make-torrent file= "syndie-installer-${syndie.release.version}.bin.win32.exe" />
<make-torrent file= "syndie-installer-${syndie.release.version}.bin.win64.exe" />
<make-torrent file= "syndie-installer-${syndie.release.version}.bin.osx64.jar" />
<make-torrent file= "syndie-${syndie.release.version}.src.tar.bz2" />
<make-torrent file= "syndie-${syndie.release.version}.bin.osx64.tar.bz2" />
</target>
<target name= "update-archivesite" depends= "buildProperties" if= "gpg.key" >
<replaceregexp flags= "g" byline= "false" file= "data/archive/index.html"
match="[0-9]\.[0-9]+(a|b|rc)(?:-[0-9]+)?(-[a-z0-9]{8})?"
replace="${syndie.release.version}">
</replaceregexp>
2013-02-03 04:45:36 +00:00
</target>
2013-02-03 04:48:33 +00:00
<target name= "update-site" depends= "buildProperties, copy-www" if= "do.update.site" >
2013-01-25 21:24:48 +00:00
<replaceregexp flags= "g" byline= "false"
2013-02-03 19:10:12 +00:00
match="[0-9]\.[0-9]+(a|b|rc)(?:-[0-9]+)?(-[a-z0-9]{8})?"
replace="${syndie.release.version}">
2013-01-25 21:24:48 +00:00
<fileset dir= "doc/web" includes= "download.html index.html" />
</replaceregexp>
<replaceregexp file= "doc/web/index.html" flags= "g" byline= "false"
match="\([0-9]{4}/[0-9]{2}/[0-9]{2}\)"
replace="(${files.date})">
</replaceregexp>
2013-02-14 14:32:50 +00:00
<replaceregexp flags= "g" byline= "false" file= "doc/web/download.html" >
<regexp pattern= "files/(:?.*)?/syndie" />
<substitution expression= "files/${release.number}/syndie" />
</replaceregexp>
2013-01-25 21:24:48 +00:00
<echo > Release date set to ${files.date}. Edit doc/web/index.html is this is incorrect.</echo>
</target>
2013-01-26 14:53:38 +00:00
2013-02-03 04:48:33 +00:00
<target name= "copy-www" if= "syndie.www" >
<copy todir= "${syndie.www}" verbose= "true" overwrite= "true" >
<fileset dir= "doc/web" includes= "index.html download.html" />
</copy>
</target>
2013-01-26 14:53:38 +00:00
<target name= "testscripts" description= "check PO files, XML, and HTML files for errors" >
<exec executable= "tests/scripts/checkpo.sh" failonerror= "true" />
<exec executable= "tests/scripts/checkxml.sh" failonerror= "true" />
</target>
2009-04-13 17:27:02 +00:00
</project>
2012-06-03 01:00:56 +00:00
<!-- vim: set ft=xml ts=4 sw=4 et: -->