@ -65,14 +65,17 @@
<property name= "htroot" location= "htroot" />
<property name= "release" location= "RELEASE" />
<!-- defining some compiler arguments -->
<property name= "javacSource" value= "1.4" />
<property name= "javacTarget" value= "1.4" />
<!-- Release Configuration -->
<property name= "releaseVersion" value= "0.375" />
<property name= "releaseFile" value= "yacy_dev_v${releaseVersion}_${DSTAMP}.tar.gz" />
<loadproperties srcFile= "build.properties" >
<filterchain >
<tokenfilter >
<containsregex
pattern="^releaseNr=\$Revision:\s(.*)\s\$"
replace="releaseNr=\1"/>
</tokenfilter>
</filterchain>
</loadproperties>
<loadproperties srcFile= "build.properties" />
<target name= "init" >
<mkdir dir= "${build}/de/anomic/data" />
<mkdir dir= "${build}/de/anomic/htmlFilter" />
@ -147,6 +150,7 @@
<property name= "build" location= "${build}" />
<property name= "libx" location= "${libx}" />
<property name= "release" location= "${release}" />
<property name= "releaseDir" value= "${releaseDir}" />
<property name= "javacSource" value= "${javacSource}" />
<property name= "javacTarget" value= "${javacTarget}" />
<!-- each optional parser must have its own build file -->
@ -162,15 +166,32 @@
<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/yacy/seedUpload/yacySeedUpload*.xml" />
</subant>
</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 -->
<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 -->
<property name= "accessRightsDir" value= "755" />
@ -179,22 +200,22 @@
<tar destfile= "${release}/${releaseFile}" compression= "gzip" defaultexcludes= "yes" >
<!-- copy class files -->
<tarfileset dir= "${build}" prefix= " classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${build}" prefix= " ${releaseDir}/ classes" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*.*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/yacy/seedUpload/**" />
<exclude name= "de/anomic/soap/**" />
</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/yacySeedUploadFtp.class" />
</tarfileset>
<!-- 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 -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "yacy.init" />
<include name= "yacy.yellow" />
<include name= "yacy.black" />
@ -206,7 +227,7 @@
</tarfileset>
<!-- copy wrappers -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "startYACY.command" />
<include name= "startYACY.bat" />
<include name= "startYACY_noconsole.bat" />
@ -218,38 +239,38 @@
</tarfileset>
<!-- copy documentation -->
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "." dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" prefix= "${releaseDir}" >
<include name= "readme.txt" />
<include name= "gpl.txt" />
</tarfileset>
<tarfileset dir= "${doc}" prefix= " doc" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${doc}" prefix= " ${releaseDir}/ doc" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*" />
</tarfileset>
<!-- copy source code -->
<tarfileset dir= "${src}" prefix= " source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${src}" prefix= " ${releaseDir}/ source" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*.*" />
<exclude name= "de/anomic/plasma/parser/*/*" />
<exclude name= "de/anomic/yacy/seedUpload/yacySeedUpload**" />
<exclude name= "de/anomic/soap/**" />
</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/yacySeedUploadFtp.java" />
</tarfileset>
<!-- copy server pages -->
<tarfileset dir= "${htroot}" prefix= " htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<tarfileset dir= "${htroot}" prefix= " ${releaseDir}/ htroot" dirmode= "${accessRightsDir}" mode= "${accessRightsFile}" >
<include name= "**/*" />
<exclude name= "yacy/seedUpload/**" />
</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/yacySeedUploadFtp.html" />
</tarfileset>
<!-- 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= "**/*" />
</tarfileset>
</tar>