Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

combine the camel-project and wsdl2rest generators into one composed generator #11

Closed
bfitzpat opened this issue Aug 31, 2018 · 9 comments
Assignees

Comments

@bfitzpat
Copy link
Contributor

Once the wsdl2rest sub-generator is added, the user can use it by calling "yo camel-project:wsdl2rest", but that will only give them the prompts for the wsdl and the location. We need to dovetail the wsdl2rest generator at the end of the camel-project generator so we have the complete project generation process.

To do this, we will need to migrate the generators/wsdl2rest to use the initializing step of the generator:

initializing() {
this.composeWith(require.resolve('../app'));
}

In testing, this works pretty well but I will need to figure out how to access options from the main generator inside the sub-generator so I can get the camel DSL type and appropriately put the generated configuration file in the right place.

apupier added a commit to apupier/generator-camel-project that referenced this issue Sep 7, 2018
- changed project to provide a fat jar but:
-- it used 0.7.0 as I wasn't able to find a wsdl2rest with all
dependencies available on provided repositories
-- folder where the jar is provided needs to be customized (currently
using the target one...)
-- the generation is not working because I think that parameters have
been changed between 0.7.0 and 0.8.0 and I didn't adapt them back
- it avoids to duplicate all dependencies
- it simplifies the command line to launch

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to apupier/generator-camel-project that referenced this issue Sep 7, 2018
- changed project to provide a fat jar but:
-- it used 0.7.0 as I wasn't able to find a wsdl2rest with all
dependencies available on provided repositories
-- folder where the jar is provided needs to be customized (currently
using the target one...)
-- the generation is not working because I think that parameters have
been changed between 0.7.0 and 0.8.0 and I didn't adapt them back
- it avoids to duplicate all dependencies
- it simplifies the command line to launch

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 14, 2018
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 14, 2018
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 15, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 15, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- started updating readme.md

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 15, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 16, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 16, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 27, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 27, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 28, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
apupier added a commit to apupier/generator-camel-project that referenced this issue Nov 30, 2018
also extract utils related tests to a specific utils.js file

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
apupier added a commit to apupier/generator-camel-project that referenced this issue Nov 30, 2018
also extract utils related tests to a specific utils.js file

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 30, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 30, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 30, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 30, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Nov 30, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process
-- fixing issue camel-tooling#34 (missing camel-maven-plugin version for spring
projects)
-- fixing error with test soap utility

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Dec 3, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process
-- fixing issue camel-tooling#34 (missing camel-maven-plugin version for spring
projects)
-- fixing error with test soap utility
-- adding test for camel dsl validation

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Dec 5, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process
-- fixing issue camel-tooling#34 (missing camel-maven-plugin version for spring
projects)
-- fixing error with test soap utility
-- adding test for camel dsl validation
-- split up tests

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit to bfitzpat/generator-camel-project that referenced this issue Dec 5, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise camel-tooling#11
-- Increasing the mocha timeout in the travis configuration camel-tooling#11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process
-- fixing issue camel-tooling#34 (missing camel-maven-plugin version for spring
projects)
-- fixing error with test soap utility
-- adding test for camel dsl validation
-- split up tests and did some test cleanup

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
bfitzpat added a commit that referenced this issue Dec 5, 2018
-- initial cut with fat jar and running the wsdl2rest tool with inputs
-- updating to support full paths and a logging.props file
-- Updating version for when we include wsdl2rest functionality
-- also updating the travis file to build the wsdl2rest jar
-- additional work on test and wsdl2rest call
-- additional fixes
-- Setting jar to specific version vs asterisk and returning to broken
test
-- updates to make wsdl2rest run in a promise #11
-- Increasing the mocha timeout in the travis configuration #11
-- addressing some review feedback
-- updating tests to run with npm test call
-- reset readme.md
-- updating console messages to better reflect what's happening to user
-- adding --debug flag for wsdl2rest
-- fixing log4j issue
-- adding appropriate dependencies to pom for wsdl2rest projects
-- fixing issue when using URL to non-local WSDL
-- adding test for non-local WSDL
-- adding validation to avoid java and wsdl2rest combo
-- adding function to avoid hardcoding wsdl2rest fat jar version
-- addressing more feedback
-- fixing test for jar finding function
-- increased mocha test timeout to 15000
-- added new test that starts a sample JAX-WS web service and uses the
WSDL it serves up to create a project
-- updated helloworld wsdl and sample WS
-- added jaxws and jaxrs URL property prompts
-- fixed helloworld wsdl to generate properly
-- added new command line arguments and first test
-- removed some extraneous console messages and debug settings
-- improved wsdl2rest command line tests
-- adjusted to ensure that all wsdl2rest command line args are present
-- fixed issue with java dsl option
-- addressed more minor feedback
-- added test-in-progress to run generated service and do a get request
against it
-- more test tweaks -- attempting child_process
-- fixing issue #34 (missing camel-maven-plugin version for spring
projects)
-- fixing error with test soap utility
-- adding test for camel dsl validation
-- split up tests and did some test cleanup

