Rev 104 | Rev 109 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
104 | jmachado | 1 | <?xml version="1.0" encoding="utf-8"?> |
99 | jmachado | 2 | <project name="estgwebservices" basedir="."> |
104 | jmachado | 3 | <import file="libs.xml"/> |
99 | jmachado | 4 | <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport"> |
5 | <classpath refid="pathToToolsLib"/> |
||
6 | </taskdef> |
||
7 | |||
107 | jmachado | 8 | <!-- <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile"> |
104 | jmachado | 9 | <classpath refid="pathToToolsLib"/> |
107 | jmachado | 10 | </taskdef>--> |
104 | jmachado | 11 | |
99 | jmachado | 12 | <target name="ws.generate-siges-client" depends="initDirs"> |
103 | jmachado | 13 | <copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/> |
14 | <replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8"> |
||
15 | <replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/> |
||
16 | <replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/> |
||
99 | jmachado | 17 | <replacefilter token="@ws.package@" value="${ws.siges.package}"/> |
18 | </replace> |
||
19 | <wsimport |
||
104 | jmachado | 20 | debug="${ws.debug}" |
21 | verbose="${ws.verbose}" |
||
22 | keep="${ws.keep}" |
||
23 | extension="${ws.extension}" |
||
24 | destdir="${gen.dir.java}" |
||
25 | wsdl="${ws.siges.wsdl}"> |
||
99 | jmachado | 26 | <binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/> |
27 | </wsimport> |
||
28 | <delete> |
||
29 | <fileset dir="${gen.dir.java}"> |
||
30 | <include name="**/*.class"/> |
||
31 | </fileset> |
||
32 | </delete> |
||
33 | </target> |
||
103 | jmachado | 34 | |
107 | jmachado | 35 | <!-- <target name="ws.generate-google-client"> |
104 | jmachado | 36 | <property name="config_target" location="${ws.conf.dir}"/> |
37 | <copy file="${ws.conf.dir}/GoogleSearch-config.xml" tofile="${build.dir.ws}/GoogleSearch-config.xml" filtering="on" encoding="UTF-8" overwrite="true"> |
||
38 | <filterset> |
||
39 | <filter token="CONFIG_ABSOLUTE_PATH" value="${config_target}"/> |
||
40 | <filter token="package" value="${ws.google.package}"/> |
||
41 | </filterset> |
||
42 | </copy> |
||
43 | <wscompile |
||
44 | verbose="true" |
||
45 | debug="true" |
||
46 | xPrintStackTrace="true" |
||
47 | xSerializable="true" |
||
48 | optimize="true" |
||
49 | fork="true" |
||
50 | keep="true" |
||
51 | client="true" |
||
52 | import="false" |
||
53 | base="${build.dir.classes}" sourceBase="${gen.dir.java}" mapping="${build.dir.ws}/GoogleSearch-mapping.xml" config="${build.dir.ws}/GoogleSearch-config.xml"> |
||
54 | <classpath refid="pathToToolsLib"/> |
||
55 | </wscompile> |
||
107 | jmachado | 56 | </target>--> |
103 | jmachado | 57 | |
99 | jmachado | 58 | </project> |