You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/02/09 22:04:53 UTC

svn commit: r505503 - in /webservices/axis2/trunk/java/modules/jaxws: pom.xml test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java

Author: dims
Date: Fri Feb  9 13:04:52 2007
New Revision: 505503

URL: http://svn.apache.org/viewvc?view=rev&rev=505503
Log:
Fix WSGen test under maven2

Modified:
    webservices/axis2/trunk/java/modules/jaxws/pom.xml
    webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java

Modified: webservices/axis2/trunk/java/modules/jaxws/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/pom.xml?view=diff&rev=505503&r1=505502&r2=505503
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/pom.xml (original)
+++ webservices/axis2/trunk/java/modules/jaxws/pom.xml Fri Feb  9 13:04:52 2007
@@ -352,6 +352,17 @@
         <!-- ================================================================ -->
         <!--- Provider endpoint Service Samples -->
         <!-- ================================================================ -->
+		<copy toDir="target/test-classes/services/WSGenService/">
+		  <fileset dir="target/test-classes">
+		    <include name="org/apache/axis2/jaxws/sample/wsgen/WSGenInterface.class"/>
+		    <include name="org/apache/axis2/jaxws/sample/wsgen/WSGenImpl.class"/>
+		    <include name="org/apache/axis2/jaxws/sample/wsgen/jaxws/**"/>
+		  </fileset>
+		  <fileset dir="test/org/apache/axis2/jaxws/sample/wsgen">
+		    <include name="META-INF/**"/>
+		  </fileset>
+		</copy>
+
 		<copy toDir="target/test-classes/services/BasicAuthSecurityService/">
 			<fileset dir="target/test-classes">
 				<include name="org/apache/axis2/jaxws/security/server/**"/>
@@ -712,6 +723,9 @@
   		<inherited>true</inherited>
   		<configuration>
   			<skip>false</skip>
+  			<!-- Enable the next 2 lines if you want to attach a debugger
+  			<forkMode>pertest</forkMode>
+  			<argLine>-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5006</argLine>-->
   			<includes>
            	 <include>**/*Test.java</include>
             </includes>

Modified: webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java?view=diff&rev=505503&r1=505502&r2=505503
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/sample/wsgen/client/WSGenService.java Fri Feb  9 13:04:52 2007
@@ -30,7 +30,7 @@
         URL url = null;
         try {
             try{
-                String baseDir = new File(".").getCanonicalPath();
+                String baseDir = new File(System.getProperty("basedir",".")).getCanonicalPath();
                 wsdlLocation = new File(baseDir + wsdlLocation).getAbsolutePath();
             }catch(Exception e){
                 e.printStackTrace();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org