-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
187 lines (161 loc) · 8.35 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?xml version="1.0"?>
<!--
Generated by WSDLToJava Compiler.
This class was generated by Apache CXF 2.7.7
2013-10-28T16:58:05.541-05:00
Generated source version: 2.7.7
-->
<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.java.version.16">
<or>
<equals arg1="${ant.java.version}" arg2="1.6"/>
<equals arg1="${ant.java.version}" arg2="1.7"/>
</or>
</condition>
<fail message="cxf requires Java version 1.6 or higher. You are currently using Java version ${ant.java.version}."
unless="is.java.version.16"/>
<!-- 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="AdapterMessageMonitoringViClient2" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_ClientCertPort_Client" depends="compile">
<property name="param" value=""/>
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_ClientCertPort_Client"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?wsdl"/>
</target>
<target name="AdapterMessageMonitoringViClient" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_BasicPort_Client" depends="compile">
<property name="param" value=""/>
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_BasicPort_Client"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?wsdl"/>
</target>
<target name="AdapterMessageMonitoringViClient1" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_SslPort_Client" depends="compile">
<property name="param" value=""/>
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_SslPort_Client"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?wsdl"/>
</target>
<target name="AdapterMessageMonitoringViServer2" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_ClientCertPort_Server" depends="compile">
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_ClientCertPort_Server"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?wsdl"/>
</target>
<target name="AdapterMessageMonitoringViServer1" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_SslPort_Server" depends="compile">
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_SslPort_Server"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?wsdl"/>
</target>
<target name="AdapterMessageMonitoringViServer" description="Run com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_BasicPort_Server" depends="compile">
<cxfrun classname="com.ulta.monitoring.pimonitoring.AdapterMessageMonitoringVi_BasicPort_Server"
param1="http://b1-desbaex01:50000/AdapterMessageMonitoring/basic?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="-D"/>
<attribute name="jvmarg2" default="-D"/>
<attribute name="jvmarg3" default="-D"/>
<attribute name="jvmarg4" default="-D"/>
<attribute name="jvmarg5" default="-D"/>
<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>