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 cd...@apache.org on 2005/08/15 05:28:23 UTC
cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws DeploymentWriter.java
cdinapala 2005/08/14 20:28:23
Modified: c/src/wsdl/org/apache/axis/wsdl/wsdl2ws
DeploymentWriter.java
Log:
Changes have done for solve issue AXISCPP-792. But have to modify things to support other than Windows and Linux.
Revision Changes Path
1.5 +7 -1 ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/DeploymentWriter.java
Index: DeploymentWriter.java
===================================================================
RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/DeploymentWriter.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DeploymentWriter.java 4 Aug 2005 09:53:07 -0000 1.4
+++ DeploymentWriter.java 15 Aug 2005 03:28:23 -0000 1.5
@@ -38,10 +38,16 @@
public void writeSource() throws WrapperFault {
try {
BufferedWriter writer = new BufferedWriter(new FileWriter(getFilePath(this.wscontext, "deploy"), false));
+ String os = java.lang.System.getProperty("os.name");
+ String lib = "";
+ if ((0 == os.compareTo("Windows")) || (0 == os.compareTo("Windows XP")))
+ lib = ".dll";
+ else
+ lib = ".so";
writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
writer.write("<deployment xmlns=\"http://xml.apache.org/axis/wsdd/\""+
" xmlns:"+this.providerLang+"=\"http://xml.apache.org/axis/wsdd/providers/"+this.providerLang+"\">\n");
writer.write("\t<service name=\""+this.servicename+"\" provider=\""+this.providerLang+":"+this.providerStyle+"\" description=\""+this.description+"\">\n");
- writer.write("\t\t<parameter name=\"className\" value=\"/user/local/apache/axis/"+this.servicename+".so\"/>\n");
+ writer.write("\t\t<parameter name=\"className\" value=\"/user/local/apache/axis/"+this.servicename + lib + "\"/>\n");
writer.write("\t\t<parameter name=\"allowedMethods\" value=\"");
Iterator it = this.allowedmethods.iterator();
while (it.hasNext()){