Signed-off-by: Brian Fitzpatrick <bfitzpat@redhat.com>
@bfitzpat
Copy link
Contributor Author

bfitzpat commented Dec 5, 2018

This is now complete with the merging of #31.

I am updating the readme (#32) and then this should be available to test more easily.

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Dec 7, 2018

@tsedmik This can be considered "done" now if you want to take a crack at testing it? I have updated the readme with some examples of how to use the command-line and --wsdl2rest aspects, and there's a built-in node.js-powered SOAP service (helloservice) that's easy to run (go into the directory and run node manualstart.js to start it (it gives you the URL for the WSDL) and you can use that to generate a Spring- or Blueprint-based wsdl2rest wrapper that runs locally.

The only issue right now with testing will be the wsdl2rest Blueprint case. It should deploy in a Karaf instance, but it doesn't test standalone (with mvn camel:run) like the standard camel-project case does. There are some open issues (see the bottom of the readme for the two I have currently).

But this is all committed and deployed up to npm now https://www.npmjs.com/package/generator-camel-project so you should be able to test everything that's working.

Thanks!

@bfitzpat bfitzpat self-assigned this Dec 17, 2018
@tsedmik
Copy link
Member

tsedmik commented Dec 20, 2018

Hi @bfitzpat, I'm sorry for such a late response. I'm forwarding your request to @djelinek. He's took responsibility for testing Yeoman stuff ;-)

@bfitzpat
Copy link
Contributor Author

@tsedmik no worries. Thank you! And thank you @djelinek for taking a look at this one. :)

@djelinek
Copy link
Member

djelinek commented Feb 6, 2019

@bfitzpat I have problems with wsdl2rest generated from command line, ouput of wsdl2rest project with prompts and from command line has different output... I used same options in both as describes readme file of generator

With prompts:

➜  restapp git:(master) ✗ yo camel-project --wsdl2rest
     _                             _
    / \     _ __     __ _    ___  | |__     ___
   / _ \   | '_ \   / _` |  / __| | '_ \   / _ \
  / ___ \  | |_) | | (_| | | (__  | | | | |  __/
 /_/   \_\ | .__/   \__,_|  \___| |_| |_|  \___|
           |_|
       ____                              _
     /  ___|   __ _   _ __ ___     ___  | |
    |  |      / _` | | '_ ` _ \   / _ \ | |
    |  |___  | (_| | | | | | | | |  __/ | |
     \____|   \__,_| |_| |_| |_|  \___| |_|
 -----------------------------------------------
            Camel Project Generator
                 Version: 0.2.0
 -----------------------------------------------

? Your Camel project name restapp
? Your Camel version 2.22.2
? Camel DSL type (blueprint, spring, spring-boot, or java) spring
? Package name:  com.restapp
? URL to the input WSDL http://localhost:3000/helloworldservice?wsdl
? Name of the output directory for generated artifacts src/main/java
? Address of the generated jaxrs endpoint http://localhost:8081/rest
? Address of the target jaxws endpoint http://localhost:3000/helloworldservice
Creating folders
Copying files
Calling wsdl2rest
   create CXF artifacts for specified WSDL at src/main/java
   create src/main/resources/META-INF/spring/camel-context.xml
   create pom.xml
   create README.md

From command line:

➜  restapp git:(master) ✗ yo camel-project appname=MyApp camelVersion=2.22.2 camelDSL=spring package=com.myapp wsdl=http://localhost:3000/helloworldservice\?wsdl outdirectory=src/main/java jaxrs=http://localhost:8081/rest jaxws=http://localhost:3000/helloworldservice
Creating folders
Copying files
   create pom.xml
   create README.md
   create src/main/resources/META-INF/spring/camel-context.xml

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Feb 6, 2019

Ok I'll take a look. Thanks @tsedmik

@tsedmik
Copy link
Member

tsedmik commented Feb 7, 2019

@bfitzpat I assume, that you meant @djelinek :-).Actually, I haven't done anything on generator-camel-project side.

@bfitzpat
Copy link
Contributor Author

bfitzpat commented Feb 7, 2019

I assume, that you meant @djelinek
I did! Sorry about that! :)

@djelinek
Copy link
Member

verified

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants