alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (build.xml)

This example Apache CXF source code file (build.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

apache, apache, asf, asf, generating, is, license, license, of, see, see, soap/jms, version, you

The Apache CXF build.xml source code

<?xml version="1.0"?>
<!--
  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="SOAP/JMS Specification Greeter" default="build" basedir=".">
    <property environment="env"/>
    <condition property="activemq.home" value="${env.ACTIVEMQ_HOME}">
        <isset property="env.ACTIVEMQ_HOME"/>
    </condition>
    <fail message="this sample need to use activemq, please setup  ACTIVEMQ_HOME in your environment"
        unless="activemq.home"/>
    <condition property="activemq.version" value="${env.ACTIVEMQ_VERSION}">
	<isset property="env.ACTIVEMQ_VERSION"/>
    </condition>
    <fail message="this sample need to use activemq, please setup ACTIVEMQ_VERSION in your envrionment"
        unless="activemq.version"/>

    <property name="thirdparty.classpath" location="${activemq.home}/activemq-all-${activemq.version}.jar"/>

    <import file="../common_build.xml"/>

    <property name="wsdl.dir" location="${basedir}/wsdl"/>
    <property name="wsdl.file" value="jms_greeter.wsdl"/>
    
    <target name="jmsbroker.start" description="run jms broker" depends="build">
       <cxfrun classname="demo.jms_greeter.broker.EmbeddedBroker" /> 
    </target>

    <target name="client" description="run demo client" depends="build">
        <property name="param1" value=""/>
        <property name="param2" value=""/>
        <property name="param3" value=""/>
        <cxfrun classname="demo.jms_greeter.client.Client" param1="${basedir}/wsdl/jms_greeter.wsdl" param2="${op}" param3="${param1}" param4="${param2}" param5="${param3}"/>
    </target>
    
    
    <target name="server" description="run demo server" depends="build">
        <cxfrun classname="demo.jms_greeter.server.Server" param1="${basedir}/wsdl/jms_greeter.wsdl"/>
    </target>

    <target name="generate.code" unless="codegen.notrequired">
        <echo level="info"  message="Generating code using wsdl2java..."/>
        <wsdl2java file="${wsdl.file}"/>
        <touch file="${codegen.timestamp.file}"/>
    </target>        
</project>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF build.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.