You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by he...@apache.org on 2005/02/18 15:29:19 UTC
svn commit: r154303 - webservices/axis/trunk/java/maven.xml
webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java
Author: hemapani
Date: Fri Feb 18 06:29:18 2005
New Revision: 154303
URL: http://svn.apache.org/viewcvs?view=rev&rev=154303
Log:
fix another two testcases
Added:
webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java
Modified:
webservices/axis/trunk/java/maven.xml
Modified: webservices/axis/trunk/java/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/maven.xml?view=diff&r1=154302&r2=154303
==============================================================================
--- webservices/axis/trunk/java/maven.xml (original)
+++ webservices/axis/trunk/java/maven.xml Fri Feb 18 06:29:18 2005
@@ -25,4 +25,81 @@
<delete dir="modules/samples/target"/>
<delete dir="modules/om/target"/>
</goal>
+
+
+ <goal name="war" prereqs="jar">
+ <!-- jar the test classes -->
+ <mkdir dir="target"/>
+ <jar destfile="target/axis2-test.jar" basedir="target/test-classes"/>
+ <war destfile="target/axis2.war" webxml="src/conf/web.xml">
+ <fileset dir="src/html"/>
+ <lib dir="${maven.repo.local}/stax/jars/">
+ <include name="stax-api-1.0.jar"/>
+ <include name="stax-1.1.1-dev.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/commons-logging/jars/">
+ <include name="commons-logging-1.0.3.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/axis/jars/">
+ <include name="axis-wsdl4j-1.2-RC1.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/log4j/jars/">
+ <include name="log4j-1.2.8.jar"/>
+ </lib>
+ <lib dir="modules/om/target/">
+ <include name="axis2*.jar"/>
+ </lib>
+ <lib dir="modules/core/target/">
+ <include name="axis2*.jar"/>
+ </lib>
+ <lib dir="modules/deployment/target/">
+ <include name="axis2*.jar"/>
+ </lib>
+ <lib dir="modules/wsdl/target/">
+ <include name="axis2*.jar"/>
+ </lib>
+ <classes dir="src/conf">
+ <include name="*.properties"/>
+ </classes>
+ </war>
+ </goal>
+
+ <goal name="war-withsamples" prereqs="jar">
+ <!-- jar the test classes -->
+ <war destfile="target/axis2.war" webxml="src/conf/web.xml">
+ <fileset dir="src/html"/>
+ <webinf dir="target/test-resources/samples"/>
+ <lib dir="${maven.repo.local}/stax/jars/">
+ <include name="stax-api-1.0.jar"/>
+ <include name="stax-1.1.1-dev.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/commons-logging/jars/">
+ <include name="commons-logging-1.0.3.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/axis/jars/">
+ <include name="axis-wsdl4j-1.2-RC1.jar"/>
+ </lib>
+ <lib dir="${maven.repo.local}/log4j/jars/">
+ <include name="log4j-1.2.8.jar"/>
+ </lib>
+ <lib dir="target/">
+ <include name="axis2*.jar"/>
+ </lib>
+ <classes dir="src/conf">
+ <include name="*.properties"/>
+ </classes>
+ </war>
+ </goal>
+
+
+ <goal name="samples">
+ <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="src/samples/encoding/sample1"/>
+ <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="src/samples/encoding/sample2"/>
+ </goal>
+
+ <!-- to transforme htmls to xdocs -->
+ <preGoal name="xdoc:jelly-transform">
+ <attainGoal name="html2xdoc"/>
+ </preGoal>
+
</project>
Added: webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java?view=auto&rev=154303
==============================================================================
--- webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java (added)
+++ webservices/axis/trunk/java/modules/deployment/src/test/org/apache/axis/deployment/SpeakingHandler.java Fri Feb 18 06:29:18 2005
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis.deployment;
+
+import org.apache.axis.context.MessageContext;
+import org.apache.axis.engine.AxisFault;
+import org.apache.axis.engine.Handler;
+import org.apache.axis.handlers.AbstractHandler;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import javax.xml.namespace.QName;
+
+public class SpeakingHandler extends AbstractHandler implements Handler {
+ private Log log = LogFactory.getLog(getClass());
+ private String message;
+ private QName name;
+
+ public SpeakingHandler() {
+ this.message = "Hi I amtesting ";
+ }
+
+ public QName getName() {
+ return name;
+ }
+
+ public void invoke(MessageContext msgContext) throws AxisFault {
+ log.info("I am " + message + " Handler Running :)");
+ }
+
+ public void revoke(MessageContext msgContext) {
+ log.info("I am " + message + " Handler Running :)");
+ }
+
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+}