blob: e8bb8fbbea23d3cd949418d8d79561d64eefd133 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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
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="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:license="license" xmlns:util="jelly:util" xmlns:maven="jelly:maven" xmlns:artifact="artifact">
<goal name="default" prereqs="jar:install"/>
<postGoal name="clean">
<delete dir="${basedir}/activemq-data" />
<delete dir="${basedir}/foo" />
</postGoal>
<!-- ================================================================ -->
<!-- GOALS for running benchmarks -->
<!-- ================================================================ -->
<goal name="run:broker" description="Runs the broker" prereqs="setclasspath">
<j:if test="${empty(uri)}">
<j:set var="uri" value="broker://(tcp://localhost:61616)?useJmx=true" />
</j:if>
<echo>Running the ActiveMQ broker for the URI ${uri}</echo>
<java classname="org.apache.activemq.console.Main" fork="true">
<classpath refid="test.classpath" />
<arg value="${uri}" />
<sysproperty key="com.sun.management.jmxremote.port" value="5001" />
<sysproperty key="com.sun.management.jmxremote.authenticate" value="false" />
<sysproperty key="com.sun.management.jmxremote.ssl" value="false" />
</java>
</goal>
<goal name="run:consumer" description="Runs the broker" prereqs="setclasspath">
<j:if test="${empty(uri)}">
<j:set var="uri" value="tcp://localhost:61616" />
</j:if>
<echo>Running the ActiveMQ consumer for the URI ${uri}</echo>
<java classname="org.apache.activemq.console.simple.Consumer" fork="false">
<classpath refid="test.classpath" />
<arg value="${uri}" />
</java>
</goal>
<goal name="setclasspath" prereqs="java:compile">
<path id="test.classpath">
<pathelement path="${maven.build.dest}" />
<pathelement path="target/classes" />
<pathelement path="target/test-classes" />
<path refid="maven.dependency.classpath" />
</path>
</goal>
<goal name="reports:site">
<attainGoal name="site" />
</goal>
<goal name="jar:deploy-javadoc"
description="Deploys javadoc binary" prereqs="javadoc:install">
<artifact:deploy
artifact="${basedir}/target/${pom.artifactId}-${pom.currentVersion}_javadoc.jar"
type="jar"
project="${pom}"
/>
</goal>
</project>