tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r620768 - /incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java
Date Tue, 12 Feb 2008 11:36:41 GMT
Author: antelder
Date: Tue Feb 12 03:36:32 2008
New Revision: 620768

URL: http://svn.apache.org/viewvc?rev=620768&view=rev
Log:
Fix to handle .rws embedded within jar files correctly

Modified:
    incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java

Modified: incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java?rev=620768&r1=620767&r2=620768&view=diff
==============================================================================
--- incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java
(original)
+++ incubator/tuscany/sandbox/ant/relax-ws/src/main/java/org/apache/tuscany/sca/interfacedef/relaxws/RelaxWSWSDLLocator.java
Tue Feb 12 03:36:32 2008
@@ -23,6 +23,7 @@
 import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.FileReader;
+import java.io.InputStreamReader;
 import java.io.PrintWriter;
 import java.io.StringReader;
 import java.net.URL;
@@ -60,8 +61,7 @@
     }
 
     protected void convertRwsToWsdl() throws Exception {
-        File rwsFile  = new File(rwsURL.toURI());
-        RelaxWizParser parser = new RelaxWizParser (new BufferedReader (new FileReader(rwsFile)));
+        RelaxWizParser parser = new RelaxWizParser (new BufferedReader (new InputStreamReader(rwsURL.openStream())));
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         Convert2Wsdl convertor = new Convert2Wsdl(parser.service(), new PrintWriter(baos));
         convertor.convert();



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


Mime
View raw message