typesafehub/sbteclipse — pull request #119 by JamesEarlDouglas (2012-07-14 03:27:48+00:00)
Title: fix broken test in linux by ensuring deletion of */.settings*

The test `01-structure` was failing under Linux, but passing under OSX. This was due to the differences between GNU `find` and OSX `find`. In Linux, `find -delete` returns non-zero for an error, but in OSX always returns success.

Since the command `find . -path "*/.settings" -delete` fails when `.settings` has children, OSX was getting a (false) success while Linux was getting a (correct) failure.

I updated the `find -delete` command to make sure that `.settings` as well as its children definitely get deleted.

Here was the failing output from `sbt "show scripted"`:

```
Running sbteclipse / 01-structure
find: cannot delete `./sub/subb/.settings': Directory not empty

// lines snipped //

[error] x sbteclipse / 01-structure
xsbt.test.TestException: {line 30} Command failed

// lines snipped //

Caused by: java.lang.RuntimeException: Nonzero exit value (1)
```