Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate locations for generated Camel and Java files #20

Closed
bfitzpat opened this issue Dec 4, 2017 · 5 comments
Closed

Separate locations for generated Camel and Java files #20

bfitzpat opened this issue Dec 4, 2017 · 5 comments
Assignees
Milestone

Comments

@bfitzpat
Copy link
Contributor

bfitzpat commented Dec 4, 2017

Any chance we can add a command-line option that offers a specific location for the generated Camel XML file vs. the generated source? One single specified output path doesn't quite work when we're trying to put Java code in src/main/java for source and src/main/resources/OSGI-INF or src/main/resources/META-INF/spring for the Camel configuration.

@tdiesler
Copy link
Collaborator

tdiesler commented Mar 1, 2018

I'd say the caller should move the generated output to wherever needed. Would this not work?

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Mar 1, 2018

We could definitely move it as an after-step, but it would be nice to have the option to have it generated in the correct location if specified.

@tdiesler
Copy link
Collaborator

tdiesler commented Mar 1, 2018

How are you interfacing with the tool? If it is via cmd line options, I'd be reluctant to expose such a redundant option to the public. If it is via API, we could do this for your convenience.

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Mar 1, 2018

I am calling the tool in code, not via command line options. It would be great to have a convenience method I could call.

Wsdl2Rest tool = new Wsdl2Rest(wsdlLocation, outpath);
tool.setTargetContext(contextpath);
if (!Strings.isEmpty(options.getBeanClassName())) {
	tool.setTargetBean(options.getBeanClassName());
}
if (!Strings.isEmpty(options.getTargetServiceAddress())) {
	URL targetAddressURL = new URL(options.getTargetServiceAddress());
	tool.setTargetAddress(targetAddressURL);
}
tool.process();

@tdiesler
Copy link
Collaborator

tdiesler commented Mar 2, 2018

ok, lets do this

@tdiesler tdiesler added this to the 0.7 milestone Mar 8, 2018
@tdiesler tdiesler self-assigned this Mar 21, 2018
@tdiesler tdiesler changed the title Separate locations for generated Camel file and generated Java files Separate locations for generated Camel and Java files Mar 21, 2018
tdiesler added a commit to tdiesler/wsdl2rest that referenced this issue Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants