activemq/activemq-web/maven.xml

42 lines
1.5 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="default" xmlns:j="jelly:core" xmlns:ant="jelly:ant" xmlns:maven="jelly:maven">
<!-- we want the code to be built as a jar not a war -->
<goal name="default" prereqs="jar:install"/>
<goal name="run" prereqs="setclasspath"
description="Runs the Web Application in an embedded Jetty server">
<echo>Running the Web Application</echo>
<java classname="org.apache.activemq.web.JettyServer" fork="yes" maxmemory="100M">
<classpath refid="test.classpath"/>
</java>
</goal>
<goal name="setclasspath" prereqs="test: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>
</project>