2006-02-21 18:28:33 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2006-07-27 23:22:58 -04:00
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
2006-02-21 18:28:33 -05:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2006-03-16 00:41:06 -05:00
|
|
|
<project default="jar:jar"
|
|
|
|
xmlns:j="jelly:core"
|
|
|
|
xmlns:u="jelly:util"
|
|
|
|
xmlns:ant="jelly:ant"
|
|
|
|
xmlns:util="jelly:util"
|
|
|
|
xmlns:artifact="artifact"
|
|
|
|
>
|
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<goal name="default">
|
|
|
|
<attainGoal name="clean"/>
|
|
|
|
<attainGoal name="dist:build-bin"/>
|
|
|
|
</goal>
|
2006-02-21 18:28:33 -05:00
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<goal
|
|
|
|
name="dist:prepare-bin-filesystem"
|
|
|
|
prereqs="jar:install"
|
|
|
|
description="Builds the binary distribution file system.">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This is the directory where everything is copied to so that it can
|
|
|
|
be archived.
|
|
|
|
-->
|
2006-02-21 18:28:33 -05:00
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<ant:delete dir="${maven.dist.bin.assembly.dir}"/>
|
|
|
|
<ant:mkdir dir="${maven.dist.bin.assembly.dir}"/>
|
|
|
|
<ant:mkdir dir="${maven.build.dir}/unjar"/>
|
|
|
|
|
|
|
|
<ant:echo>
|
|
|
|
${maven.dist.bin.assembly.dir}
|
|
|
|
+-------------------------------------------------------+
|
|
|
|
| C R E A T I N G J M E T E R B I N A R Y D I S T R I B U T I O N |
|
|
|
|
+-------------------------------------------------------+
|
|
|
|
</ant:echo>
|
|
|
|
|
|
|
|
<copy file="target\${maven.final.name}.jar" todir="${maven.dist.bin.assembly.dir}\lib\ext" overwrite="true"/>
|
|
|
|
|
2006-02-21 18:28:33 -05:00
|
|
|
<!-- copy JMeter TestPlans -->
|
2006-04-21 00:04:38 -04:00
|
|
|
<copy todir="${maven.dist.bin.assembly.dir}\bin\testfiles" overwrite="true">
|
2006-02-21 18:28:33 -05:00
|
|
|
<fileset dir="resource\TestPlans"/>
|
|
|
|
</copy>
|
2006-04-21 00:04:38 -04:00
|
|
|
|
2006-02-21 18:28:33 -05:00
|
|
|
<!-- jmeter bin files -->
|
2006-04-21 00:04:38 -04:00
|
|
|
<copy file="resource\jmeter" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter-server" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter.bat" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter-n.bat" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter-server.bat" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter-t.bat" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeterw.bat" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\BeanShellAssertion.bshrc" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\BeanShellFunction.bshrc" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\BeanShellSampler.bshrc" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\BeanShellSampler.bshrc" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\log4j.conf" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\users.dtd" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmeter.properties" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\jmetertest.properties" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
2006-04-21 00:18:49 -04:00
|
|
|
<copy file="resource\saveservice.properties" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
2006-04-21 00:04:38 -04:00
|
|
|
<copy file="resource\upgrade.properties" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\logkit.xml" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
|
|
<copy file="resource\users.xml" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
2006-02-21 18:28:33 -05:00
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<copy file="resource\jar_usage.txt" todir="${maven.dist.bin.assembly.dir}\lib" overwrite="true"/>
|
|
|
|
<copy file="resource\LICENSE(jdom).txt" todir="${maven.dist.bin.assembly.dir}\lib" overwrite="true"/>
|
|
|
|
<copy file="resource\LICENSE(jtidy).txt" todir="${maven.dist.bin.assembly.dir}\lib" overwrite="true"/>
|
|
|
|
<copy file="resource\LICENSE(XPP3).txt" todir="${maven.dist.bin.assembly.dir}\lib" overwrite="true"/>
|
|
|
|
<copy file="resource\LICENSE(XStream).txt" todir="${maven.dist.bin.assembly.dir}\lib" overwrite="true"/>
|
|
|
|
|
|
|
|
<j:set var="binDir" value="${maven.dist.bin.assembly.dir}/bin"/>
|
|
|
|
<j:set var="libDir" value="${maven.dist.bin.assembly.dir}/lib"/>
|
|
|
|
<j:set var="extDir" value="${maven.dist.bin.assembly.dir}/lib/ext"/>
|
|
|
|
|
|
|
|
<ant:mkdir dir="${libDir}"/>
|
|
|
|
<ant:mkdir dir="${extDir}"/>
|
|
|
|
|
|
|
|
<j:forEach var="artifact" items="${pom.artifacts}">
|
2006-03-16 00:41:06 -05:00
|
|
|
<j:set var="dependency" value="${artifact.dependency}"/>
|
|
|
|
<echo>${artifact.path}</echo>
|
|
|
|
<j:if test="${dependency.getProperty('bin') == 'true'}">
|
|
|
|
<ant:copy todir="${binDir}" file="${artifact.path}"/>
|
|
|
|
<j:if test="${dependency.extension == 'jar'}">
|
|
|
|
<j:set var="classpath" value="${classpath} ../bin/${artifact.name}"/>
|
|
|
|
</j:if>
|
|
|
|
</j:if>
|
2006-04-21 00:04:38 -04:00
|
|
|
</j:forEach>
|
2006-03-16 00:41:06 -05:00
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<j:forEach var="artifact" items="${pom.artifacts}">
|
2006-03-16 00:41:06 -05:00
|
|
|
<j:set var="dependency" value="${artifact.dependency}"/>
|
|
|
|
<echo>${artifact.path}</echo>
|
|
|
|
<j:if test="${dependency.getProperty('lib') == 'true'}">
|
|
|
|
<ant:copy todir="${libDir}" file="${artifact.path}"/>
|
|
|
|
<j:if test="${dependency.extension == 'jar'}">
|
|
|
|
<j:set var="classpath" value="${classpath} ../lib/${artifact.name}"/>
|
|
|
|
</j:if>
|
|
|
|
</j:if>
|
2006-04-21 00:04:38 -04:00
|
|
|
</j:forEach>
|
2006-03-16 00:41:06 -05:00
|
|
|
|
2006-04-21 00:04:38 -04:00
|
|
|
<j:forEach var="artifact" items="${pom.artifacts}">
|
2006-03-16 00:41:06 -05:00
|
|
|
<j:set var="dependency" value="${artifact.dependency}"/>
|
|
|
|
<echo>${artifact.path}</echo>
|
|
|
|
<j:if test="${dependency.getProperty('ext') == 'true'}">
|
|
|
|
<ant:copy todir="${extDir}" file="${artifact.path}"/>
|
|
|
|
<j:if test="${dependency.extension == 'jar'}">
|
|
|
|
<j:set var="classpath" value="${classpath} ../lib/ext/${artifact.name}"/>
|
|
|
|
</j:if>
|
|
|
|
</j:if>
|
2006-04-21 00:04:38 -04:00
|
|
|
</j:forEach>
|
2006-02-21 18:28:33 -05:00
|
|
|
</goal>
|
2006-04-21 00:04:38 -04:00
|
|
|
</project>
|