123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?xml version="1.0"?>
- <!--
- Generated by WSDLToJava Compiler.
-
- This class was generated by Apache CXF 3.1.11
- 2017-10-31T17:17:54.888+08:00
- Generated source version: 3.1.11
- -->
- <project name="cxf wsdltojava" default="build" basedir=".">
- <property environment="env"/>
- <property name="home.dir" location="${basedir}"/>
- <property name="build.dir" location ="${basedir}/build"/>
- <property name="build.classes.dir" location ="${build.dir}/classes"/>
- <property name="build.src.dir" location ="${basedir}"/>
- <!-- find the tools jar -->
- <available property="tools.jar" value="$${env.JAVA_HOME}/lib/tools.jar"
- file="${env.JAVA_HOME}/lib/tools.jar"/>
- <path id="jdk.tools.classpath">
- <pathelement location="${tools.jar}"/>
- </path>
- <condition property="is.supported.java.version">
- <or>
- <equals arg1="${ant.java.version}" arg2="1.7"/>
- <equals arg1="${ant.java.version}" arg2="1.8"/>
- <equals arg1="${ant.java.version}" arg2="1.9"/>
- </or>
- </condition>
- <fail message="cxf requires Java version 1.7 or higher. You are currently using Java version ${ant.java.version}."
- unless="is.supported.java.version"/>
- <!-- Determine cxf.home, either from the environment variable CXF_HOME
- - or using ../..
- -->
- <condition property="cxf.home" value="${env.CXF_HOME}">
- <isset property="env.CXF_HOME"/>
- </condition>
- <fail message="Please set CXF_HOME environment variable." unless="cxf.home"/>
- <!-- Determine cxf.jar.file, either ${cxf.home}/build/lib/cxf.jar
- - in a source distribution, or ${cxf.home}/lib/cxf-manifest.jar in a binary
- - distribution.
- -->
- <condition property="cxf-manifest.jar.file" value="${cxf.home}/build/lib/cxf-manifest.jar">
- <available file="cxf-manifest.jar" type="file" filepath="${cxf.home}/build/lib"/>
- </condition>
- <property name="cxf-manifest.jar.file" value="${cxf.home}/lib/cxf-manifest.jar"/>
- <fail message="The location ${cxf.home} does not seem to contain a cxf installation; if you are importing this common build file from a location other than the cxf samples directory then you need to set the cxf_HOME environment variable.">
- <condition>
- <not>
- <isset property="cxf-manifest.jar.file" />
- </not>
- </condition>
- </fail>
- <!-- Determine the tools directory, either ${cxf.home}/tools
- - in a source distribution, or ${cxf.home}/lib in a binary
- - distribution.
- -->
- <condition property="thirdparty.tools.dir" value="${cxf.home}/tools">
- <available file="tools" type="dir" filepath="${cxf.home}"/>
- </condition>
- <condition property="thirdparty.tools.dir" value="${cxf.home}/lib">
- <available file="lib" type="dir" filepath="${cxf.home}"/>
- </condition>
- <property name="cxf.etc.dir" location="${cxf.home}/etc"/>
- <condition property="cxf.endorsed.dir" value="${cxf.home}/lib/endorsed">
- <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
- </condition>
- <condition property="cxf.endorsed.flag" value="-Djava.endorsed.dirs=${cxf.endorsed.dir}">
- <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
- </condition>
- <property name="cxf.endorsed.dir" location="${cxf.home}"/>
- <property name="cxf.endorsed.flag" value="-Dnone=none"/>
- <path id="cxf.classpath">
- <pathelement location="${home.dir}" />
- <pathelement location="${build.classes.dir}"/>
- <pathelement location="${cxf-manifest.jar.file}"/>
- <fileset dir="${cxf.endorsed.dir}">
- <include name="*.jar"/>
- </fileset>
- </path>
- <target name="ComplainGetResponseServiceClient" description="Run com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Client" depends="compile">
- <property name="param" value=""/>
- <cxfrun classname="com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Client"
- param1="http://10.2.50.188:7001/clpccc/service/complainGetResponseWebService?wsdl"/>
- </target>
- <target name="ComplainGetResponseServiceServer" description="Run com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Server" depends="compile">
- <cxfrun classname="com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Server"
- param1="http://10.2.50.188:7001/clpccc/service/complainGetResponseWebService?wsdl"/>
- </target>
- <target name="compile">
- <mkdir dir="${build.classes.dir}"/>
- <javac srcdir="${build.src.dir}" destdir="${build.classes.dir}" debug="true" fork="true">
- <compilerarg line="-J${cxf.endorsed.flag}"/>
- <classpath refid="cxf.classpath" />
- </javac>
- </target>
- <target name="checkstyle">
- <checkstyle config="${checkstyle.config.file}">
- <fileset dir="${basedir}/src" includes="**/*.java"/>
- <classpath>
- <path refid="cxf.classpath"/>
- </classpath>
- </checkstyle>
- </target>
- <target name="clean">
- <delete dir="${build.classes.dir}"/>
- <delete file="${java.timestamp.file}"/>
- <delete file="demo.log"/>
- </target>
- <target name="build" depends="compile" description="build demo client and server"/>
- <macrodef name="cxfrun">
- <attribute name="classname"/>
- <attribute name="param1" default=""/>
- <attribute name="param2" default=""/>
- <attribute name="param3" default=""/>
- <attribute name="param4" default=""/>
- <attribute name="param5" default=""/>
- <attribute name="jvmarg1" default="-Da=b"/>
- <attribute name="jvmarg2" default="-Da=b"/>
- <attribute name="jvmarg3" default="-Da=b"/>
- <attribute name="jvmarg4" default="-Da=b"/>
- <attribute name="jvmarg5" default="-Da=b"/>
- <sequential>
- <java classname="@{classname}" fork="yes">
- <classpath>
- <path refid="cxf.classpath"/>
- </classpath>
- <arg value="@{param1}"/>
- <arg value="@{param2}"/>
- <arg value="@{param3}"/>
- <arg value="@{param4}"/>
- <arg value="@{param5}"/>
- <jvmarg value="${cxf.endorsed.flag}"/>
- <jvmarg value="@{jvmarg1}"/>
- <jvmarg value="@{jvmarg2}"/>
- <jvmarg value="@{jvmarg3}"/>
- <jvmarg value="@{jvmarg4}"/>
- <jvmarg value="@{jvmarg5}"/>
- <assertions>
- <enable package="org.apache.cxf"/>
- </assertions>
- <sysproperty key="java.util.logging.config.file" value="${cxf.etc.dir}/logging.properties"/>
- <sysproperty key="log4j.configuration" value="file:///${cxf.etc.dir}/log4j.properties"/>
- </java>
- </sequential>
- </macrodef>
- </project>
|