Author: davsclaus
Date: Thu Apr 10 21:59:28 2008
New Revision: 647047
URL: http://svn.apache.org/viewvc?rev=647047&view=rev
Log:
CAMEL-46: Ant files to run the examples. Thanks to Peter Jones for the great
patches.
Added:
activemq/camel/trunk/examples/camel-example-bam/build.xml
activemq/camel/trunk/examples/camel-example-cxf/build.xml
activemq/camel/trunk/examples/camel-example-docs/build.xml
activemq/camel/trunk/examples/camel-example-etl/build.xml
activemq/camel/trunk/examples/camel-example-jms-file/build.xml
activemq/camel/trunk/examples/camel-example-jms-file/src/main/resources/log4j.properties
activemq/camel/trunk/examples/camel-example-osgi/README.txt
activemq/camel/trunk/examples/camel-example-osgi/build.xml
activemq/camel/trunk/examples/camel-example-osgi/src/main/resources/log4j.properties
activemq/camel/trunk/examples/camel-example-spring-xquery/build.xml
activemq/camel/trunk/examples/camel-example-spring/build.xml
activemq/camel/trunk/examples/common_build.xml
Modified:
activemq/camel/trunk/examples/README.txt
activemq/camel/trunk/examples/camel-example-bam/README.txt
activemq/camel/trunk/examples/camel-example-cxf/README.txt
activemq/camel/trunk/examples/camel-example-docs/README.txt
activemq/camel/trunk/examples/camel-example-etl/README.txt
activemq/camel/trunk/examples/camel-example-jms-file/README.txt
activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt
activemq/camel/trunk/examples/camel-example-spring/README.txt
Modified: activemq/camel/trunk/examples/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/README.txt (original)
+++ activemq/camel/trunk/examples/README.txt Thu Apr 10 21:59:28 2008
@@ -1,24 +1,32 @@
Welcome to the Apache Camel Examples!
=====================================
-This directory contains the various examples for working with Apache Camel.
+This directory contains the various examples for working with Apache
+Camel. The examples can be run using Maven or Ant. When using the Maven
+command, Maven will attempt to download the required dependencies from a
+central repository to your local repository. Using Ant to run the
+examples instead may require that you have additional products
+installed. View the individual example READMEs for details.
They are described in detail here
http://activemq.apache.org/camel/examples.html
-For details of how to rn these examples see
+For details of how to run these examples see
http://activemq.apache.org/camel/running-examples.html
-Before you start we recommend you install a recent distribution of Maven which
we use to run our examples
+Before you start we recommend you install a recent distribution of
+Maven, or Ant, which we use to run our examples
http://maven.apache.org/
+ http://ant.apache.org/
-If you hit any problems please talk to us on the Camel Forums
+If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
+Please help us make Apache Camel better - we appreciate any feedback you
+may have.
Enjoy!
------------------------
The Camel riders!
-
\ No newline at end of file
+
Modified: activemq/camel/trunk/examples/camel-example-bam/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-bam/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-bam/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-bam/README.txt Thu Apr 10
21:59:28 2008
@@ -1,16 +1,40 @@
BAM Example
===========
-This example shows how to perform Business Activity Monitoring (BAM) with
Camel.
+This example shows how to perform Business Activity Monitoring (BAM)
+with Camel. It can be run using Maven or Ant.
For a background in BAM see
http://activemq.apache.org/camel/bam.html
-To run the example type
+To run the example with Maven, type
mvn camel:run
-You can see the BAM activities defined in
- src/main/java/org/apache/camel/example/bam/MyActivities.java
+To run the example with Ant
+ a. You need to have Hibernate Core, Entity Manager and HSQLDB installed.
+ They can be downloaded from the following locations
+ Hibernate Core 3.2.6 GA
+ http://www.hibernate.org
+ Hibernate Entity Manager 3.2.0.GA
+
http://prdownloads.sourceforge.net/hibernate/hibernate-entitymanager-3.2.0.GA.zip?download
+ HSQLDB
+ http://hsqldb.org/
+
+ b. Export / Set home directories for the above as follows
+ UNIX
+ export HIBERNATE_CORE_HOME=<path to Hibernate install directory>
+ export HIBERNATE_EM_HOME=<path to Hibernate EM install directory>
+ export HSQLDB_HOME=<path to HSQLDB install directory>
+ Windows
+ set HIBERNATE_CORE_HOME=<path to Hibernate install directory>
+ set HIBERNATE_EM_HOME=<path to Hibernate EM install directory>
+ set HSQLDB_HOME=<path to HSQLDB install directory>
+
+ c. To Run the example using Ant, type
+ ant
+
+You can see the BAM activies defined in
+ src/main/java/org/apache/camel/example/bam/MyActivites.java
For the latest & greatest documentation on how to use this example please see
http://activemq.apache.org/camel/bam-example.html
@@ -18,8 +42,8 @@
If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-bam/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-bam/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-bam/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-bam/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,44 @@
+<?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 name="camel-example-bam" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.HIBERNATE_CORE_HOME" message="You must download hibernate
core and set HIBERNATE_CORE_HOME to run this demo."/>
+ <fail unless="env.HIBERNATE_EM_HOME" message="You must download hibernate
entity manager and set HIBERNATE_EM_HOME to run this demo."/>
+ <fail unless="env.HSQLDB_HOME" message="You must download HSQLDB and set
HSQLDB_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-bam"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-bam-*.jar"/>
+ <include name="**/commons-collections-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ <path refid="camel.spring.classpath"/>
+ <path refid="hibernate.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun mainClass="org.apache.camel.example.bam.Main"/>
+ </target>
+
+</project>
Modified: activemq/camel/trunk/examples/camel-example-cxf/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-cxf/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-cxf/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-cxf/README.txt Thu Apr 10
21:59:28 2008
@@ -1,19 +1,39 @@
CXF Example
===========
-This example shows how to work with CXF and Camel.
+This example shows how to work with CXF and Camel. It can be run using
+Maven or Ant.
To run the example type
mvn exec:java
+To run the example with Ant
+ a. You need to have Apache ActiveMQ and Apache CXF installed. They can be
+ downloaded from the following locations
+ Apache ActiveMQ
+ http://activemq.apache.org/
+ Apache CXF
+ http://incubator.apache.org/cxf/
+
+ b. Export / Set home directories for the above as follows
+ UNIX
+ export ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ export CXF_HOME=<path to CXF install directory>
+ Windows
+ set ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ set CXF_HOME=<path to CXF install directory>
+
+ c. To Run the example using Ant, type
+ ant
+
For the latest & greatest documentation on how to use this example please see
http://activemq.apache.org/camel/cxf-example.html
If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-cxf/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-cxf/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-cxf/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-cxf/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,81 @@
+<?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 name="camel-example-cxf" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set
your ACTIVEMQ_HOME to run this demo."/>
+ <fail unless="env.CXF_HOME" message="You must download CXF and set your
CXF_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-cxf"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-cxf-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ <path refid="camel.core.classpath"/>
+ <path refid="activemq.classpath"/>
+ <path refid="cxf.classpath"/>
+ </path>
+
+ <property name="cxf.home" value="${env.CXF_HOME}"/>
+ <path id="cxf.classpath">
+ <fileset dir="${cxf.home}">
+ <include name="**/cxf-*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="generate.code">
+ <echo level="info" message="Generating code using wsdl2java..."/>
+ <wsdl2java file="hello_world.wsdl"/>
+ </target>
+
+ <target name="run" depends="generate.code,build"
+ description="Compile and run the sample">
+ <camelrun mainClass="org.apache.camel.example.cxf.CamelCxfExample"/>
+ </target>
+
+ <available property="wsdl.dir" value="${build.resources.dir}/wsdl"
+ file="${build.resources.dir}/wsdl"/>
+ <property name="wsdl.dir" location="."/>
+
+ <macrodef name="wsdl2java">
+ <attribute name="srcdestdir"
default="${build.dir}/generated/src/main/java"/>
+ <attribute name="destdir" default="${build.classes.dir}"/>
+ <attribute name="file"/>
+ <attribute name="dir" default="${wsdl.dir}"/>
+ <sequential>
+ <mkdir dir="@{destdir}"/>
+ <mkdir dir="@{srcdestdir}"/>
+ <java failonerror="true"
classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="yes">
+ <classpath>
+ <path refid="cxf.classpath" />
+ </classpath>
+ <sysproperty key="exitOnFinish" value="true"/>
+ <arg value="-verbose"/>
+ <arg value="-d"/>
+ <arg value="@{srcdestdir}"/>
+ <arg value="@{dir}/@{file}"/>
+ </java>
+ </sequential>
+ </macrodef>
+
+</project>
Modified: activemq/camel/trunk/examples/camel-example-docs/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-docs/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-docs/README.txt Thu Apr 10
21:59:28 2008
@@ -1,27 +1,32 @@
Documentation Example
=====================
-This example creates a bunch of routes to show how
-the Maven reporting tools can visualise routes
+This example creates a bunch of routes to show how the Maven reporting
+tools can visualise routes
http://activemq.apache.org/camel/docs-example.html
-This example also acts as an integration test case for the GraphViz
visualisation feature
+This example also acts as an integration test case for the GraphViz
+visualisation feature
http://activemq.apache.org/camel/visualisation.html
-To generate the documentation type
+To run the example using Maven and generate the documentation type
mvn camel:dot
+To run the example using Ant and generate the documentation type
+ ant
+
The reports should be generated in
target/site/cameldoc/index.html
-You can see the routing rules by looking at the java code in the src/main/java
directory
-and the Spring XML configuration file in src/main/resources/META-INF/spring
+You can see the routing rules by looking at the java code in the
+src/main/java directory and the Spring XML configuration file in
+src/main/resources/META-INF/spring
If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you
+may have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-docs/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-docs/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-docs/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,45 @@
+<?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 name="camel-example-docs" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <property name="project.name" value="camel-example-docs"/>
+
+ <path id="sample.build.classpath">
+ <path refid="camel.spring.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun>
+ <arguments>
+ <arg value="-duration"/>
+ <arg value="2s"/>
+ <arg value="-o"/>
+ <arg value="${build.dir}/site/cameldoc"/>
+ </arguments>
+ </camelrun>
+ <generatedot dotFileDir="${build.dir}/site/cameldoc/main"
outputType="svg"/>
+ <generatedot dotFileDir="${build.dir}/site/cameldoc/main"
outputType="cmapx"/>
+ <generatedot dotFileDir="${build.dir}/site/cameldoc/otherRoutes"
outputType="svg"/>
+ <generatedot dotFileDir="${build.dir}/site/cameldoc/otherRoutes"
outputType="cmapx"/>
+ </target>
+
+</project>
Modified: activemq/camel/trunk/examples/camel-example-etl/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-etl/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-etl/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-etl/README.txt Thu Apr 10
21:59:28 2008
@@ -1,7 +1,8 @@
Extract Transform Load (ETL) Example
====================================
-This example shows how to use Camel as an ETL tool
+This example shows how to use Camel as an ETL tool. It can be run using
+Maven or Ant
http://activemq.apache.org/camel/etl.html
For a full description of this example please see
@@ -10,14 +11,42 @@
To run the example type
mvn camel:run
-You can see the routing rules by looking at the java code in the src/main/java
directory
-and the Spring XML configuration lives in src/main/resources/META-INF/spring
+To run the example with Ant
+ a. You need to have Hibernate Core, Entity Manager, HSQLDB and Juel
+ installed. They can be downloaded from the following locations
+ Hibernate Core 3.2.6 GA
+ http://www.hibernate.org
+ Hibernate Entity Manager 3.2.0.GA
+
http://prdownloads.sourceforge.net/hibernate/hibernate-entitymanager-3.2.0.GA.zip?download
+ HSQLDB
+ http://hsqldb.org/
+ Juel
+ http://juel.sourceforge.net/
+
+ b. Export / Set home directories for the above as follows
+ UNIX
+ export HIBERNATE_CORE_HOME=<path to Hibernate install directory>
+ export HIBERNATE_EM_HOME=<path to Hibernate EM install directory>
+ export HSQLDB_HOME=<path to HSQLDB install directory>
+ export JUEL_HOME=<path to Juel install directory>
+ Windows
+ set HIBERNATE_CORE_HOME=<path to Hibernate install directory>
+ set HIBERNATE_EM_HOME=<path to Hibernate EM install directory>
+ set HSQLDB_HOME=<path to HSQLDB install directory>
+ set JUEL_HOME=<path to Juel install directory>
+
+ c. To Run the example using Ant, type
+ ant
+
+You can see the routing rules by looking at the java code in the src/main/java
+directory and the Spring XML configuration lives in
+ src/main/resources/META-INF/spring
If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-etl/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-etl/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-etl/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-etl/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,52 @@
+<?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 name="camel-example-etl" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.HIBERNATE_CORE_HOME" message="You must download hibernate
core and set HIBERNATE_CORE_HOME to run this demo."/>
+ <fail unless="env.HIBERNATE_EM_HOME" message="You must download hibernate
entity manager and set HIBERNATE_EM_HOME to run this demo."/>
+ <fail unless="env.HSQLDB_HOME" message="You must download HSQLDB and set
HSQLDB_HOME to run this demo."/>
+ <fail unless="env.JUEL_HOME" message="You must download Juel and set
JUEL_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-etl"/>
+
+ <property name="juel.home" value="${env.JUEL_HOME}"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-juel-*.jar"/>
+ <include name="**/camel-jpa-*.jar"/>
+ <include name="**/camel-jaxb-*.jar"/>
+ <include name="**/commons-collections-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ <fileset dir="${juel.home}">
+ <include name="**/juel-*.jar"/>
+ </fileset>
+ <path refid="camel.spring.classpath"/>
+ <path refid="hibernate.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun mainClass="org.apache.camel.example.etl.Main"/>
+ </target>
+
+</project>
Modified: activemq/camel/trunk/examples/camel-example-jms-file/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-jms-file/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-jms-file/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-jms-file/README.txt Thu Apr 10
21:59:28 2008
@@ -1,20 +1,38 @@
JMS & File Example
==================
-This example shows how to work with files and JMS.
-The example consumes messages from a queue and writes them to the file system.
+This example shows how to work with files and JMS. It can be run using
+Maven or Ant.
-For the latest & greatest documentation on how to use this example please see
+The example consumes messages from a queue and writes them to the file
+system.
+
+For the latest & greatest documentation on how to use this example
+please see
http://activemq.apache.org/camel/walk-through-an-example.html
The example should run if you type
mvn exec:java
-
-If you hit any problems please let us know on the Camel Forums
+
+To run the example with Ant
+ a. You need to have Apache ActiveMQ installed. It can be downloaded from
+ http://activemq.apache.org/
+
+ b. Export / Set ACTIVEMQ_HOME to the top level Apache ActiveMQ install
+ directory
+ UNIX
+ export ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ Windows
+ set ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+
+ c. To run the example using Ant, type
+ ant
+
+If you hit an problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-jms-file/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-jms-file/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-jms-file/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-jms-file/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,41 @@
+<?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 name="camel-example-jms-file" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set
your ACTIVEMQ_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-jms-file"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-jms-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ <path refid="camel.core.classpath"/>
+ <path refid="activemq.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun
mainClass="org.apache.camel.example.jmstofile.CamelJmsToFileExample"/>
+ </target>
+
+</project>
Added:
activemq/camel/trunk/examples/camel-example-jms-file/src/main/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-jms-file/src/main/resources/log4j.properties?rev=647047&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-jms-file/src/main/resources/log4j.properties
(added)
+++
activemq/camel/trunk/examples/camel-example-jms-file/src/main/resources/log4j.properties
Thu Apr 10 21:59:28 2008
@@ -0,0 +1,38 @@
+## ------------------------------------------------------------------------
+## 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.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see INFO output
on the console.
+#
+log4j.rootLogger=INFO, out
+
+#log4j.logger.org.apache.activemq=DEBUG
+
+# uncomment the next line to debug Camel
+log4j.logger.org.apache.camel=DEBUG
+
+log4j.logger.org.apache.camel.impl.converter=INFO
+log4j.logger.org.apache.camel.util.ResolverUtil=INFO
+
+log4j.logger.org.springframework=WARN
+log4j.logger.org.hibernate=WARN
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} -
%m%n
Added: activemq/camel/trunk/examples/camel-example-osgi/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-osgi/README.txt?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-osgi/README.txt (added)
+++ activemq/camel/trunk/examples/camel-example-osgi/README.txt Thu Apr 10
21:59:28 2008
@@ -0,0 +1,21 @@
+OSGi Example
+=====================
+
+This example shows how use OSGi with Camel. It can be run using Maven or
+Ant.
+
+To run the example using Maven type
+ mvn camel:run
+
+To run the example using Ant type
+ ant
+
+If you hit any problems please let us know on the Camel Forums
+ http://activemq.apache.org/camel/discussion-forums.html
+
+Please help us make Apache Camel better - we appreciate any feedback you
+may have. Enjoy!
+
+------------------------
+The Camel riders!
+
Added: activemq/camel/trunk/examples/camel-example-osgi/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-osgi/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-osgi/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-osgi/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,41 @@
+<?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 name="camel-example-osgi" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <property name="project.name" value="camel-example-osgi"/>
+
+ <path id="sample.build.classpath">
+ <path refid="camel.spring.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun>
+ <arguments>
+ <arg value="-duration"/>
+ <arg value="8s"/>
+ <arg value="-o"/>
+ <arg value="${build.dir}/site/cameldoc"/>
+ </arguments>
+ </camelrun>
+ </target>
+
+</project>
Added:
activemq/camel/trunk/examples/camel-example-osgi/src/main/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-osgi/src/main/resources/log4j.properties?rev=647047&view=auto
==============================================================================
---
activemq/camel/trunk/examples/camel-example-osgi/src/main/resources/log4j.properties
(added)
+++
activemq/camel/trunk/examples/camel-example-osgi/src/main/resources/log4j.properties
Thu Apr 10 21:59:28 2008
@@ -0,0 +1,38 @@
+## ------------------------------------------------------------------------
+## 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.
+## ------------------------------------------------------------------------
+
+#
+# The logging properties used for eclipse testing, We want to see INFO output
on the console.
+#
+log4j.rootLogger=INFO, out
+
+#log4j.logger.org.apache.activemq=DEBUG
+
+# uncomment the next line to debug Camel
+log4j.logger.org.apache.camel=DEBUG
+
+log4j.logger.org.apache.camel.impl.converter=INFO
+log4j.logger.org.apache.camel.util.ResolverUtil=INFO
+
+log4j.logger.org.springframework=WARN
+log4j.logger.org.hibernate=WARN
+
+# CONSOLE appender not used by default
+log4j.appender.out=org.apache.log4j.ConsoleAppender
+log4j.appender.out.layout=org.apache.log4j.PatternLayout
+log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
+#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} -
%m%n
Modified: activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt
(original)
+++ activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt Thu
Apr 10 21:59:28 2008
@@ -7,11 +7,30 @@
* transform messages using XQuery
* use Spring XML to configure all routing rules and components
-The example consumes messages from a directory, transforms them, then sends
them to a queue.
+The example consumes messages from a directory, transforms them, then sends
+them to a queue. It can be run using either Maven or Ant.
-To run the example type
+To run the example using Maven, type
mvn camel:run
+To run the example with Ant
+ a. You need to have Apache ActiveMQ and Saxon installed. They can be
+ downloaded from the following locations
+ Apache ActiveMQ
+ http://activemq.apache.org/
+ Saxon 8.7
+ http://saxon.sourceforge.net/
+
+ b. Export / Set home directories for the above as follows
+ UNIX
+ export ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ export SAXON_HOME=<path to Saxon install directory>
+ Windows
+ set ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ set SAXON_HOME=<path to Saxon install directory>
+
+ c. To Run the example using Ant, type ant
+
You can see the routing rules by looking at the the Spring XML configuration
at src/main/resources/META-INF/spring
@@ -21,8 +40,8 @@
If you hit any problems please let us know on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you may
+have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-spring-xquery/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-xquery/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-xquery/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-spring-xquery/build.xml Thu Apr
10 21:59:28 2008
@@ -0,0 +1,54 @@
+<?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 name="camel-example-spring-xquery" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set
your ACTIVEMQ_HOME to run this demo."/>
+ <fail unless="env.SAXON_HOME" message="You must download Saxon and set your
SAXON_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-spring-xquery"/>
+
+ <property name="saxon.home" value="${env.SAXON_HOME}"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-saxon-*.jar"/>
+ <include name="**/camel-jms-*.jar"/>
+ </fileset>
+ <fileset dir="${saxon.home}">
+ <include name="**/saxon*.jar"/>
+ </fileset>
+ <path refid="camel.spring.classpath"/>
+ <path refid="activemq.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun>
+ <arguments>
+ <arg value="-duration"/>
+ <arg value="2s"/>
+ <arg value="-o"/>
+ <arg value="${build.dir}/site/cameldoc"/>
+ </arguments>
+ </camelrun>
+ </target>
+
+</project>
Modified: activemq/camel/trunk/examples/camel-example-spring/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring/README.txt?rev=647047&r1=647046&r2=647047&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-spring/README.txt Thu Apr 10
21:59:28 2008
@@ -1,25 +1,41 @@
Spring Example
==============
-This example shows how to work with files and JMS, using Spring to boot up
Camel
-and configure the routes.
+This example shows how to work with files and JMS, using Spring to boot up
+Camel and configure the routes. It can be run using Maven or Ant.
-The example consumes messages from a queue and writes them to the file system.
+The example consumes messages from a queue and writes them to the file
+system.
To run the example type
mvn camel:run
-You can see the routing rules by looking at the java code in the src/main/java
directory
-and the Spring XML configuration file in src/main/resources/META-INF/spring
+To run the example with Ant
+ a. You need to have Apache ActiveMQ installed. It can be downloaded from
+ http://activemq.apache.org/
+
+ b. Export / Set ACTIVEMQ_HOME to the top level Apache ActiveMQ intall
+ directory
+ UNIX
+ export ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+ Windows
+ set ACTIVEMQ_HOME=<path to ActiveMQ install directory>
+
+ c. To Run the example using Ant, type
+ ant
+
+You can see the routing rules by looking at the java code in the
+src/main/java directory and the Spring XML configuration lives in
+src/main/resources/META-INF/spring
For the latest & greatest documentation on how to use this example please see
http://activemq.apache.org/camel/spring-example.html
-If you hit any problems please let us know on the Camel Forums
+If you hit any problems please talk to us on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
-Please help us make Apache Camel better - we appreciate any feedback you may
have.
-Enjoy!
+Please help us make Apache Camel better - we appreciate any feedback you
+may have. Enjoy!
------------------------
The Camel riders!
Added: activemq/camel/trunk/examples/camel-example-spring/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring/build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring/build.xml (added)
+++ activemq/camel/trunk/examples/camel-example-spring/build.xml Thu Apr 10
21:59:28 2008
@@ -0,0 +1,48 @@
+<?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 name="camel-example-spring" default="run" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set
your ACTIVEMQ_HOME to run this demo."/>
+
+ <property name="project.name" value="camel-example-spring"/>
+
+ <path id="sample.build.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-jms-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ <path refid="camel.spring.classpath"/>
+ <path refid="activemq.classpath"/>
+ </path>
+
+ <target name="run" depends="build" description="Compile and run the sample">
+ <camelrun>
+ <arguments>
+ <arg value="-duration"/>
+ <arg value="2s"/>
+ <arg value="-o"/>
+ <arg value="${build.dir}/site/cameldoc"/>
+ </arguments>
+ </camelrun>
+ </target>
+
+</project>
Added: activemq/camel/trunk/examples/common_build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/common_build.xml?rev=647047&view=auto
==============================================================================
--- activemq/camel/trunk/examples/common_build.xml (added)
+++ activemq/camel/trunk/examples/common_build.xml Thu Apr 10 21:59:28 2008
@@ -0,0 +1,200 @@
+<?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 name="camel common build file" default="build.classes">
+
+ <property environment="env"/>
+ <property name="build.dir" location="${basedir}/target"/>
+ <property name="build.classes.dir" location="${build.dir}/classes"/>
+ <property name="build.test.classes.dir"
location="${build.dir}/test-classes"/>
+
+ <property name="build.src.dir" location="${basedir}/src/main/java"/>
+ <property name="build.test.dir" location="${basedir}/src/test/java"/>
+ <property name="build.resources.dir"
location="${basedir}/src/main/resources"/>
+
+ <property name="camel.lib" location="../../lib"/>
+
+ <property name="activemq.home" value="${env.ACTIVEMQ_HOME}"/>
+ <property name="hibernate.core.home" value="${env.HIBERNATE_CORE_HOME}"/>
+ <property name="hibernate.entitymanager.home"
value="${env.HIBERNATE_EM_HOME}"/>
+ <property name="hsqldb.home" value="${env.HSQLDB_HOME}"/>
+
+ <condition property="build.src">
+ <available file="${build.src.dir}"/>
+ </condition>
+
+ <condition property="build.test">
+ <and>
+ <available file="${build.test.dir}"/>
+ <available classname="junit.framework.TestCase"/>
+ </and>
+ </condition>
+
+ <mkdir dir="${build.dir}"/>
+
+ <!-- Define some classpaths used by the different samples. -->
+
+ <path id="activemq.classpath">
+ <fileset dir="${activemq.home}/lib">
+ <include name="**/geronimo-j2ee-management_*_spec-*.jar"/>
+ <include name="**/geronimo-jms_*_spec-*.jar"/>
+ <include name="**/activemq-core-*.jar"/>
+ <include name="**/backport-util-concurrent-*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="hibernate.classpath">
+ <fileset dir="${hibernate.core.home}">
+ <include name="**/hibernate*.jar"/>
+ <include name="**/antlr-*.jar"/>
+ <include name="**/asm*.jar"/>
+ <include name="**/cglib-*.jar"/>
+ <include name="**/dom4j-*.jar"/>
+ <include name="**/javassist*.jar"/>
+ <include name="**/jta.jar"/>
+ </fileset>
+ <fileset dir="${hibernate.entitymanager.home}">
+ <include name="**/hibernate-*.jar"/>
+ <include name="**/jboss-archive-browsing*.jar"/>
+ <include name="**/*persistence.jar"/>
+ </fileset>
+ <fileset dir="${hsqldb.home}">
+ <include name="**/hsqldb.jar"/>
+ </fileset>
+ </path>
+
+ <path id="log4j.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/log4j-*.jar"/>
+ </fileset>
+ </path>
+
+ <path id="camel.core.classpath">
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-core-*.jar"/>
+ <include name="**/commons-logging-*.jar"/>
+ <include name="**/jaxb-api-*.jar"/>
+ <include name="**/spring-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ </path>
+
+ <path id="camel.spring.classpath">
+ <path refid="camel.core.classpath"/>
+ <fileset dir="${camel.lib}">
+ <include name="**/camel-spring-*.jar"/>
+ <include name="**/activation-*.jar"/>
+ <include name="**/jaxb-impl-*.jar"/>
+ <include name="**/stax-api-*.jar"/>
+ <exclude name="**/*-tests.jar"/>
+ </fileset>
+ </path>
+
+ <target name="build.classes" if="build.src">
+ <mkdir dir="${build.classes.dir}"/>
+
+ <javac destdir="${build.classes.dir}" debug="true">
+ <src path="${build.src.dir}"/>
+ <src path="${build.dir}"/>
+ <classpath>
+ <path refid="sample.build.classpath"/>
+ </classpath>
+ </javac>
+
+ <copy todir="${build.classes.dir}">
+ <fileset dir="${build.resources.dir}" includes="**/*"/>
+ </copy>
+ </target>
+
+ <target name="build.test" if="build.test">
+ <mkdir dir="${build.test.classes.dir}"/>
+
+ <javac destdir="${build.test.classes.dir}" debug="true">
+ <src path="${build.test.dir}"/>
+ <classpath>
+ <path refid="sample.build.classpath"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="build" depends="build.classes,build.test"/>
+
+ <macrodef name="camelrun">
+ <attribute name="mainClass" default="org.apache.camel.spring.Main"/>
+ <element name="arguments" optional="true"/>
+ <sequential>
+ <property name="sampleclasspath" refid="sample.run.classpath"/>
+ <!--
+ <echo message="running with classpath: ${sampleclasspath}"/>
+ -->
+ <path id="sample.run.classpath">
+ <pathelement location="${build.classes.dir}"/>
+ <path refid="sample.build.classpath"/>
+ <path refid="log4j.classpath"/>
+ </path>
+
+ <java classname="@{mainClass}"
+ fork="true"
+ failonerror="true">
+ <classpath refid="sample.run.classpath"/>
+ <arguments/>
+ <sysproperty key="java.util.logging.config.file"
value="${build.classes.dir}/logging.properties"/>
+ </java>
+ </sequential>
+ </macrodef>
+
+ <condition property="shell.command" value="cmd.exe">
+ <os family="windows"/>
+ </condition>
+ <property name="shell.command" value="/bin/bash"/>
+ <condition property="shell.suffix" value=".exe">
+ <os family="windows"/>
+ </condition>
+ <property name="shell.suffix" value=""/>
+ <condition property="shell.arg" value="/c">
+ <os family="windows"/>
+ </condition>
+ <property name="shell.arg" value="-c"/>
+ <!-- Define shell.file because dot on windows doesn't seem to
+ like the wildcard "*.dot". -->
+ <condition property="shell.file" value="routes.dot">
+ <os family="windows"/>
+ </condition>
+ <property name="shell.file" value="*.dot"/>
+
+ <!-- This macro assumes the dot executable is on your path. -->
+ <macrodef name="generatedot">
+ <attribute name="dotFileDir"/>
+ <attribute name="dotFile" default="${shell.file}"/>
+ <attribute name="outputType" default="svg"/>
+ <sequential>
+ <exec executable="${shell.command}">
+ <arg value="${shell.arg}"/>
+ <arg value="dot${shell.suffix} -T @{outputType} -O
@{dotFileDir}/@{dotFile}"/>
+ </exec>
+ </sequential>
+ </macrodef>
+
+ <target name="clean">
+ <delete dir="${build.test.classes.dir}"/>
+ <delete dir="${build.classes.dir}"/>
+ <delete dir="${build.dir}"/>
+ </target>
+
+</project>