|
What this is
This file is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn
Java by Example" TM.
Other links
The source code
<?xml version="1.0"?>
<project name="perfmsr-core" default="main" basedir=".">
<property file='${user.home}/build.properties' />
<property file='../sPerfPlugins/build.properties' />
<property file='build.properties' />
<property name='plugin' value='org.eclipse.perfmsr.core' />
<property environment="env" />
<target name='init'>
<target name="main" depends="postcvs, updateVersionNumbers"
description="Build the plugin and save it in the performance web site ">
<property name="plugin.dir" value="${env.TEMP}/perfbld/${plugin}_${perf.version}" />
<delete dir="${plugin.dir}" />
<mkdir dir="${plugin.dir}" />
<jar jarfile="${plugin.dir}/perfmsr.jar" basedir="bin" />
<jar jarfile="${plugin.dir}/perfmsrsrc.jar" basedir="src" />
<copy todir="${plugin.dir}">
<fileset dir="." excludes='.*, src/**, bin/**, build/**, build.*, gkpi.xml' />
</copy>
<antcall target="updateForNative" />
</target>
<target name='postcvs' />
<!--
This is used if you are rebuilding the native methods, it puts the jar in a known place for
the javah command.
-->
<target name='updateForNative' if='perf.jars.out'>
<copy file="${plugin.dir}/perfmsr.jar" todir="${perf.jars.out}" preservelastmodified="true" />
</target>
<target name='wsad-build' depends='init, main'
description='Put the plugin into the format that the WSAD drop site expects'>
<delete dir="${env.TEMP}/plugins"/>
<mkdir dir="${env.TEMP}/plugins/${plugin}"/>
<copy todir="${env.TEMP}/plugins/${plugin}">
<fileset dir='.' includes='coretools.jar, tools.jar, plugin.*, etc/**, schema/**, build/**' />
</copy>
<mkdir dir="${env.TEMP}/plugins/${plugin}/src"/>
<jar jarfile="${env.TEMP}/plugins/${plugin}/src/perfmsr-src.jar" basedir="src" />
<mkdir dir="${env.TEMP}/wsaddrop"/>
<zip zipfile="${env.TEMP}/wsaddrop/${plugin}-${DSTAMP}.zip" basedir="${env.TEMP}" includes="plugins/**" />
</target>
<target name='updateVersionNumbers' if='karasiuk.extensions'>
</project>
|