Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
99 lines (80 sloc) 3.43 KB
<project name="JMeter-AMF" default="help" basedir=".">
<description>
JMeter AMF
</description>
<property file="build.properties" />
<property name="jmeter.home" value="/opt/jmeter-2.5" />
<property name="src.dir" value="src/protocol/amf" />
<property name="lib.dir" value="${jmeter.home}/lib" />
<property name="lib.api" value="${jmeter.home}/lib/api" />
<property name="lib.ext" value="${jmeter.home}/lib/ext" />
<property name="build.dir" value="build" />
<property name="build.amf" value="build/protocol/amf" />
<property name="dist.dir" value="dist" />
<property name="pack.dir" value="bin" />
<!-- Compilation Params -->
<property name="optimize" value="on" />
<property name="deprecation" value="off" />
<property name="target.java.version" value="1.5" />
<property name="src.java.version" value="1.5" />
<property name="encoding" value="UTF-8" />
<property name="includeAntRuntime" value="false" />
<!-- Deprecated, thanks a lot Adobe
<property name="blazeds.version" value="4.0.0.14931" />
<property name="blazeds.core.jar" value="http://maven.springframework.org/external/com/adobe/blazeds/blazeds-core/${blazeds.version}/blazeds-core-${blazeds.version}.jar" />
<property name="blazeds.common.jar" value="http://maven.springframework.org/external/com/adobe/blazeds/blazeds-common/${blazeds.version}/blazeds-common-${blazeds.version}.jar" />
-->
<path id="srcpath">
<pathelement location="${src.dir}" />
</path>
<path id="classpath">
<fileset dir="${lib.dir}" includes="*.jar" />
<fileset dir="${lib.ext}" includes="*.jar" />
</path>
<target name="init">
<tstamp />
<echo>JMeter-AMF</echo>
</target>
<target name="help">
</target>
<target name="clean" depends="init">
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
<delete file="${pack.dir}/JMeter-AMF.jar" />
</target>
<target name="compile" depends="init" description="Compile JMeter-AMF classes">
<mkdir dir="${build.amf}"/>
<javac srcdir="${src.dir}" destdir="${build.amf}" optimize="${optimize}" source="${src.java.version}" debug="on" target="${target.java.version}"
includeAntRuntime="${includeAntRuntime}" deprecation="${deprecation}" encoding="${encoding}">
<include name="**/*.java" />
<classpath>
<path refid="classpath" />
</classpath>
</javac>
<copy todir="${build.amf}">
<fileset dir="${src.dir}" excludes="**/*.java" />
</copy>
</target>
<target name="package" depends="init, compile" description="JAR the plugin">
<jar jarfile="${pack.dir}/JMeter-AMF.jar"
basedir="${build.amf}">
</jar>
</target>
<target name="install" depends="init, clean, compile, package" description="Copy JMeter-AMF to the JMeter install directory">
<delete file="${lib.ext}/JMeter-AMF.jar" />
<copy file="${pack.dir}/JMeter-AMF.jar" tofile="${lib.ext}/JMeter-AMF.jar" />
</target>
<target name="dist" depends="init, clean, compile, package" description="Build a tarball for the current version">
<exec command="git describe --tags" outputproperty="release.version" />
<tar destfile="${dist.dir}/JMeter-AMF-${release.version}.tar.gz"
compression="gzip"
basedir="${basedir}"
includes="${pack.dir}/JMeter-AMF.jar,README,LICENSE" />
</target>
<!--
<target name="install-deps" description="Download dependencies">
<get src="${blazeds.core.jar}" dest="${lib.ext}" skipexisting="true" />
<get src="${blazeds.common.jar}" dest="${lib.ext}" skipexisting="true" />
</target>
-->
</project>
Something went wrong with that request. Please try again.