Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70886 invoked from network); 1 Aug 2006 09:53:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 09:53:23 -0000 Received: (qmail 7474 invoked by uid 500); 1 Aug 2006 09:53:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 7464 invoked by uid 500); 1 Aug 2006 09:53:15 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 7453 invoked by uid 99); 1 Aug 2006 09:53:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:53:15 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of amit.andhale@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 02:53:14 -0700 Received: by nf-out-0910.google.com with SMTP id x29so198031nfb for ; Tue, 01 Aug 2006 02:52:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=C/8JJXqibXmLk1/d7851dy6+yiPe6J7g7vjYOXoq4iwC4J7CeFZFXGoKPpjorkDbhUNUzGLKy3+wzB8HFBHa88ujyeuKWbJWlyeN5HljfgkUpA7f8x5Xj2biL65bLdRR44WZVCmQEtwkOQNhwU0ASYDVAytJJ8ppTGtc1fkX8+0= Received: by 10.78.132.12 with SMTP id f12mr135167hud; Tue, 01 Aug 2006 02:52:52 -0700 (PDT) Received: by 10.78.185.1 with HTTP; Tue, 1 Aug 2006 02:52:47 -0700 (PDT) Message-ID: <497a65630608010252r45ae5e01obe22f6b202c3b362@mail.gmail.com> Date: Tue, 1 Aug 2006 15:22:47 +0530 From: "Amit Andhale" To: axis-user@ws.apache.org, derek-axis@crc-corp.com Subject: Re: Axis 1.3 WSDL2Java Overwrites the original files In-Reply-To: <004c01c6b4cb$1d4ca1c0$166fa8c0@Zephyr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1854_13847211.1154425967738" References: <497a65630607310033w14316b1se0d81aef53a5944c@mail.gmail.com> <004c01c6b4cb$1d4ca1c0$166fa8c0@Zephyr> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1854_13847211.1154425967738 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Derek, Thanks for prompt reply. My Problem is that, In my Java Project, I have written some classes in packages e.g "Package1". My Web Service classes refer to these classes in "Package1". When I run WSDL2Java command, it generates the referred classes also in "Package1" overwriting the original classes, and generates Web Service stub in another specified package. I don't want WSDL2Java to overwrite Classes in "Package1" which would be used by other projects also. Is there any way to do this? Amit On 7/31/06, Derek wrote: > > What I do is have my ANT script set up to run WSDL2Java to put files in a > different source tree, 'build/generatedSrc', which has the same structure as > my 'src' tree. > > Then I have an ANT target which generates files into the 'generatedSrc' > tree. > > If I want to modify a file (a skeleton file, for instance), I copy the > file from my generatedSrc tree to my src tree, modify it as desired, and > then modify my ANT script to automatically delete it from the generatedSrc > tree after each time that WSDL2Java is run. > > That way, I can be sure that none of my modified files have been > overridden. I think it's unwise to generate files into a directory where > non-generated files sit. (Also, keeping them separate allows me to make > sure, for instance, that the generated files don't get checked into version > control.) > > When compiling, I just include both source tree roots in the 'javac' ANT > target. > > Derek > > -----Original Message----- > *From:* Amit Andhale [mailto:amit.andhale@gmail.com] > *Sent:* Monday, July 31, 2006 12:34 AM > *To:* axis-user@ws.apache.org > *Subject:* Axis 1.3 WSDL2Java Overwrites the original files > > Hi All, > When I run WSDL2Java command, it generates the Stub files, which also > overrides my existing files. > Could you please help me in this context? > > Regards > Amit > > ------=_Part_1854_13847211.1154425967738 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Derek,
Thanks for prompt reply.
 
My Problem is that,
In my Java Project, I have written some classes in packages e.g "Package1".
My Web Service classes refer to these classes in "Package1".
 
When I run WSDL2Java command, it generates the referred classes also in "Package1" overwriting the original classes, and generates Web Service stub in another specified package.
 
I don't want WSDL2Java to overwrite Classes in "Package1" which would be used by other projects also.
Is there any way to do this?
 
Amit
 

 
On 7/31/06, Derek <derek-axis@crc-corp.com> wrote:
What I do is have my ANT script set up to run WSDL2Java to put files in a different source tree, 'build/generatedSrc', which has the same structure as my 'src' tree.
 
Then I have an ANT target which generates files into the 'generatedSrc' tree.
 
If I want to modify a file (a skeleton file, for instance), I copy the file from my generatedSrc tree to my src tree, modify it as desired, and then modify my ANT script to automatically delete it from the generatedSrc tree after each time that WSDL2Java is run.
 
That way, I can be sure that none of my modified files have been overridden. I think it's unwise to generate files into a directory where non-generated files sit. (Also, keeping them separate allows me to make sure, for instance, that the generated files don't get checked into version control.)
 
When compiling, I just include both source tree roots in the 'javac' ANT target.
 
Derek
-----Original Message-----
From: Amit Andhale [mailto: amit.andhale@gmail.com]
Sent: Monday, July 31, 2006 12:34 AM
To: axis-user@ws.apache.org
Subject: Axis 1.3 WSDL2Java Overwrites the original files

Hi All,
When I run WSDL2Java command, it generates the Stub files, which also overrides my existing files.
Could you please help me in this context?
 
Regards
Amit

------=_Part_1854_13847211.1154425967738--