By default set embedded to true for GradleConnector. This is to allow fo...

...r in-process debugging from the IDE. Forking behavior can be enabled by setting a system property.
Please do. Can you confirm that setting a -D in IntelliJ works for this too?

On Tue, Sep 16, 2014 at 2:50 PM, Benjamin Muschko <notifications@github.com>
wrote:

> In
> src/main/groovy/nebula/test/functional/internal/toolingapi/ToolingApiGradleHandleFactory.groovy:
>
> >          if (wrapper.getDistribution()) {
> >              connector.useDistribution(wrapper.getDistribution())
> >          }
> >
> > -        ProjectConnection connection = connector.connect();
> > -        BuildLauncher launcher = connection.newBuild();
> > -        String[] argumentArray = new String[arguments.size()];
> > -        arguments.toArray(argumentArray);
> > -        launcher.withArguments(argumentArray);
> > -        createGradleHandle(connection, launcher)
> > +        connector
> > +    }
> > +
> > +    private boolean isForkedProcess() {
> > +        Boolean.parseBoolean(System.getProperty(FORK_SYS_PROP, Boolean.FALSE.toString()))
>
> If you want we can expose a method in IntegrationSpec. Depends on how
> user-friendly you want this to be. Want me to add it?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nebula-plugins/nebula-test/pull/18/files#r17632986>.
>