You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/source/de/anomic/yacy/seedUpload/yacySeedUploadScp.xml

74 lines
2.9 KiB

<?xml version="1.0"?>
<project name="YACY - seedUpload via SCP" default="dist">
<description>
A class that allows to upload the seed list via scp
</description>
<property name="addonShortName" value="Scp"/>
<property name="addonVersion" value="0.1"/>
<property name="addonLongName" value="${addonShortName}SeedUploader"/>
<property name="parserArchive" location="${release}/${addonLongName}_${addonVersion}.tgz"/>
<target name="compile">
<javac srcdir="${src}/de/anomic/yacy/seedUpload/" destdir="${build}" source="${javacSource}" target="${javacTarget}" debug="true" debuglevel="lines,vars,source">
<include name="yacySeedUpload${addonShortName}.java"/>
<classpath>
<pathelement location="${build}" />
<!-- main lib needed to parse rss/atom feed files -->
<pathelement location="${lib}/jsch-0.1.21.jar" />
</classpath>
</javac>
</target>
<target name="zip" depends="compile">
<tar destfile="${parserArchive}" compression="gzip">
<tarfileset dir="${lib}"
includes="jsch-0.1.21.*"
prefix="${releaseDir}/lib/"
dirmode="755" mode="644"/>
<tarfileset dir="${src}/de/anomic/yacy/seedUpload/"
includes="yacySeedUpload${addonShortName}.java"
prefix="${releaseDir}/source/de/anomic/yacy/seedUpload/"
dirmode="755" mode="644"/>
<tarfileset dir="${build}/de/anomic/yacy/seedUpload/"
includes="yacySeedUpload${addonShortName}.class,SchUserInfo.class,sshc.class"
prefix="${releaseDir}/classes/de/anomic/yacy/seedUpload/"
dirmode="755" mode="644"/>
<tarfileset dir="${htroot}/"
includes="Settings_Seed_Upload${addonShortName}.inc"
prefix="${releaseDir}/htroot/"
dirmode="755" mode="644"/>
</tar>
</target>
<target name="copy" depends="compile">
<copy todir="${release}/source/de/anomic/yacy/seedUpload/">
<fileset dir="${src}/de/anomic/yacy/seedUpload/">
<include name="yacySeedUpload${addonShortName}.java"/>
</fileset>
</copy>
<copy todir="${release}/classes/de/anomic/yacy/seedUpload/">
<fileset dir="${build}/de/anomic/yacy/seedUpload/">
<include name="yacySeedUpload${addonShortName}.class"/>
<include name="SchUserInfo.class"/>
<include name="sshc.class"/>
</fileset>
</copy>
<copy todir="${release}/htroot/yacy/seedUpload/">
<fileset dir="${htroot}/">
<include name="Settings_Seed_Upload${addonShortName}.inc"/>
</fileset>
</copy>
</target>
<target name="dist" depends="compile,zip" description="Compile and zip the addon"/>
</project>