build.xml.mine 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0"?>
  2. <!--
  3. Generated by WSDLToJava Compiler.
  4. This class was generated by Apache CXF 3.1.11
  5. 2017-10-31T17:17:54.888+08:00
  6. Generated source version: 3.1.11
  7. -->
  8. <project name="cxf wsdltojava" default="build" basedir=".">
  9. <property environment="env"/>
  10. <property name="home.dir" location="${basedir}"/>
  11. <property name="build.dir" location ="${basedir}/build"/>
  12. <property name="build.classes.dir" location ="${build.dir}/classes"/>
  13. <property name="build.src.dir" location ="${basedir}"/>
  14. <!-- find the tools jar -->
  15. <available property="tools.jar" value="$${env.JAVA_HOME}/lib/tools.jar"
  16. file="${env.JAVA_HOME}/lib/tools.jar"/>
  17. <path id="jdk.tools.classpath">
  18. <pathelement location="${tools.jar}"/>
  19. </path>
  20. <condition property="is.supported.java.version">
  21. <or>
  22. <equals arg1="${ant.java.version}" arg2="1.7"/>
  23. <equals arg1="${ant.java.version}" arg2="1.8"/>
  24. <equals arg1="${ant.java.version}" arg2="1.9"/>
  25. </or>
  26. </condition>
  27. <fail message="cxf requires Java version 1.7 or higher. You are currently using Java version ${ant.java.version}."
  28. unless="is.supported.java.version"/>
  29. <!-- Determine cxf.home, either from the environment variable CXF_HOME
  30. - or using ../..
  31. -->
  32. <condition property="cxf.home" value="${env.CXF_HOME}">
  33. <isset property="env.CXF_HOME"/>
  34. </condition>
  35. <fail message="Please set CXF_HOME environment variable." unless="cxf.home"/>
  36. <!-- Determine cxf.jar.file, either ${cxf.home}/build/lib/cxf.jar
  37. - in a source distribution, or ${cxf.home}/lib/cxf-manifest.jar in a binary
  38. - distribution.
  39. -->
  40. <condition property="cxf-manifest.jar.file" value="${cxf.home}/build/lib/cxf-manifest.jar">
  41. <available file="cxf-manifest.jar" type="file" filepath="${cxf.home}/build/lib"/>
  42. </condition>
  43. <property name="cxf-manifest.jar.file" value="${cxf.home}/lib/cxf-manifest.jar"/>
  44. <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.">
  45. <condition>
  46. <not>
  47. <isset property="cxf-manifest.jar.file" />
  48. </not>
  49. </condition>
  50. </fail>
  51. <!-- Determine the tools directory, either ${cxf.home}/tools
  52. - in a source distribution, or ${cxf.home}/lib in a binary
  53. - distribution.
  54. -->
  55. <condition property="thirdparty.tools.dir" value="${cxf.home}/tools">
  56. <available file="tools" type="dir" filepath="${cxf.home}"/>
  57. </condition>
  58. <condition property="thirdparty.tools.dir" value="${cxf.home}/lib">
  59. <available file="lib" type="dir" filepath="${cxf.home}"/>
  60. </condition>
  61. <property name="cxf.etc.dir" location="${cxf.home}/etc"/>
  62. <condition property="cxf.endorsed.dir" value="${cxf.home}/lib/endorsed">
  63. <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
  64. </condition>
  65. <condition property="cxf.endorsed.flag" value="-Djava.endorsed.dirs=${cxf.endorsed.dir}">
  66. <available file="${cxf.home}/lib/endorsed" type="dir" property=""/>
  67. </condition>
  68. <property name="cxf.endorsed.dir" location="${cxf.home}"/>
  69. <property name="cxf.endorsed.flag" value="-Dnone=none"/>
  70. <path id="cxf.classpath">
  71. <pathelement location="${home.dir}" />
  72. <pathelement location="${build.classes.dir}"/>
  73. <pathelement location="${cxf-manifest.jar.file}"/>
  74. <fileset dir="${cxf.endorsed.dir}">
  75. <include name="*.jar"/>
  76. </fileset>
  77. </path>
  78. <target name="ComplainGetResponseServiceClient" description="Run com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Client" depends="compile">
  79. <property name="param" value=""/>
  80. <cxfrun classname="com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Client"
  81. param1="http://10.2.50.188:7001/clpccc/service/complainGetResponseWebService?wsdl"/>
  82. </target>
  83. <target name="ComplainGetResponseServiceServer" description="Run com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Server" depends="compile">
  84. <cxfrun classname="com.clpc.ComplainGetResponseService_ComplainGetResponseServicePort_Server"
  85. param1="http://10.2.50.188:7001/clpccc/service/complainGetResponseWebService?wsdl"/>
  86. </target>
  87. <target name="compile">
  88. <mkdir dir="${build.classes.dir}"/>
  89. <javac srcdir="${build.src.dir}" destdir="${build.classes.dir}" debug="true" fork="true">
  90. <compilerarg line="-J${cxf.endorsed.flag}"/>
  91. <classpath refid="cxf.classpath" />
  92. </javac>
  93. </target>
  94. <target name="checkstyle">
  95. <checkstyle config="${checkstyle.config.file}">
  96. <fileset dir="${basedir}/src" includes="**/*.java"/>
  97. <classpath>
  98. <path refid="cxf.classpath"/>
  99. </classpath>
  100. </checkstyle>
  101. </target>
  102. <target name="clean">
  103. <delete dir="${build.classes.dir}"/>
  104. <delete file="${java.timestamp.file}"/>
  105. <delete file="demo.log"/>
  106. </target>
  107. <target name="build" depends="compile" description="build demo client and server"/>
  108. <macrodef name="cxfrun">
  109. <attribute name="classname"/>
  110. <attribute name="param1" default=""/>
  111. <attribute name="param2" default=""/>
  112. <attribute name="param3" default=""/>
  113. <attribute name="param4" default=""/>
  114. <attribute name="param5" default=""/>
  115. <attribute name="jvmarg1" default="-Da=b"/>
  116. <attribute name="jvmarg2" default="-Da=b"/>
  117. <attribute name="jvmarg3" default="-Da=b"/>
  118. <attribute name="jvmarg4" default="-Da=b"/>
  119. <attribute name="jvmarg5" default="-Da=b"/>
  120. <sequential>
  121. <java classname="@{classname}" fork="yes">
  122. <classpath>
  123. <path refid="cxf.classpath"/>
  124. </classpath>
  125. <arg value="@{param1}"/>
  126. <arg value="@{param2}"/>
  127. <arg value="@{param3}"/>
  128. <arg value="@{param4}"/>
  129. <arg value="@{param5}"/>
  130. <jvmarg value="${cxf.endorsed.flag}"/>
  131. <jvmarg value="@{jvmarg1}"/>
  132. <jvmarg value="@{jvmarg2}"/>
  133. <jvmarg value="@{jvmarg3}"/>
  134. <jvmarg value="@{jvmarg4}"/>
  135. <jvmarg value="@{jvmarg5}"/>
  136. <assertions>
  137. <enable package="org.apache.cxf"/>
  138. </assertions>
  139. <sysproperty key="java.util.logging.config.file" value="${cxf.etc.dir}/logging.properties"/>
  140. <sysproperty key="log4j.configuration" value="file:///${cxf.etc.dir}/log4j.properties"/>
  141. </java>
  142. </sequential>
  143. </macrodef>
  144. </project>