Updated Apache Ant libraries to Ant 1.8.0

git-svn-id: https://brutex.net/svn/xservices/trunk@17 e7e49efb-446e-492e-b9ec-fcafc1997a86
tag-20130205r
Brian Rosenberger 2010-02-13 15:45:34 +00:00
parent 7868d8d5d5
commit 7db3e8dd21
33 changed files with 77 additions and 42 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
lib/ant-apache-xalan2.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -585,6 +585,7 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.jettison-1.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.jettison-1.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.jsr311-api-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.jsr311-api-1.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xml-resolver-1.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.xml-resolver-1.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${libs.metro.classpath}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/> <mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/> <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target> </target>
@ -646,6 +647,7 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.jettison-1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.jettison-1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.jsr311-api-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.jsr311-api-1.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-resolver-1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.xml-resolver-1.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.metro.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
</target> </target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib"> <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/> <delete dir="${build.web.dir}/WEB-INF/lib"/>

View File

@ -1,9 +1,9 @@
build.xml.data.CRC32=be8df95d build.xml.data.CRC32=6aca1953
build.xml.script.CRC32=d8ac74c8 build.xml.script.CRC32=d8ac74c8
build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1 build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=be8df95d nbproject/build-impl.xml.data.CRC32=6aca1953
nbproject/build-impl.xml.script.CRC32=2df29bca nbproject/build-impl.xml.script.CRC32=a300afa5
nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1 nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1
nbproject/jaxws-build.xml.stylesheet.CRC32=83928735 nbproject/jaxws-build.xml.stylesheet.CRC32=83928735

View File

@ -10,6 +10,9 @@
<service name="ExecuteService"> <service name="ExecuteService">
<implementation-class>net.brutex.xservices.ws.ExecuteService</implementation-class> <implementation-class>net.brutex.xservices.ws.ExecuteService</implementation-class>
</service> </service>
<service name="MiscServiceImpl">
<implementation-class>net.brutex.xservices.ws.MiscServiceImpl</implementation-class>
</service>
</services> </services>
<clients/> <clients/>
<jsr109>false</jsr109> <jsr109>false</jsr109>

View File

@ -34,6 +34,11 @@
<classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/> <classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
</wsgen> </wsgen>
</target> </target>
<target name="wsgen-MiscServiceImpl" depends="wsgen-init">
<wsgen sourcedestdir="${build.generated.sources.dir}/jax-ws" resourcedestdir="${build.generated.sources.dir}/jax-ws/resources/" destdir="${build.generated.sources.dir}/jax-ws" verbose="true" xendorsed="true" keep="true" genwsdl="true" sei="net.brutex.xservices.ws.MiscServiceImpl">
<classpath path="${java.home}/../lib/tools.jar:${build.classes.dir}:${j2ee.platform.wsgen.classpath}:${javac.classpath}"/>
</wsgen>
</target>
<!-- <!--
=================== ===================
JAX-WS WSIMPORT SECTION JAX-WS WSIMPORT SECTION

View File

@ -138,7 +138,8 @@ javac.classpath=\
${file.reference.axiom-impl-1.2.7.jar}:\ ${file.reference.axiom-impl-1.2.7.jar}:\
${file.reference.jettison-1.2.jar}:\ ${file.reference.jettison-1.2.jar}:\
${file.reference.jsr311-api-1.0.jar}:\ ${file.reference.jsr311-api-1.0.jar}:\
${file.reference.xml-resolver-1.2.jar} ${file.reference.xml-resolver-1.2.jar}:\
${libs.metro.classpath}
# Space-separated list of extra javac options # Space-separated list of extra javac options
javac.compilerargs= javac.compilerargs=
javac.debug=true javac.debug=true

View File

@ -237,6 +237,10 @@
<file>${file.reference.xml-resolver-1.2.jar}</file> <file>${file.reference.xml-resolver-1.2.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war> <path-in-war>WEB-INF/lib</path-in-war>
</library> </library>
<library dirs="200">
<file>${libs.metro.classpath}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries> </web-module-libraries>
<web-module-additional-libraries/> <web-module-additional-libraries/>
<source-roots> <source-roots>

View File

@ -18,6 +18,8 @@ package net.brutex.xservices.ws;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.ReturnCode; import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.util.RunTask;
import org.apache.tools.ant.taskdefs.HostInfo;
/** /**
* *
@ -28,12 +30,16 @@ serviceName="MiscService")
public class MiscServiceImpl implements MiscService { public class MiscServiceImpl implements MiscService {
public ReturnCode getHostinfo(String hostname) { public ReturnCode getHostinfo(String hostname) {
throw new UnsupportedOperationException("Not supported yet."); return antGetHostinfo(hostname, "");
} }
private ReturnCode antGetHostinfo() { private ReturnCode antGetHostinfo(String hostname, String prefix) {
HostInfo info = new HostInfo();
return null; info.setTaskName("HostInfo");
RunTask runner = new RunTask(info);
info.setHost(hostname);
info.setPrefix(prefix);
return runner.postTask();
} }
} }

View File

@ -23,4 +23,8 @@
<jaxws:endpoint id="executeservice" <jaxws:endpoint id="executeservice"
implementor="net.brutex.xservices.ws.ExecuteService" implementor="net.brutex.xservices.ws.ExecuteService"
address="/ExecuteService"/> address="/ExecuteService"/>
<jaxws:endpoint id="miscservice"
implementor="net.brutex.xservices.ws.MiscServiceImpl"
address="/MiscService"/>
</beans> </beans>

View File

@ -1,27 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param> <context-param>
<param-name>contextConfigLocation</param-name> <param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/cxf-beans.xml</param-value> <param-value>WEB-INF/cxf-beans.xml</param-value>
</context-param> </context-param>
<listener> <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> </listener>
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<servlet> <servlet>
<servlet-name>XServices</servlet-name> <servlet-name>XServices</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>
<servlet>
<servlet-name>MiscServiceImpl</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping> <servlet-mapping>
<servlet-name>XServices</servlet-name> <servlet-name>XServices</servlet-name>
<url-pattern>/*</url-pattern> <url-pattern>/*</url-pattern>
<init-param>
<param-name>config-location</param-name>
<param-value>/WEB-INF/cxf-beans.xml</param-value>
</init-param>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MiscServiceImpl</servlet-name>
<url-pattern>/MiscServiceImpl</url-pattern>
</servlet-mapping> </servlet-mapping>
<session-config> <session-config>
<session-timeout> <session-timeout>
30 30