Rev 1306 | 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 | |||
995 | jmachado | 8 | |
9 | |||
107 | jmachado | 10 | <!-- <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile"> |
104 | jmachado | 11 | <classpath refid="pathToToolsLib"/> |
107 | jmachado | 12 | </taskdef>--> |
104 | jmachado | 13 | |
99 | jmachado | 14 | <target name="ws.generate-siges-client" depends="initDirs"> |
103 | jmachado | 15 | <copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/> |
16 | <replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8"> |
||
1017 | jmachado | 17 | <replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/> |
18 | <replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/> |
||
19 | <replacefilter token="@ws.package@" value="${ws.siges.package}"/> |
||
20 | </replace> |
||
21 | <wsimport |
||
22 | debug="${ws.debug}" |
||
23 | verbose="${ws.verbose}" |
||
24 | keep="${ws.keep}" |
||
25 | extension="${ws.extension}" |
||
26 | destdir="${gen.dir.java}" |
||
27 | wsdl="${ws.siges.wsdl}"> |
||
28 | <binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/> |
||
29 | </wsimport> |
||
30 | <delete> |
||
31 | <fileset dir="${gen.dir.java}"> |
||
32 | <include name="**/*.class"/> |
||
33 | </fileset> |
||
34 | </delete> |
||
35 | </target> |
||
103 | jmachado | 36 | |
107 | jmachado | 37 | <!-- <target name="ws.generate-google-client"> |
1017 | jmachado | 38 | <property name="config_target" location="${ws.conf.dir}"/> |
39 | <copy file="${ws.conf.dir}/GoogleSearch-config.xml" tofile="${build.dir.ws}/GoogleSearch-config.xml" filtering="on" encoding="UTF-8" overwrite="true"> |
||
40 | <filterset> |
||
41 | <filter token="CONFIG_ABSOLUTE_PATH" value="${config_target}"/> |
||
42 | <filter token="package" value="${ws.google.package}"/> |
||
43 | </filterset> |
||
44 | </copy> |
||
45 | <wscompile |
||
46 | verbose="true" |
||
47 | debug="true" |
||
48 | xPrintStackTrace="true" |
||
49 | xSerializable="true" |
||
50 | optimize="true" |
||
51 | fork="true" |
||
52 | keep="true" |
||
53 | client="true" |
||
54 | import="false" |
||
55 | base="${build.dir.classes}" sourceBase="${gen.dir.java}" mapping="${build.dir.ws}/GoogleSearch-mapping.xml" config="${build.dir.ws}/GoogleSearch-config.xml"> |
||
56 | <classpath refid="pathToToolsLib"/> |
||
57 | </wscompile> |
||
58 | </target>--> |
||
103 | jmachado | 59 | |
109 | fvelez | 60 | <target name="test"> |
995 | jmachado | 61 | <java classname="pt.ipp.siges.web.services.clients.Test" classpath="${build.dir.classes}" classpathref="pathToToolsLibRoutines"/> |
109 | fvelez | 62 | </target> |
63 | |||
99 | jmachado | 64 | </project> |