Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (47 sloc) 1.62 KB
<project default="compile">
<property environment="env" />
<property name="pdi_home" location="${env.PDI_HOME}" />
<property name="plugin_name" value="AdvancedHttp" />
<property name="plugin_jar" value="advanced_http.jar" />
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<path id="pdi_classpath">
<fileset dir="${pdi_home}/lib">
<include name="*.jar" />
</fileset>
<filelist>
<file name="${pdi_home}/libswt/osx/swt.jar" />
<file name="${pdi_home}/libext/commons/commons-httpclient-3.1.jar" />
</filelist>
</path>
<target name="init">
<available file="${pdi_home}" property="pdi_home_ok"/>
<fail message="You have to set env variable PDI_HOME" unless="pdi_home_ok"/>
<echo message="Using PDI_HOME : ${pdi_home}" />
<mkdir dir="${build}" />
</target>
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}" debug="true">
<classpath refid="pdi_classpath" />
</javac>
<copy todir="${build}">
<fileset dir="${src}" includes="**/*.properties" />
</copy>
</target>
<target name="dist" depends="compile">
<mkdir dir="${dist}" />
<copy todir="${dist}/${plugin_name}">
<fileset dir="plugins/${plugin_name}" />
</copy>
<jar jarfile="${dist}/${plugin_name}/${plugin_jar}" basedir="${build}" />
</target>
<target name="release" depends="dist">
<fail message="You have to set version with -Dversion=" unless="version"/>
<zip zipfile="advanced_http.${version}.zip" basedir="${dist}"/>
</target>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>