axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
Date Mon, 15 Oct 2001 17:56:06 GMT
Tom Jordahl wrote:
> 
> Hey Berin,
> 
> I made a change last Friday to check this list for Fault files that have
> already been emitted.  Your changes break that change.
> 
> Please check all usages of fileList before changing what is in it. :-)

fileList is brand new....

Problem is that my original implementation was wrong.  We should be recording
the correct path--especially when we introduce the package naming algorithm
(should the user not specify a package to namespace mapping).

Where else is fileList being used?

> 
> --
> Tom Jordahl
> Macromedia
> 
> -----Original Message-----
> From: bloritsch@apache.org [mailto:bloritsch@apache.org]
> Sent: Monday, October 15, 2001 11:32 AM
> To: xml-axis-cvs@apache.org
> Subject: cvs commit: xml-axis/java/src/org/apache/axis/wsdl Emitter.java
> 
> bloritsch    01/10/15 08:32:02
> 
>   Modified:    java/src/org/apache/axis/wsdl Emitter.java
>   Log:
>   First round of classloader fixes.  The Classnames in the
>   classList have the package included now.
> 
>   Revision  Changes    Path
>   1.50      +22 -22    xml-axis/java/src/org/apache/axis/wsdl/Emitter.java
> 
>   Index: Emitter.java
>   ===================================================================
>   RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/Emitter.java,v
>   retrieving revision 1.49
>   retrieving revision 1.50
>   diff -u -r1.49 -r1.50
>   --- Emitter.java      2001/10/12 20:46:33     1.49
>   +++ Emitter.java      2001/10/15 15:32:02     1.50
>   @@ -504,8 +504,8 @@
>            String nameValue =
> xmlNameToJava(portType.getQName().getLocalPart());
>            String fileName = nameValue + ".java";
> 
>   -        this.fileList.add(fileName);
>   -        this.classList.add(nameValue);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName + "." + nameValue);
> 
>            PrintWriter interfacePW = printWriter (fileName);
>            if (bVerbose)
>   @@ -537,8 +537,8 @@
>            String nameValue =
> xmlNameToJava(portType.getQName().getLocalPart()) + "Axis";
>            String fileName = nameValue + ".java";
> 
>   -        this.classList.add(nameValue);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName +  "." + nameValue);
> 
>            PrintWriter interfacePW = printWriter(fileName);
>            if (bVerbose)
>   @@ -920,8 +920,8 @@
>                return exceptionName;
>            }
> 
>   -        this.classList.add(exceptionName);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName +  "." + exceptionName);
> 
>            PrintWriter pw = printWriter(fileName);
> 
>   @@ -1000,8 +1000,8 @@
>            String stubName = name + "Stub";
>            String stubFileName = stubName + ".java";
> 
>   -        this.classList.add(stubName);
>   -        this.fileList.add(stubFileName);
>   +        this.fileList.add(packageDirName + stubFileName);
>   +        this.classList.add(packageName +  "." + stubName);
> 
>            PrintWriter stubPW = printWriter(stubFileName);
>            if (bVerbose)
>   @@ -1079,8 +1079,8 @@
>                String skelName = name + "Skeleton";
>                String skelFileName = skelName + ".java";
> 
>   -            this.classList.add(skelName);
>   -            this.fileList.add(skelFileName);
>   +            this.fileList.add(packageDirName + skelFileName);
>   +            this.classList.add(packageName +  "." + skelName);
> 
>                skelPW = printWriter(skelFileName);
>                String implType = portTypeName + " impl";
>   @@ -1107,8 +1107,8 @@
> 
>                String implFileName = implName + ".java";
> 
>   -            this.classList.add(implName);
>   -            this.fileList.add(implFileName);
>   +            this.fileList.add(packageDirName + implFileName);
>   +            this.classList.add(packageName +  "." + implName);
> 
>                if (!fileExists (implFileName)) {
>                    implPW = printWriter(implFileName);
>   @@ -1454,8 +1454,8 @@
>            String serviceName =
> xmlNameToJava(service.getQName().getLocalPart());
>            String fileName = serviceName + ".java";
> 
>   -        this.classList.add(serviceName);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName +  "." + serviceName);
> 
>            PrintWriter servicePW = printWriter(fileName);
>            TestCaseEmitter testFactory = null;
>   @@ -1468,8 +1468,8 @@
>                String testCase = serviceName + "TestCase";
>                String testCaseFileName = testCase + ".java";
> 
>   -            this.classList.add(testCase);
>   -            this.fileList.add(testCaseFileName);
>   +            this.fileList.add(packageDirName + testCaseFileName);
>   +            this.classList.add(packageName +  "." + testCase);
> 
>                testFactory = new
> TestCaseEmitter(this.printWriter(testCaseFileName),
>                                                  this.packageName,
>   @@ -1828,8 +1828,8 @@
> 
>            String fileName = javaName + ".java";
> 
>   -        this.classList.add(javaName);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName + "." + javaName);
> 
>            PrintWriter typePW = printWriter(fileName);
>            if (bVerbose)
>   @@ -1908,8 +1908,8 @@
> 
>            String fileName = javaName + ".java";
> 
>   -        this.classList.add(javaName);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName +  "." + javaName);
> 
>            PrintWriter typePW = printWriter(fileName);
>            if (bVerbose)
>   @@ -1935,8 +1935,8 @@
> 
>            String fileName = javaName + "Holder.java";
> 
>   -        this.classList.add(javaName);
>   -        this.fileList.add(fileName);
>   +        this.fileList.add(packageDirName + fileName);
>   +        this.classList.add(packageName + "." + javaName);
> 
>            PrintWriter pw = printWriter(fileName);
>            if (bVerbose)
> 
> 
>

Mime
View raw message