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.
77 lines
3.0 KiB
77 lines
3.0 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="${libx}/jsch-0.1.19.jar" />
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
|
|
<target name="zip" depends="compile">
|
|
<tar destfile="${parserArchive}" compression="gzip">
|
|
<tarfileset dir="${libx}"
|
|
includes="jsch-0.1.19.*"
|
|
prefix="${releaseDir}/libx/"
|
|
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}/yacy/seedUpload/"
|
|
includes="yacySeedUpload${addonShortName}.html"
|
|
prefix="${releaseDir}/htroot/yacy/seedUpload/"
|
|
dirmode="755" mode="644"/>
|
|
</tar>
|
|
</target>
|
|
|
|
|
|
<target name="copy" depends="compile">
|
|
<copy todir="${release}/libx/">
|
|
<fileset dir="${libx}" includes="jsch-0.1.19.*"/>
|
|
</copy>
|
|
<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}/yacy/seedUpload/">
|
|
<include name="yacySeedUpload${addonShortName}.html"/>
|
|
</fileset>
|
|
</copy>
|
|
</target>
|
|
|
|
|
|
<target name="dist" depends="compile,zip" description="Compile and zip the addon"/>
|
|
|
|
|
|
</project>
|
|
|