gale320 / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

staff_codegen and generated file names #187

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
=== What steps will reproduce the problem? ===
1.Use a wsdl (my example: ApacAc.wsdl). Into this file "<definitions 
name="ApacAc"..."
2.Rename the wsdl in Name1.wsdl
3.Try 
staff_codegen -tcomponent_all -pwsdl Name1.wsdl

=== What is the expected output? What do you see instead? ===
I see:
Generating ./Name1_service.pro
Generating ./Name1_service.vcproj
Generating ./codegen.cmd
Generating ./install.cmd
Generating ./src/Name1.h
Generating ./src/Name1Impl.h
Generating ./src/Name1Impl.cpp

So I tried the option -nApacAc
Generating ./ApacAc_service.pro
Generating ./ApacAc_service.vcproj
Generating ./codegen.cmd
Generating ./install.cmd
Generating ./src/Name1.h
Generating ./src/Name1Impl.h
Generating ./src/Name1Impl.cpp

I think it should be:
Generating ./ApacAc_service.pro
Generating ./ApacAc_service.vcproj
Generating ./codegen.cmd
Generating ./install.cmd
Generating ./src/ApacAc.h
Generating ./src/ApacAcImpl.h
Generating ./src/ApacAcImpl.cpp

=== What version of the product are you using? On what operating system? ===
Revision 709 - CentOS and RHEL 5.2 x86_64

=== Please provide any additional information below. ===
Same problem with the options -tclient_all

Original issue reported on code.google.com by julien.d...@gmail.com on 13 Sep 2012 at 12:02

GoogleCodeExporter commented 9 years ago
It works as designed. 

Interface file name is based on WSDL file name.

Optionally you can set project name (first part of .vcproj and .pro files) 
using -n option (to see options available see CodegenCommandLine or start 
`staff_codegen -h`).

Original comment by loentar on 13 Sep 2012 at 5:32