84 lines
2.6 KiB
XML
84 lines
2.6 KiB
XML
<project name="SFTPDaemon" default="clean" basedir=".">
|
|
<property environment="env"/>
|
|
<property file="build.properties"/>
|
|
<property environment="env"/>
|
|
<property name="build.path" value="${project.home}/build"/>
|
|
<property name="building.path" value="${build.path}/building"/>
|
|
<property name="sfptd.src.path" value="${project.home}/src"/>
|
|
<property name="sfptd.classes.path" value="${building.path}/sftpd-jar"/>
|
|
<!-- PATTERN PER sftpd.jar -->
|
|
<patternset id="sfptd.jar.classes">
|
|
<include name="**/*.class"/>
|
|
</patternset>
|
|
<!-- LIBRERIE PER LA COMPILAZIONE -->
|
|
<filelist id="sfptd.all.classpath" dir="${sfptd.lib.path}">
|
|
<file name="commons-logging-1.0.4.jar"/>
|
|
<file name="jsch-0.1.54.jar"/>
|
|
<file name="log4j-1.2.16.jar"/>
|
|
</filelist>
|
|
<!-- CLASSPATH PER LA COMPILAZIONE-->
|
|
<path id="all.classpath">
|
|
<filelist refid="sfptd.all.classpath"/>
|
|
</path>
|
|
<!-- ################################################################################ -->
|
|
<!-- ################################################################################ -->
|
|
<!-- ################################################################################ -->
|
|
<target name="echo">
|
|
<echo>
|
|
Starting build using:
|
|
project.home= ${project.home}
|
|
sfptd.lib.path= ${sfptd.lib.path}
|
|
</echo>
|
|
</target>
|
|
|
|
<target name="init" depends="echo">
|
|
<tstamp prefix="start"/>
|
|
<echo>
|
|
Build started at: ${start.DSTAMP} ${start.TSTAMP}
|
|
-----------------
|
|
project.home= ${project.home}
|
|
sfptd.lib.path= ${sfptd.lib.path}
|
|
</echo>
|
|
<mkdir dir="${building.path}"/>
|
|
<mkdir dir="${building.path}/sftpd-jar"/>
|
|
<mkdir dir="${project.home}/target"/>
|
|
</target>
|
|
|
|
<target name="compile_sftpd" depends="init">
|
|
<echo>
|
|
Compiling DBCFX
|
|
-------------
|
|
</echo>
|
|
<javac
|
|
srcdir="${sfptd.src.path}"
|
|
destdir="${sfptd.classes.path}"
|
|
debug="on"
|
|
deprecation="off"
|
|
failonerror="true">
|
|
<classpath refid="all.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="jar_sftpd" depends="compile_sftpd">
|
|
<echo>
|
|
Creating sfptd.jar
|
|
-------------
|
|
</echo>
|
|
<jar destfile="${building.path}/sftpd.jar">
|
|
<fileset dir="${sfptd.classes.path}">
|
|
<patternset refid="sfptd.jar.classes"/>
|
|
</fileset>
|
|
</jar>
|
|
</target>
|
|
|
|
<target name="copyear" depends="jar_sftpd">
|
|
<mkdir dir="${project.home}/target/jar_${start.DSTAMP}_${start.TSTAMP}"/>
|
|
<copy todir="${build.path}/jar_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/sftpd.jar"/>
|
|
</target>
|
|
|
|
<target name="clean" depends="copyear">
|
|
<delete dir="${building.path}"/>
|
|
</target>
|
|
|
|
</project>
|