2005-10-19 22:02:37 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project basedir="." default="all" name="i2psnark">
|
|
|
|
<target name="all" depends="clean, build" />
|
2005-12-16 03:00:48 +00:00
|
|
|
<target name="build" depends="builddep, jar, war" />
|
2005-10-19 22:02:37 +00:00
|
|
|
<target name="builddep">
|
2010-11-28 03:56:56 +00:00
|
|
|
<!-- run from top level build.xml to get dependencies built -->
|
2005-10-19 22:02:37 +00:00
|
|
|
</target>
|
2008-11-14 14:48:08 +00:00
|
|
|
<condition property="depend.available">
|
|
|
|
<typefound name="depend" />
|
|
|
|
</condition>
|
|
|
|
<target name="depend" if="depend.available">
|
2008-11-12 17:08:09 +00:00
|
|
|
<depend
|
|
|
|
cache="../../../build"
|
|
|
|
srcdir="./src"
|
|
|
|
destdir="./build/obj" >
|
|
|
|
<!-- Depend on classes instead of jars where available -->
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/obj" />
|
2016-04-29 19:15:41 +00:00
|
|
|
<pathelement location="../../../core/java/build/gnu-getopt.jar" />
|
2008-11-12 17:08:09 +00:00
|
|
|
<pathelement location="../../ministreaming/java/build/obj" />
|
|
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
2016-04-01 18:19:06 +00:00
|
|
|
<!-- jsp-api.jar only present for debian builds -->
|
|
|
|
<pathelement location="../../jetty/jettylib/jsp-api.jar" />
|
2008-11-12 17:08:09 +00:00
|
|
|
</classpath>
|
|
|
|
</depend>
|
|
|
|
</target>
|
2011-06-13 14:31:41 +00:00
|
|
|
|
2018-10-10 12:30:34 +00:00
|
|
|
<!-- only used if not set by a higher build.xml -->
|
2014-02-21 13:59:27 +00:00
|
|
|
<property name="javac.compilerargs" value="" />
|
2016-10-26 16:56:13 +00:00
|
|
|
<property name="javac.version" value="1.7" />
|
2014-02-21 13:59:27 +00:00
|
|
|
<property name="require.gettext" value="true" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<property name="manifest.classpath.name" value="Class-Path" />
|
2014-02-21 13:59:27 +00:00
|
|
|
|
2013-01-10 16:51:06 +00:00
|
|
|
<condition property="no.bundle">
|
|
|
|
<isfalse value="${require.gettext}" />
|
|
|
|
</condition>
|
2011-06-13 14:31:41 +00:00
|
|
|
|
2008-11-12 17:08:09 +00:00
|
|
|
<target name="compile" depends="depend">
|
2005-10-19 22:02:37 +00:00
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
|
|
|
srcdir="./src"
|
2014-02-21 13:59:27 +00:00
|
|
|
debug="true" deprecation="on" source="${javac.version}" target="${javac.version}"
|
2005-10-19 22:02:37 +00:00
|
|
|
destdir="./build/obj"
|
2016-04-01 18:19:06 +00:00
|
|
|
includeAntRuntime="false" >
|
2009-04-26 15:54:51 +00:00
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
2016-04-01 18:19:06 +00:00
|
|
|
<classpath>
|
|
|
|
<pathelement location="../../../core/java/build/i2p.jar" />
|
2016-04-29 19:15:41 +00:00
|
|
|
<!-- gnu-getopt.jar only present for debian builds -->
|
|
|
|
<pathelement location="../../../core/java/build/gnu-getopt.jar" />
|
2016-04-01 18:19:06 +00:00
|
|
|
<pathelement location="../../ministreaming/java/build/mstreaming.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/javax.servlet.jar" />
|
|
|
|
<!-- jsp-api.jar only present for debian builds -->
|
|
|
|
<pathelement location="../../jetty/jettylib/jsp-api.jar" />
|
2018-02-24 16:43:15 +00:00
|
|
|
<!-- following jars only for standalone builds -->
|
2016-06-10 19:10:59 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/jetty-i2p.jar" />
|
|
|
|
<pathelement location="../../systray/java/build/systray.jar" />
|
2018-02-24 16:43:15 +00:00
|
|
|
<pathelement location="../../jetty/jettylib/org.mortbay.jetty.jar" />
|
|
|
|
<pathelement location="../../jetty/jettylib/jetty-util.jar" />
|
2016-04-01 18:19:06 +00:00
|
|
|
</classpath>
|
2009-04-26 15:54:51 +00:00
|
|
|
</javac>
|
2005-10-19 22:02:37 +00:00
|
|
|
</target>
|
2011-02-17 12:47:35 +00:00
|
|
|
|
2011-06-08 20:15:53 +00:00
|
|
|
<target name="listChangedFiles" depends="jarUpToDate" if="shouldListChanges" >
|
2011-02-17 12:47:35 +00:00
|
|
|
<exec executable="mtn" outputproperty="workspace.changes" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="list" />
|
|
|
|
<arg value="changed" />
|
|
|
|
<arg value=".." />
|
|
|
|
</exec>
|
|
|
|
<!-- \n in an attribute value generates an invalid manifest -->
|
|
|
|
<exec executable="tr" inputstring="${workspace.changes}" outputproperty="workspace.changes.tr" errorproperty="mtn.error2" failifexecutionfails="false" >
|
|
|
|
<arg value="-s" />
|
|
|
|
<arg value="[:space:]" />
|
|
|
|
<arg value="," />
|
|
|
|
</exec>
|
2011-06-08 20:15:53 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jar" depends="builddep, compile, jarUpToDate, listChangedFiles" unless="jar.uptodate" >
|
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.tr" value="" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<jar destfile="./build/i2psnark.jar" basedir="./build/obj" includes="**/*.class" excludes="**/web/* **/messages_*.class, **/standalone/*">
|
2005-10-19 22:02:37 +00:00
|
|
|
<manifest>
|
2016-04-27 14:27:38 +00:00
|
|
|
<attribute name="Main-Class" value="org.klomp.snark.CommandLine" />
|
2018-10-10 12:30:34 +00:00
|
|
|
<attribute name="${manifest.classpath.name}" value="i2p.jar mstreaming.jar streaming.jar" />
|
2012-01-15 16:36:17 +00:00
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
2012-03-01 16:04:17 +00:00
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
|
2016-11-17 15:14:50 +00:00
|
|
|
<attribute name="X-Compile-Source-JDK" value="${javac.version}" />
|
|
|
|
<attribute name="X-Compile-Target-JDK" value="${javac.version}" />
|
2005-10-19 22:02:37 +00:00
|
|
|
</manifest>
|
|
|
|
</jar>
|
2017-07-01 19:55:19 +00:00
|
|
|
</target>
|
|
|
|
|
2011-02-17 12:47:35 +00:00
|
|
|
<target name="jarUpToDate">
|
|
|
|
<uptodate property="jar.uptodate" targetfile="build/i2psnark.jar" >
|
2013-04-15 12:12:35 +00:00
|
|
|
<srcfiles dir= "build/obj" includes="**/*.class" excludes="**/web/* **/messages_*.class" />
|
2011-02-17 12:47:35 +00:00
|
|
|
</uptodate>
|
2011-06-08 20:15:53 +00:00
|
|
|
<condition property="shouldListChanges" >
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="jar.uptodate" />
|
|
|
|
</not>
|
|
|
|
<not>
|
2012-11-24 13:53:12 +00:00
|
|
|
<isset property="war.uptodate" />
|
2011-06-08 20:15:53 +00:00
|
|
|
</not>
|
|
|
|
<isset property="mtn.available" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
2011-02-17 12:47:35 +00:00
|
|
|
</target>
|
|
|
|
|
2009-06-15 21:27:38 +00:00
|
|
|
<!-- Ideally we would include
|
|
|
|
- only include the servlet, everything else is in the jar.
|
|
|
|
- However, the wrapper.config classpath in existing installs
|
|
|
|
- does not include i2psnark.jar.
|
|
|
|
- So we must continue to duplicate everything in the war.
|
|
|
|
<classes dir="./build/obj" includes="**/I2PSnarkServlet*.class" />
|
|
|
|
-->
|
2011-06-08 20:15:53 +00:00
|
|
|
<target name="war" depends="jar, bundle, warUpToDate, listChangedFiles" unless="war.uptodate" >
|
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.tr" value="" />
|
2014-09-09 15:27:53 +00:00
|
|
|
<copy todir="build/resources/.resources" >
|
|
|
|
<fileset dir="../resources/" />
|
2012-02-23 15:40:31 +00:00
|
|
|
</copy>
|
2013-01-23 20:26:50 +00:00
|
|
|
<!-- mime.properties must be in with the classes -->
|
|
|
|
<copy file="../mime.properties" todir="build/obj/org/klomp/snark/web" />
|
2012-02-23 15:40:31 +00:00
|
|
|
<war destfile="../i2psnark.war" webxml="../web.xml" >
|
2010-02-06 18:44:29 +00:00
|
|
|
<!-- include only the web stuff, as of 0.7.12 the router will add i2psnark.jar to the classpath for the war -->
|
2013-01-23 20:26:50 +00:00
|
|
|
<classes dir="./build/obj" includes="**/web/*" />
|
2014-09-09 15:27:53 +00:00
|
|
|
<fileset dir="build/resources/" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<manifest>
|
2012-01-15 16:36:17 +00:00
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
2012-03-01 16:04:17 +00:00
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
2011-03-20 18:28:29 +00:00
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
|
2016-11-17 15:14:50 +00:00
|
|
|
<attribute name="X-Compile-Source-JDK" value="${javac.version}" />
|
|
|
|
<attribute name="X-Compile-Target-JDK" value="${javac.version}" />
|
2011-02-17 12:47:35 +00:00
|
|
|
</manifest>
|
2005-12-16 03:00:48 +00:00
|
|
|
</war>
|
2005-10-19 22:02:37 +00:00
|
|
|
</target>
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2011-02-17 12:47:35 +00:00
|
|
|
<target name="warUpToDate">
|
|
|
|
<uptodate property="war.uptodate" targetfile="../i2psnark.war" >
|
2014-09-09 15:27:53 +00:00
|
|
|
<srcfiles dir= "." includes="build/obj/org/klomp/snark/web/*.class ../resources/**/* ../web.xml" />
|
2011-02-17 12:47:35 +00:00
|
|
|
</uptodate>
|
|
|
|
</target>
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2013-01-10 16:51:06 +00:00
|
|
|
<target name="bundle" depends="compile" unless="no.bundle">
|
2016-05-07 12:57:49 +00:00
|
|
|
<mkdir dir="build/messages-src" />
|
2009-12-09 20:54:10 +00:00
|
|
|
<!-- Update the messages_*.po files.
|
|
|
|
We need to supply the bat file for windows, and then change the fail property to true -->
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="${require.gettext}" >
|
2013-09-20 01:21:43 +00:00
|
|
|
<env key="JAVA_HOME" value="${java.home}" />
|
2009-12-09 20:54:10 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="${require.gettext}" >
|
2009-12-09 20:54:10 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
</exec>
|
2017-07-01 19:55:19 +00:00
|
|
|
<!-- multi-lang is optional -->
|
2011-02-25 16:01:30 +00:00
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="false" >
|
2011-02-12 11:30:21 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
2009-12-09 20:54:10 +00:00
|
|
|
</exec>
|
2016-05-01 20:19:56 +00:00
|
|
|
<javac source="${javac.version}" target="${javac.version}"
|
|
|
|
includeAntRuntime="false"
|
|
|
|
srcdir="build/messages-src" destdir="build/obj">
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2009-12-09 20:54:10 +00:00
|
|
|
</target>
|
|
|
|
|
2010-07-03 13:39:25 +00:00
|
|
|
<target name="poupdate" depends="builddep, compile">
|
2009-12-09 20:54:10 +00:00
|
|
|
<!-- Update the messages_*.po files. -->
|
2018-01-18 10:18:11 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="lg2" value="" />
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="unix" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2009-12-09 20:54:10 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="mac" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2009-12-09 20:54:10 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
2011-06-13 14:31:41 +00:00
|
|
|
<exec executable="sh" osfamily="windows" failifexecutionfails="true" failonerror="true" >
|
2018-01-18 10:18:11 +00:00
|
|
|
<env key="LG2" value="${lg2}" />
|
2011-02-12 11:30:21 +00:00
|
|
|
<arg value="./bundle-messages.sh" />
|
2009-12-09 20:54:10 +00:00
|
|
|
<arg value="-p" />
|
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2005-12-18 05:39:52 +00:00
|
|
|
<target name="standalone" depends="standalone_prep">
|
|
|
|
<zip destfile="i2psnark-standalone.zip">
|
|
|
|
<zipfileset dir="./dist/" prefix="i2psnark/" />
|
|
|
|
</zip>
|
|
|
|
</target>
|
2016-06-10 19:10:59 +00:00
|
|
|
|
|
|
|
<!-- make a fat jar for standalone -->
|
|
|
|
<target name="standalone_jar" depends="war">
|
2016-06-11 17:03:10 +00:00
|
|
|
<!-- set if unset -->
|
|
|
|
<property name="workspace.changes.tr" value="" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<jar destfile="build/i2psnark-standalone.jar">
|
|
|
|
<fileset dir="build/obj" includes="**/standalone/*.class" />
|
|
|
|
<zipfileset src="build/i2psnark.jar" />
|
|
|
|
<zipfileset src="../../../core/java/build/i2p.jar" />
|
2016-06-11 13:34:09 +00:00
|
|
|
<!-- without this we get a warning about 'no JSP support' but that's it
|
2016-06-10 19:10:59 +00:00
|
|
|
<zipfileset src="../../jetty/jettylib/jasper-runtime.jar" />
|
2016-06-11 13:34:09 +00:00
|
|
|
-->
|
2016-06-10 19:10:59 +00:00
|
|
|
<zipfileset src="../../jetty/jettylib/javax.servlet.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-continuation.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-deploy.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-http.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-i2p.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-io.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-security.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-servlet.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-util.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-webapp.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/jetty-xml.jar" />
|
|
|
|
<zipfileset src="../../jetty/jettylib/org.mortbay.jetty.jar" />
|
|
|
|
<zipfileset src="../../ministreaming/java/build/mstreaming.jar" />
|
|
|
|
<zipfileset src="../../streaming/java/build/streaming.jar" />
|
|
|
|
<zipfileset src="../../systray/java/build/systray.jar" />
|
2016-06-15 15:03:17 +00:00
|
|
|
<!-- Countries translations. The i2psnark translations are in the war but it's easier to put these here -->
|
|
|
|
<!-- 300KB just to translate "Brazil", but why not... -->
|
2016-06-18 17:49:28 +00:00
|
|
|
<!--
|
2016-06-15 15:03:17 +00:00
|
|
|
<fileset dir="../../routerconsole/java/build/obj" includes="net/i2p/router/countries/*.class" />
|
2016-06-18 17:49:28 +00:00
|
|
|
-->
|
2016-06-10 19:10:59 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="org.klomp.snark.standalone.RunStandalone"/>
|
|
|
|
<attribute name="Implementation-Version" value="${full.version}" />
|
|
|
|
<attribute name="Built-By" value="${build.built-by}" />
|
|
|
|
<attribute name="Build-Date" value="${build.timestamp}" />
|
|
|
|
<attribute name="Base-Revision" value="${workspace.version}" />
|
|
|
|
<attribute name="Workspace-Changes" value="${workspace.changes.tr}" />
|
2016-06-11 16:39:27 +00:00
|
|
|
<!-- this is so Jetty will report its version correctly -->
|
|
|
|
<section name="org/eclipse/jetty/server/" >
|
|
|
|
<attribute name="Implementation-Vendor" value="Eclipse.org - Jetty" />
|
|
|
|
<attribute name="Implementation-Version" value="8.1.17.v20150415" />
|
|
|
|
</section>
|
2016-06-10 19:10:59 +00:00
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- add css, image, and js files for standalone snark to the war -->
|
|
|
|
<target name="standalone_war" depends="war">
|
|
|
|
<mkdir dir="build/standalone-resources/.resources/themes/snark" />
|
|
|
|
<copy todir="build/standalone-resources/.resources/themes/snark" >
|
|
|
|
<fileset dir="../../../installer/resources/themes/snark/" />
|
|
|
|
</copy>
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2016-06-10 19:10:59 +00:00
|
|
|
<replace dir="build/standalone-resources/.resources/themes/snark"
|
|
|
|
summary="true"
|
2017-07-01 19:55:19 +00:00
|
|
|
token="url(/themes/console/dark/images/"
|
|
|
|
value="url(/i2psnark/.resources/themes/snark/dark/images/" >
|
2016-06-10 19:10:59 +00:00
|
|
|
<include name="**/*.css" />
|
|
|
|
</replace>
|
|
|
|
<replace dir="build/standalone-resources/.resources/themes/snark"
|
|
|
|
summary="true"
|
2017-07-01 19:55:19 +00:00
|
|
|
token="url(../../console/light/images/"
|
|
|
|
value="url(/i2psnark/.resources/themes/snark/light/images/" >
|
2016-06-10 19:10:59 +00:00
|
|
|
<include name="**/*.css" />
|
|
|
|
</replace>
|
|
|
|
<replace dir="build/standalone-resources/.resources/themes/snark"
|
|
|
|
summary="true"
|
2017-07-01 19:55:19 +00:00
|
|
|
token="url(/themes/console/light/images/"
|
|
|
|
value="url(/i2psnark/.resources/themes/snark/light/images/" >
|
2016-06-10 19:10:59 +00:00
|
|
|
<include name="**/*.css" />
|
|
|
|
</replace>
|
|
|
|
<replace dir="build/standalone-resources/.resources/themes/snark"
|
|
|
|
summary="true"
|
2017-07-01 19:55:19 +00:00
|
|
|
token="url(/themes/console/images/transparent.gif"
|
|
|
|
value="url(/i2psnark/.resources/themes/snark/ubergine/images/transparent.gif" >
|
2016-06-10 19:10:59 +00:00
|
|
|
<include name="**/*.css" />
|
|
|
|
</replace>
|
2017-07-01 19:55:19 +00:00
|
|
|
<replace dir="build/standalone-resources/.resources/themes/snark"
|
|
|
|
summary="true"
|
|
|
|
token="url(/themes/console/images/info/"
|
|
|
|
value="url(/i2psnark/.resources/themes/snark/ubergine/images/" >
|
|
|
|
<include name="**/*.css" />
|
|
|
|
</replace>
|
|
|
|
|
|
|
|
<!-- Rather than pulling in all the console theme images, let's just specify the ones we need -->
|
2016-08-08 08:00:01 +00:00
|
|
|
<copy file="../../../installer/resources/themes/console/images/transparent.gif"
|
2016-06-10 19:10:59 +00:00
|
|
|
todir="build/standalone-resources/.resources/themes/snark/ubergine/images" />
|
|
|
|
<copy file="../../../installer/resources/themes/console/dark/images/header.png"
|
2017-07-01 19:55:19 +00:00
|
|
|
todir="build/standalone-resources/.resources/themes/snark/dark/images" />
|
|
|
|
<copy file="../../../installer/resources/themes/console/light/images/header.png"
|
|
|
|
todir="build/standalone-resources/.resources/themes/snark/light/images" />
|
|
|
|
<copy file="../../../installer/resources/themes/console/dark/images/camotile2.png"
|
|
|
|
todir="build/standalone-resources/.resources/themes/snark/dark/images" />
|
|
|
|
<copy file="../../../installer/resources/themes/console/images/info/errortriangle.png"
|
2016-06-10 19:10:59 +00:00
|
|
|
todir="build/standalone-resources/.resources/themes/snark/ubergine/images" />
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2016-06-10 19:10:59 +00:00
|
|
|
<mkdir dir="build/standalone-resources/.resources/js" />
|
|
|
|
<copy file="../../routerconsole/jsp/js/ajax.js" todir="build/standalone-resources/.resources/js" />
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2016-06-10 19:10:59 +00:00
|
|
|
<zip destfile="../i2psnark.war" update="true" duplicate="preserve" >
|
|
|
|
<fileset dir="build/standalone-resources" />
|
|
|
|
</zip>
|
|
|
|
</target>
|
2017-07-01 19:55:19 +00:00
|
|
|
|
2016-06-10 19:10:59 +00:00
|
|
|
<target name="standalone_prep" depends="standalone_jar, standalone_war">
|
2005-12-18 05:39:52 +00:00
|
|
|
<delete dir="./dist" />
|
|
|
|
<mkdir dir="./dist" />
|
2009-06-15 15:22:51 +00:00
|
|
|
<copy file="../launch-i2psnark" todir="./dist/" />
|
2016-11-04 13:19:02 +00:00
|
|
|
<copy file="../launch-i2psnark.bat" todir="./dist/" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<mkdir dir="./dist/contexts" />
|
2016-06-11 17:03:10 +00:00
|
|
|
<copy file="../standalone-context.xml" tofile="./dist/contexts/context.xml" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<mkdir dir="./dist/docroot" />
|
2016-06-11 17:03:10 +00:00
|
|
|
<copy file="../standalone-index.html" tofile="./dist/docroot/index.html" />
|
2005-12-22 12:49:09 +00:00
|
|
|
<mkdir dir="./dist/webapps" />
|
|
|
|
<copy file="../i2psnark.war" tofile="./dist/webapps/i2psnark.war" />
|
2005-12-18 05:39:52 +00:00
|
|
|
<copy file="../jetty-i2psnark.xml" tofile="./dist/jetty-i2psnark.xml" />
|
2018-02-24 16:43:15 +00:00
|
|
|
<copy file="../i2psnark-appctx.config" tofile="./dist/i2psnark-appctx.config" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<copy file="./build/i2psnark-standalone.jar" tofile="./dist/i2psnark.jar" />
|
2005-12-18 05:39:52 +00:00
|
|
|
<copy file="../readme-standalone.txt" tofile="./dist/readme.txt" />
|
2016-06-10 19:10:59 +00:00
|
|
|
<!-- temp so announces work -->
|
|
|
|
<copy file="../../../installer/resources/hosts.txt" tofile="./dist/hosts.txt" />
|
|
|
|
<copy todir="./dist/licenses" >
|
|
|
|
<fileset dir="../../../licenses" includes="LICENSE-GPLv2.txt, ABOUT-Jetty.html" />
|
|
|
|
</copy>
|
2005-12-18 05:39:52 +00:00
|
|
|
<mkdir dir="./dist/logs" />
|
|
|
|
</target>
|
|
|
|
|
2005-10-19 22:02:37 +00:00
|
|
|
<target name="clean">
|
|
|
|
<delete dir="./build" />
|
2005-12-16 03:00:48 +00:00
|
|
|
<delete file="../i2psnark.war" />
|
2005-12-18 05:39:52 +00:00
|
|
|
<delete file="./i2psnark-standalone.zip" />
|
2009-06-15 21:27:38 +00:00
|
|
|
<delete dir="./dist" />
|
2005-10-19 22:02:37 +00:00
|
|
|
</target>
|
|
|
|
<target name="cleandep" depends="clean">
|
|
|
|
</target>
|
|
|
|
<target name="distclean" depends="clean">
|
|
|
|
</target>
|
|
|
|
</project>
|