cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r474647 - in /incubator/cxf/trunk/distribution/src/main/release/samples/mtom: build.xml src/demo/mtom/client/Client.java
Date Tue, 14 Nov 2006 04:20:34 GMT
Author: tli
Date: Mon Nov 13 20:20:34 2006
New Revision: 474647

URL: http://svn.apache.org/viewvc?view=rev&rev=474647
Log:
fix the bug of failed get test resource me.bmp by add copy file in build.xml

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml?view=diff&rev=474647&r1=474646&r2=474647
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/build.xml Mon Nov 13 20:20:34
2006
@@ -22,6 +22,7 @@
     <import file="../common_build.xml"/>        
         
     <target name="client" description="run demo client" depends="build">
+        <copy toFile="${build.classes.dir}/demo/mtom/client/me.bmp" file="${basedir}/src/demo/mtom/client/me.bmp"/>
         <property name="param" value=""/>
         <cxfrun classname="demo.mtom.client.Client"
             param1="${basedir}/wsdl/mtom_xop.wsdl" 
@@ -44,6 +45,7 @@
 	</target>
 
     <target name="client-servlet" description="run demo client hitting servlet" depends="build">
+        <copy toFile="${build.classes.dir}/demo/mtom/client/me.bmp" file="${basedir}/src/demo/mtom/client/me.bmp"/>
         <property name="param" value=""/>
         <cxfrun classname="demo.mtom.client.Client" param1="${base.url}/mtom/cxf/mime_test"
param2="${op}"/>
     </target> 

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java?view=diff&rev=474647&r1=474646&r2=474647
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/src/demo/mtom/client/Client.java
Mon Nov 13 20:20:34 2006
@@ -105,7 +105,7 @@
         Image image = ImageIO.read(new ByteArrayInputStream(param.value));
         System.out.println("build image with the returned byte[] back from server successfully,
hashCode="
                 + image.hashCode());
-
+        System.out.println("Successfully run demo mtom/xop");
         System.exit(0);
     }
 



Mime
View raw message