-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon-config.xml
46 lines (37 loc) · 1.38 KB
/
common-config.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="common-config">
<description>
Author : Alessandro Franzi
Date : 21/05/2011
Description : Task definition
</description>
<!-- Internal Variables-->
<dirname file="${ant.file.common-config}" property="common-config.basedir"/>
<property name="lib" value="${common-config.basedir}/lib"></property>
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath>
<fileset dir="${lib}"></fileset>
</classpath>
</taskdef>
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${lib}/ant-contrib-1.0b2.jar"/>
</classpath>
</taskdef>
<target name="createSingleStub">
<property name="WSDL.uri.path" value="${inWSDL}"/>
<property name="completeTempPath" value="${folder}/${jarName}_${suffix}"/>
<echo message="Loading wsdl : ${inWSDL} temp path : ${completeTempPath}" />
<mkdir dir="${completeTempPath}"/>
<wsimport verbose ="true"
sourcedestdir="${completeTempPath}"
destdir = "${destFolder}"
keep="true"
debug="${jaxws.debug}"
extension="${jaxws.verbose}"
wsdl="${WSDL.uri.path}" >
</wsimport>
<echo message="Stub created into ${folder}" />
<jar destfile="${folder}/${stubs}/${jarName}.jar" basedir="${completeTempPath}" />
</target>
</project>