mirror of https://github.com/apache/activemq.git
125 lines
6.4 KiB
XML
Executable File
125 lines
6.4 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2005-2006 The Apache Software Foundation
|
|
|
|
Licensed 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
|
|
|
|
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.
|
|
-->
|
|
<project default="jar:jar"
|
|
xmlns:j="jelly:core"
|
|
xmlns:u="jelly:util"
|
|
xmlns:ant="jelly:ant"
|
|
xmlns:util="jelly:util"
|
|
xmlns:artifact="artifact"
|
|
>
|
|
|
|
<goal name="default">
|
|
<attainGoal name="clean"/>
|
|
<attainGoal name="dist:build-bin"/>
|
|
</goal>
|
|
|
|
<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.
|
|
-->
|
|
|
|
<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"/>
|
|
|
|
<!-- copy JMeter TestPlans -->
|
|
<copy todir="${maven.dist.bin.assembly.dir}\bin\testfiles" overwrite="true">
|
|
<fileset dir="resource\TestPlans"/>
|
|
</copy>
|
|
|
|
<!-- jmeter bin files -->
|
|
<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"/>
|
|
<copy file="resource\saveservice.properties" todir="${maven.dist.bin.assembly.dir}\bin" overwrite="true"/>
|
|
<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"/>
|
|
|
|
<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}">
|
|
<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>
|
|
</j:forEach>
|
|
|
|
<j:forEach var="artifact" items="${pom.artifacts}">
|
|
<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>
|
|
</j:forEach>
|
|
|
|
<j:forEach var="artifact" items="${pom.artifacts}">
|
|
<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>
|
|
</j:forEach>
|
|
</goal>
|
|
</project> |