*) build file now automatically builds the

yacybar xpi file (if the yacybar sources are located in yacy/yacybar)
   and copies the xpi file into the add on directory
*) Bugfix for http://www.yacy-forum.de/viewtopic.php?p=17852


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2068 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 9104001e7c
commit 0dfef19559

@ -71,7 +71,12 @@
<property name="htdocsWWW" location="${data}/HTDOCS/www"/> <property name="htdocsWWW" location="${data}/HTDOCS/www"/>
<property name="release_main" location="${release}/MAIN"/> <property name="release_main" location="${release}/MAIN"/>
<property name="release_ext" location="${release}/EXT"/> <property name="release_ext" location="${release}/EXT"/>
<!-- determining if the sourcecode of the yacybar is available -->
<condition property="yacyBarDirExists">
<available file="./yacybar" />
</condition>
<condition property="singleExtFile"> <condition property="singleExtFile">
<equals arg1="${extensionTarget}" arg2="copy"/> <equals arg1="${extensionTarget}" arg2="copy"/>
</condition> </condition>
@ -247,7 +252,7 @@
source="${javacSource}" target="${javacTarget}"/> source="${javacSource}" target="${javacTarget}"/>
</target> </target>
<!-- compiling optional content parsers and building install packages --> <!-- compiling optional content parsers and building install packages -->
<target name="compileParsers" depends="compileMain" description="Compiling and zipping all additional parsers"> <target name="compileParsers" depends="compileMain" description="Compiling and zipping all additional parsers">
<subant target="${extensionTarget}"> <subant target="${extensionTarget}">
@ -328,9 +333,18 @@
<delete file="${build}/yacy.java" /> <delete file="${build}/yacy.java" />
</target> </target>
<!-- ======================================================================================================= <!-- compiling the yacybar -->
putting all extensions together into a single zip file <target name="buildYacyBar" if="yacyBarDirExists" depends="init" description="Building the yacyBar XPI file">
======================================================================================================= --> <!-- building yacybar xpi -->
<subant target="" buildpath="./yacybar" />
<!-- move xpi file into addon folder -->
<move file="./yacybar/yacybar.xpi" tofile="${addon}/yacybar.xpi"/>
</target>
<!-- =======================================================================================================
putting all extensions together into a single zip file
======================================================================================================= -->
<target name="distExtensions" if="singleExtFile" depends="compileExtensions"> <target name="distExtensions" if="singleExtFile" depends="compileExtensions">
<tar destfile="${release}/${extensionFile}" compression="gzip" defaultexcludes="yes" longfile="gnu"> <tar destfile="${release}/${extensionFile}" compression="gzip" defaultexcludes="yes" longfile="gnu">
<tarfileset dir="${release_ext}" prefix="${releaseDir}/" dirmode="${accessRightsDir}" mode="${accessRightsFile}" > <tarfileset dir="${release_ext}" prefix="${releaseDir}/" dirmode="${accessRightsDir}" mode="${accessRightsFile}" >
@ -341,7 +355,7 @@
<delete dir="${release_ext}"/> <delete dir="${release_ext}"/>
</target> </target>
<target name="copyMain4Dist" depends="compileMain"> <target name="copyMain4Dist" depends="compileMain,buildYacyBar">
<!-- copy main class files --> <!-- copy main class files -->
<copy todir="${release_main}/classes" failonerror="false"> <copy todir="${release_main}/classes" failonerror="false">
<fileset dir="${build}"> <fileset dir="${build}">
@ -443,9 +457,14 @@
<copy todir="${release_main}/source"> <copy todir="${release_main}/source">
<fileset dir="${src}"> <fileset dir="${src}">
<include name="**/*.*"/> <include name="**/*.*"/>
<!-- excluding sources for additional content parsers -->
<exclude name="de/anomic/plasma/parser/*/*"/> <exclude name="de/anomic/plasma/parser/*/*"/>
<!-- excluding sources for additional seed uploaders -->
<exclude name="de/anomic/yacy/seedUpload/yacySeedUpload**"/> <exclude name="de/anomic/yacy/seedUpload/yacySeedUpload**"/>
<!-- excluding soap -->
<exclude name="de/anomic/soap/**"/> <exclude name="de/anomic/soap/**"/>
<!-- excluding the port forwarder -->
<exclude name="de/anomic/server/serverPortForwardingSch.java"/>
</fileset> </fileset>
<fileset dir="${src}"> <fileset dir="${src}">
<include name="de/anomic/yacy/seedUpload/yacySeedUploadFile.java"/> <include name="de/anomic/yacy/seedUpload/yacySeedUploadFile.java"/>

Loading…
Cancel
Save