Allow for configuring the deletion of the project directory in cleanup of ProjectSpec

* Needed this functionality for a different project.
* Also fixed a compilation issue on `ClasspathAddingInitScriptBuilder` (missing closing parenthesis). When running the whole test suite, there are some other failures related to the creation of the init script. These ones I didn't fix. Let me know if I should have a look at it.
Please do fix them. (I think it was changed 37 days ago, not 3)


On Wed, Jul 16, 2014 at 11:38 AM, Benjamin Muschko <notifications@github.com
> wrote:

> In
> src/main/groovy/nebula/test/functional/internal/classpath/ClasspathAddingInitScriptBuilder.groovy:
>
> > @@ -29,7 +29,7 @@ public class ClasspathAddingInitScriptBuilder {
> >                  writer.write("  buildscript {\n");
> >                  writer.write("    dependencies {\n");
> >                  for (File file : classpath) {
> > -                    writer.write(String.format("      classpath file('%s')\n", TextUtil.escapeString(file.getAbsolutePath()));
> > +                    writer.write(String.format("      classpath file('%s')\n", TextUtil.escapeString(file.getAbsolutePath())));
>
> Just checked. It also fails on the command line with Gradle. The line was
> changed three days ago.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/nebula-plugins/nebula-test/pull/16/files#r15018480>.
>