*) setting root dir for all tar files properly

*) automatically adding SVN Revision number to tar file name
*) introducing build.properties file that can be used to set the build version number and date

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@164 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 0c35171c85
commit 8bd49ba535

@ -0,0 +1,9 @@
# defining some compiler arguments
javacSource=1.4
javacTarget=1.4
# Release Configuration
releaseVersion=0.375
releaseFile=yacy_dev_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz
releaseDir=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}
releaseNr=$Revision$

@ -65,13 +65,16 @@
<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"/>
@ -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,6 +166,7 @@
<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 -->
@ -169,8 +174,24 @@
</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>

@ -26,13 +26,13 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="bzip2.jar"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -28,13 +28,13 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="tm-extractors-0.4.*"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -24,10 +24,10 @@
<echo message="Compressing ${parserLongName} Version ${parserVersion} ..."/>
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -31,13 +31,13 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="jmimemagic-0.0.4a.jar,jakarta-oro-2.0.7.jar,log4j-1.2.9.jar,xerces.jar"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -31,17 +31,17 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="PDFBox-0.7.1.*"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${libx}"
includes="log4j-1.2.9.*"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -32,18 +32,14 @@
<echo message="Compressing ${parserLongName} Version ${parserVersion} ..."/>
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="informa-0.6.0.*"
prefix="libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${libx}"
includes="commons-logging.jar,jdom.jar"
prefix="libx/"
includes="informa-0.6.0.*,commons-logging.jar,jdom.jar"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -24,10 +24,10 @@
<echo message="Compressing ${parserLongName} Version ${parserVersion} ..."/>
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -27,13 +27,13 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="tar.jar"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -24,10 +24,10 @@
<echo message="Compressing ${parserLongName} Version ${parserVersion} ..."/>
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${src}/de/anomic/plasma/parser/${parserShortName}"
prefix="source/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/source/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/plasma/parser/${parserShortName}"
prefix="classes/de/anomic/plasma/parser/${parserShortName}"
prefix="${releaseDir}/classes/de/anomic/plasma/parser/${parserShortName}"
dirmode="755" mode="644"/>
</tar>
</target>

@ -34,13 +34,13 @@
<tar destfile="${addonArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="axis.jar,axis-ant.jar,commons-discovery.jar,commons-logging.jar,jaxrpc.jar,saaj.jar,wsdl4j.jar"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/soap/"
prefix="source/de/anomic/soap/"
prefix="${releaseDir}/source/de/anomic/soap/"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/soap/"
prefix="classes/de/anomic/soap/"
prefix="${releaseDir}/classes/de/anomic/soap/"
dirmode="755" mode="644"/>
</tar>
</target>

@ -29,19 +29,19 @@
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${libx}"
includes="jsch-0.1.19.*"
prefix="libx/"
prefix="${releaseDir}/libx/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/yacy/seedUpload/"
includes="yacySeedUpload${addonShortName}.java"
prefix="source/de/anomic/yacy/seedUpload/"
prefix="${releaseDir}/source/de/anomic/yacy/seedUpload/"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/yacy/seedUpload/"
includes="yacySeedUpload${addonShortName}.class"
prefix="classes/de/anomic/yacy/seedUpload/"
prefix="${releaseDir}/classes/de/anomic/yacy/seedUpload/"
dirmode="755" mode="644"/>
<tarfileset dir="${htroot}/yacy/seedUpload/"
includes="yacySeedUpload${addonShortName}.html"
prefix="htroot/yacy/seedUpload/"
prefix="${releaseDir}/htroot/yacy/seedUpload/"
dirmode="755" mode="644"/>
</tar>
</target>

Loading…
Cancel
Save