|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
<project name="YaCy" default="all" basedir=".">
|
|
|
|
|
<description>
|
|
|
|
|
YaCy - a Peer to Peer search Engine
|
|
|
|
|
</description>
|
|
|
|
|
|
|
|
|
|
<description>
|
|
|
|
|
YaCy - a Peer to Peer Web Search Engine
|
|
|
|
|
</description>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
# THIS IS THE YACY MAKE-RELEASE SCRIPT
|
|
|
|
|
# YOU CAN USE IT TO COMPILE YOUR OWN RELEASE
|
|
|
|
@ -48,13 +48,13 @@
|
|
|
|
|
# the intact and unchanged copyright notice.
|
|
|
|
|
# Contributions and changes to the program code must be marked as such.
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tstamp>
|
|
|
|
|
<format property="REPL_DATE_FORMAT" pattern="yyyymmdd" />
|
|
|
|
|
</tstamp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- defining all needed directory names -->
|
|
|
|
|
<format property="REPL_DATE_FORMAT" pattern="yyyymmdd" />
|
|
|
|
|
</tstamp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- defining all needed directory names -->
|
|
|
|
|
<property name="addon" location="addon"/>
|
|
|
|
|
<property name="src" location="source"/>
|
|
|
|
|
<property name="doc" location="doc"/>
|
|
|
|
@ -63,150 +63,154 @@
|
|
|
|
|
<property name="libx" location="libx"/>
|
|
|
|
|
<property name="build" location="classes"/>
|
|
|
|
|
<property name="htroot" location="htroot"/>
|
|
|
|
|
<property name="release" location="RELEASE"/>
|
|
|
|
|
<property name="release" location="RELEASE"/>
|
|
|
|
|
|
|
|
|
|
<!-- defining some compiler arguments -->
|
|
|
|
|
<property name="javacSource" value="1.4"/>
|
|
|
|
|
<property name="javacTarget" value="1.4"/>
|
|
|
|
|
|
|
|
|
|
<property name="javacSource" value="1.4"/>
|
|
|
|
|
<property name="javacTarget" value="1.4"/>
|
|
|
|
|
|
|
|
|
|
<!-- Release Configuration -->
|
|
|
|
|
<property name="releaseVersion" value="0.373"/>
|
|
|
|
|
<property name="releaseFile" value="yacy_v${releaseVersion}_${DSTAMP}.tgz"/>
|
|
|
|
|
|
|
|
|
|
<property name="releaseVersion" value="0.374"/>
|
|
|
|
|
<property name="releaseFile" value="yacy_dev_v${releaseVersion}_${DSTAMP}.tar.gz"/>
|
|
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
|
<mkdir dir="${build}/de/anomic/data"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/htmlFilter"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/http"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/kelondro"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/net"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/plasma"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/plasma/parser"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/server"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/tools"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/yacy"/>
|
|
|
|
|
|
|
|
|
|
<mkdir dir="${build}/de/anomic/data"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/htmlFilter"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/http"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/kelondro"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/net"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/plasma"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/plasma/parser"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/server"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/tools"/>
|
|
|
|
|
<mkdir dir="${build}/de/anomic/yacy"/>
|
|
|
|
|
|
|
|
|
|
<mkdir dir="${doc}"/>
|
|
|
|
|
<mkdir dir="${data}"/>
|
|
|
|
|
<mkdir dir="${release}"/>
|
|
|
|
|
|
|
|
|
|
<move file="${src}/yacy.java" tofile="${src}/yacy.java.orig" />
|
|
|
|
|
|
|
|
|
|
<filter token="REPL_VERSION" value="${releaseVersion}" />
|
|
|
|
|
<filter token="REPL_DATE" value="${DSTAMP}"/>
|
|
|
|
|
<copy file="${src}/yacy.java.orig" tofile="${src}/yacy.java" filtering="true" />
|
|
|
|
|
</target>
|
|
|
|
|
<mkdir dir="${doc}"/>
|
|
|
|
|
<mkdir dir="${data}"/>
|
|
|
|
|
<mkdir dir="${release}"/>
|
|
|
|
|
|
|
|
|
|
<move file="${src}/yacy.java" tofile="${src}/yacy.java.orig" />
|
|
|
|
|
|
|
|
|
|
<target name="compile" depends="init" description="Compiling the yacy sources ...">
|
|
|
|
|
<javac srcdir="${src}/" destdir="${build}" excludes="de/anomic/plasma/parser/*/*" source="${javacSource}" target="${javacTarget}">
|
|
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="${build}" />
|
|
|
|
|
|
|
|
|
|
<!-- libs needed for the yacy thread/object-pools -->
|
|
|
|
|
<pathelement location="${lib}/commons-collections.jar" />
|
|
|
|
|
<pathelement location="${lib}/commons-pool-1.2.jar" />
|
|
|
|
|
</classpath>
|
|
|
|
|
</javac>
|
|
|
|
|
<javac srcdir="${htroot}/" destdir="${htroot}" classpath="${build}" source="1.4" target="1.4"/>
|
|
|
|
|
<javac srcdir="${htroot}/htdocsdefault" destdir="${htroot}/htdocsdefault" classpath="${build}" source="1.4" target="1.4"/>
|
|
|
|
|
<javac srcdir="${htroot}/yacy" destdir="${htroot}/yacy" classpath="${build}" source="1.4" target="1.4"/>
|
|
|
|
|
<filter token="REPL_VERSION" value="${releaseVersion}" />
|
|
|
|
|
<filter token="REPL_DATE" value="${DSTAMP}"/>
|
|
|
|
|
<copy file="${src}/yacy.java.orig" tofile="${src}/yacy.java" filtering="true" />
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="compile" depends="init" description="Compiling the yacy sources ...">
|
|
|
|
|
<javac srcdir="${src}/" destdir="${build}"
|
|
|
|
|
excludes="de/anomic/plasma/parser/*/*"
|
|
|
|
|
debug="true"
|
|
|
|
|
source="${javacSource}" target="${javacTarget}">
|
|
|
|
|
<classpath>
|
|
|
|
|
<pathelement location="${build}" />
|
|
|
|
|
|
|
|
|
|
<!-- libs needed for the yacy thread/object-pools -->
|
|
|
|
|
<pathelement location="${lib}/commons-collections.jar" />
|
|
|
|
|
<pathelement location="${lib}/commons-pool-1.2.jar" />
|
|
|
|
|
</classpath>
|
|
|
|
|
</javac>
|
|
|
|
|
<javac srcdir="${htroot}/" destdir="${htroot}"
|
|
|
|
|
classpath="${build}"
|
|
|
|
|
source="1.4" target="1.4"/>
|
|
|
|
|
<javac srcdir="${htroot}/htdocsdefault" destdir="${htroot}/htdocsdefault"
|
|
|
|
|
classpath="${build}"
|
|
|
|
|
source="1.4" target="1.4"/>
|
|
|
|
|
<javac srcdir="${htroot}/yacy" destdir="${htroot}/yacy"
|
|
|
|
|
classpath="${build}"
|
|
|
|
|
source="1.4" target="1.4"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="all" depends="compile">
|
|
|
|
|
<delete file="${src}/yacy.java" />
|
|
|
|
|
<move file="${src}/yacy.java.orig" tofile="${src}/yacy.java" />
|
|
|
|
|
<delete file="${src}/yacy.java" />
|
|
|
|
|
<move file="${src}/yacy.java.orig" tofile="${src}/yacy.java" />
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="parsers" depends="compile" description="Compiling and zipping all additional parsers">
|
|
|
|
|
<subant target="">
|
|
|
|
|
<property name="src" location="${src}"/>
|
|
|
|
|
<property name="build" location="${build}"/>
|
|
|
|
|
<property name="libx" location="${libx}"/>
|
|
|
|
|
<property name="release" location="${release}"/>
|
|
|
|
|
<property name="javacSource" value="${javacSource}"/>
|
|
|
|
|
<property name="javacTarget" value="${javacTarget}"/>
|
|
|
|
|
<fileset dir="${src}/" includes="de/anomic/plasma/parser/*/build.xml"/>
|
|
|
|
|
</subant>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<subant target="">
|
|
|
|
|
<property name="src" location="${src}"/>
|
|
|
|
|
<property name="build" location="${build}"/>
|
|
|
|
|
<property name="libx" location="${libx}"/>
|
|
|
|
|
<property name="release" location="${release}"/>
|
|
|
|
|
<property name="javacSource" value="${javacSource}"/>
|
|
|
|
|
<property name="javacTarget" value="${javacTarget}"/>
|
|
|
|
|
<fileset dir="${src}/" includes="de/anomic/plasma/parser/*/build.xml"/>
|
|
|
|
|
</subant>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target name="dist" depends="all,parsers" description="Compiling sources and make a release file ...">
|
|
|
|
|
|
|
|
|
|
<property name="accessRightsDir" value="755"/>
|
|
|
|
|
<property name="accessRightsFile" value="644"/>
|
|
|
|
|
|
|
|
|
|
<tar destfile="${release}/${releaseFile}" compression="gzip" defaultexcludes="yes">
|
|
|
|
|
|
|
|
|
|
<!-- copy classes -->
|
|
|
|
|
<tarfileset dir="${build}" prefix="classes" dirmode="${accessRightsDir}" mode="${accessRightsFile}" >
|
|
|
|
|
<include name="**/*.*"/>
|
|
|
|
|
<exclude name="de/anomic/plasma/parser/*/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy libs -->
|
|
|
|
|
<tarfileset dir="${lib}" includes="**/*" prefix="lib" dirmode="${accessRightsDir}" mode="${accessRightsFile}"/>
|
|
|
|
|
|
|
|
|
|
<!-- copy configuration files -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="yacy.init"/>
|
|
|
|
|
<include name="yacy.yellow"/>
|
|
|
|
|
<include name="yacy.black"/>
|
|
|
|
|
<include name="yacy.blue"/>
|
|
|
|
|
<include name="yacy.stopwords"/>
|
|
|
|
|
<include name="yacy.parser"/>
|
|
|
|
|
<include name="httpd.mime"/>
|
|
|
|
|
<include name="superseed.txt"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy wrappers -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="startYACY.command"/>
|
|
|
|
|
<include name="startYACY.bat"/>
|
|
|
|
|
<include name="startYACY_noconsole.bat"/>
|
|
|
|
|
<include name="startYACY.sh"/>
|
|
|
|
|
<include name="stopYACY.command"/>
|
|
|
|
|
<include name="stopYACY.bat"/>
|
|
|
|
|
<include name="stopYACY.sh"/>
|
|
|
|
|
<include name="killYACY.sh"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy documentation -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="readme.txt"/>
|
|
|
|
|
<include name="gpl.txt"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
<tarfileset dir="${doc}" prefix="doc" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy source code -->
|
|
|
|
|
<tarfileset dir="${src}" prefix="source" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*.*"/>
|
|
|
|
|
<exclude name="de/anomic/plasma/parser/*/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy server pages -->
|
|
|
|
|
<tarfileset dir="${htroot}" prefix="htroot" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy add-on's -->
|
|
|
|
|
<tarfileset dir="${addon}" prefix="addon" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
</tar>
|
|
|
|
|
|
|
|
|
|
<echo message="${releaseVersion}" file="${doc}/release.txt"/>
|
|
|
|
|
|
|
|
|
|
<property name="accessRightsDir" value="755"/>
|
|
|
|
|
<property name="accessRightsFile" value="644"/>
|
|
|
|
|
|
|
|
|
|
<tar destfile="${release}/${releaseFile}" compression="gzip" defaultexcludes="yes">
|
|
|
|
|
|
|
|
|
|
<!-- copy classes -->
|
|
|
|
|
<tarfileset dir="${build}" prefix="classes" dirmode="${accessRightsDir}" mode="${accessRightsFile}" >
|
|
|
|
|
<include name="**/*.*"/>
|
|
|
|
|
<exclude name="de/anomic/plasma/parser/*/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy libs -->
|
|
|
|
|
<tarfileset dir="${lib}" includes="**/*" prefix="lib" dirmode="${accessRightsDir}" mode="${accessRightsFile}"/>
|
|
|
|
|
|
|
|
|
|
<!-- copy configuration files -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="yacy.init"/>
|
|
|
|
|
<include name="yacy.yellow"/>
|
|
|
|
|
<include name="yacy.black"/>
|
|
|
|
|
<include name="yacy.blue"/>
|
|
|
|
|
<include name="yacy.stopwords"/>
|
|
|
|
|
<include name="yacy.parser"/>
|
|
|
|
|
<include name="httpd.mime"/>
|
|
|
|
|
<include name="superseed.txt"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy wrappers -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="startYACY.command"/>
|
|
|
|
|
<include name="startYACY.bat"/>
|
|
|
|
|
<include name="startYACY_noconsole.bat"/>
|
|
|
|
|
<include name="startYACY.sh"/>
|
|
|
|
|
<include name="stopYACY.command"/>
|
|
|
|
|
<include name="stopYACY.bat"/>
|
|
|
|
|
<include name="stopYACY.sh"/>
|
|
|
|
|
<include name="killYACY.sh"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy documentation -->
|
|
|
|
|
<tarfileset dir="." dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="readme.txt"/>
|
|
|
|
|
<include name="gpl.txt"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
<tarfileset dir="${doc}" prefix="doc" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy source code -->
|
|
|
|
|
<tarfileset dir="${src}" prefix="source" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*.*"/>
|
|
|
|
|
<exclude name="de/anomic/plasma/parser/*/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy server pages -->
|
|
|
|
|
<tarfileset dir="${htroot}" prefix="htroot" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
|
|
|
|
|
<!-- copy add-on's -->
|
|
|
|
|
<tarfileset dir="${addon}" prefix="addon" dirmode="${accessRightsDir}" mode="${accessRightsFile}">
|
|
|
|
|
<include name="**/*"/>
|
|
|
|
|
</tarfileset>
|
|
|
|
|
</tar>
|
|
|
|
|
|
|
|
|
|
<echo message="${releaseVersion}" file="${doc}/release.txt"/>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<target name="clean" description="make clean">
|
|
|
|
|
<delete>
|
|
|
|
|
<fileset dir="${build}" includes="**/*.class" />
|
|
|
|
|
<fileset dir="${htroot}" includes="**/*.class" />
|
|
|
|
|
</delete>
|
|
|
|
|
<target name="clean" description="make clean">
|
|
|
|
|
<delete>
|
|
|
|
|
<fileset dir="${build}" includes="**/*.class" />
|
|
|
|
|
<fileset dir="${htroot}" includes="**/*.class" />
|
|
|
|
|
</delete>
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|