Sigh, 

Sorry for posting so many problems in one day... 

How do I prevent WSDL2Java from overwriting my interface file?

Problem:

interface      : Family.java
implementation : FamilyImpl.java

$ java org.apache.axis.wsdl.Java2WSDL -o family.wsdl \
  -l"http://10.196.130.245:8080/axis/services/familyAccounts"; \
  -p"disney.dis.family" urn:familyAccounts \
  disney.dis.family.Family

generates family.wsdl.  Next I do...

$ java org.apache.axis.wsdl.WSDL2Java -o ../../../ -d Session -s \
  -p disney.dis.family family.wsdl

This command overwrites my Family.java file.  

I know I can specify 
   -o . 

as an option and WSDL2Java will create a disney/dis/family 
hierarchy underneath my current directory.

But then I have to move the generated files to my current directory
in order to compile everything.

I'm sure there is a "best practice" that solves this problem.  

Is there a command line option that tells WSDL2Java "don't
overwrite".  

I get a message saying 

FamilyAccountsSoapBindingImpl.java already exists, WSDL2Java will not
overwrite it.

Great.  But I also want it to NOT overwrite my original interface
definition file.

Much thanks,

Vartan







__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to