@ -65,14 +65,17 @@
<property name= "htroot" location= "htroot" />
<property name= "htroot" location= "htroot" />
<property name= "release" location= "RELEASE" />
<property name= "release" location= "RELEASE" />
<!-- defining some compiler arguments -->
<loadproperties srcFile= "build.properties" >
<property name= "javacSource" value= "1.4" />
<filterchain >
<property name= "javacTarget" value= "1.4" />
<tokenfilter >
<containsregex
<!-- Release Configuration -->
pattern="^releaseNr=\$Revision:\s(.*)\s\$"
<property name= "releaseVersion" value= "0.375" />
replace="releaseNr=\1"/>
<property name= "releaseFile" value= "yacy_dev_v${releaseVersion}_${DSTAMP}.tar.gz" />
</tokenfilter>
</filterchain>
</loadproperties>
<loadproperties srcFile= "build.properties" />
<target name= "init" >
<target name= "init" >
<mkdir dir= "${build}/de/anomic/data" />
<mkdir dir= "${build}/de/anomic/data" />
<mkdir dir= "${build}/de/anomic/htmlFilter" />
<mkdir dir= "${build}/de/anomic/htmlFilter" />
@ -147,6 +150,7 @@
<property name= "build" location= "${build}" />
<property name= "build" location= "${build}" />
<property name= "libx" location= "${libx}" />
<property name= "libx" location= "${libx}" />
<property name= "release" location= "${release}" />
<property name= "release" location= "${release}" />
<property name= "releaseDir" value= "${releaseDir}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacTarget" value= "${javacTarget}" />
<property name= "javacTarget" value= "${javacTarget}" />
<!-- each optional parser must have its own build file -->
<!-- each optional parser must have its own build file -->
@ -162,15 +166,32 @@
<property name= "libx" location= "${libx}" />
<property name= "libx" location= "${libx}" />
<property name= "htroot" value= "${htroot}" />
<property name= "htroot" value= "${htroot}" />
<property name= "release" location= "${release}" />
<property name= "release" location= "${release}" />
<property name= "releaseDir" value= "${releaseDir}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacTarget" value= "${javacTarget}" />
<property name= "javacTarget" value= "${javacTarget}" />
<!-- each optionl uploader module must have its own build file -->
<!-- each optionl uploader module must have its own build file -->
<fileset dir= "${src}/" includes= "de/anomic/yacy/seedUpload/yacySeedUpload*.xml" />
<fileset dir= "${src}/" includes= "de/anomic/yacy/seedUpload/yacySeedUpload*.xml" />
</subant>
</subant>
</target>
</target>
<!-- compiling optional soap API and building install packages -->
<target name= "yacySOAP" depends= "compile" description= "Compiling and zipping additional yacy SOAP API" >
<subant target= "" >
<property name= "src" location= "${src}" />
<property name= "build" location= "${build}" />
<property name= "libx" location= "${libx}" />
<property name= "htroot" value= "${htroot}" />
<property name= "release" location= "${release}" />
<property name= "releaseDir" value= "${releaseDir}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacTarget" value= "${javacTarget}" />
<!-- each optionl uploader module must have its own build file -->
<fileset dir= "${src}/" includes= "de/anomic/soap/build.xml" />
</subant>
</target>
<!-- making a release file for yacy -->
<!-- making a release file for yacy -->
<target name= "dist" depends= "all,parsers,seedUploaders" description= "Compiling sources and make a release file ..." >
<target name= "dist" depends= "all,parsers,seedUploaders ,yacySOAP " description= "Compiling sources and make a release file ..." >
<!-- defining some file/directory access rights -->
<!-- defining some file/directory access rights -->
<property name= "accessRightsDir" value= "755" />
<property name= "accessRightsDir" value= "755" />
@ -179,22 +200,22 @@
<tar destfile= "${release}/${releaseFile}" compression= "gzip" defaultexcludes= "yes" >
<tar destfile= "${release}/${releaseFile}" compression= "gzip" defaultexcludes= "yes" >
<!-- copy class files -->
<!-- copy class files -->
<tarfileset dir= "${build}" prefix= " classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${build}" prefix= " ${releaseDir}/ classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*.*" />
<include name= "**/*.*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/yacy/seedUpload/**" />
<exclude name= "de/anomic/yacy/seedUpload/**" />
<exclude name= "de/anomic/soap/**" />
<exclude name= "de/anomic/soap/**" />
</tarfileset>
</tarfileset>
<tarfileset dir= "${build}" prefix= " classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${build}" prefix= " ${releaseDir}/ classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFile.class" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFile.class" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFtp.class" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFtp.class" />
</tarfileset>
</tarfileset>
<!-- copy libs -->
<!-- copy libs -->
<tarfileset dir= "${lib}" includes= "**/*" prefix= " lib" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" />
<tarfileset dir= "${lib}" includes= "**/*" prefix= " ${releaseDir}/ lib" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" />
<!-- copy configuration files -->
<!-- copy configuration files -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "yacy.init" />
<include name= "yacy.init" />
<include name= "yacy.yellow" />
<include name= "yacy.yellow" />
<include name= "yacy.black" />
<include name= "yacy.black" />
@ -206,7 +227,7 @@
</tarfileset>
</tarfileset>
<!-- copy wrappers -->
<!-- copy wrappers -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "startYACY.command" />
<include name= "startYACY.command" />
<include name= "startYACY.bat" />
<include name= "startYACY.bat" />
<include name= "startYACY_noconsole.bat" />
<include name= "startYACY_noconsole.bat" />
@ -218,38 +239,38 @@
</tarfileset>
</tarfileset>
<!-- copy documentation -->
<!-- copy documentation -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "readme.txt" />
<include name= "readme.txt" />
<include name= "gpl.txt" />
<include name= "gpl.txt" />
</tarfileset>
</tarfileset>
<tarfileset dir= "${doc}" prefix= " doc" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${doc}" prefix= " ${releaseDir}/ doc" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*" />
<include name= "**/*" />
</tarfileset>
</tarfileset>
<!-- copy source code -->
<!-- copy source code -->
<tarfileset dir= "${src}" prefix= " source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${src}" prefix= " ${releaseDir}/ source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*.*" />
<include name= "**/*.*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/yacy/seedUpload/yacySeedUpload**" />
<exclude name= "de/anomic/yacy/seedUpload/yacySeedUpload**" />
<exclude name= "de/anomic/soap/**" />
<exclude name= "de/anomic/soap/**" />
</tarfileset>
</tarfileset>
<tarfileset dir= "${src}" prefix= " source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${src}" prefix= " ${releaseDir}/ source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFile.java" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFile.java" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFtp.java" />
<include name= "de/anomic/yacy/seedUpload/yacySeedUploadFtp.java" />
</tarfileset>
</tarfileset>
<!-- copy server pages -->
<!-- copy server pages -->
<tarfileset dir= "${htroot}" prefix= " htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${htroot}" prefix= " ${releaseDir}/ htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*" />
<include name= "**/*" />
<exclude name= "yacy/seedUpload/**" />
<exclude name= "yacy/seedUpload/**" />
</tarfileset>
</tarfileset>
<tarfileset dir= "${htroot}" prefix= " htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${htroot}" prefix= " ${releaseDir}/ htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "yacy/seedUpload/yacySeedUploadFile.html" />
<include name= "yacy/seedUpload/yacySeedUploadFile.html" />
<include name= "yacy/seedUpload/yacySeedUploadFtp.html" />
<include name= "yacy/seedUpload/yacySeedUploadFtp.html" />
</tarfileset>
</tarfileset>
<!-- copy add - on's -->
<!-- copy add - on's -->
<tarfileset dir= "${addon}" prefix= " addon" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${addon}" prefix= " ${releaseDir}/ addon" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*" />
<include name= "**/*" />
</tarfileset>
</tarfileset>
</tar>
</tar>