Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.2 final
-
Fix Version/s: 1.2.1
-
Component/s: None
-
Labels:None
Description
You could say this is not such a bad thing, but for a first release of a plugin, it dies if there are no tests:
[unjar] Expanding: /var/folders/GI/GIsFIF1FEIe7xUmrsp-cbE++TI/Tmp/doc-resources/grails-doc-files.jar into /var/folders/GI/GIsFIF1FEIe7xUmrsp-cbE++TI/Tmp/doc-resources
[delete] Deleting: /var/folders/GI/GIsFIF1FEIe7xUmrsp-cbE+++TI/Tmp/doc-resources/grails-doc-files.jar
[echo] Built user manual at /Users/marc/Projects/CacheHeaders/docs/manual/index.html
Built user manual at /Users/marc/Projects/CacheHeaders/docs/manual/index.html
Please enter your SVN username:
marcpalmer
Please enter your SVN password:
REDACTED!
[unzip] Expanding: /Users/marc/Projects/CacheHeaders/grails-cache-headers-1.0-SNAPSHOT.zip into /Users/marc/Projects/CacheHeaders/unzipped
[copy] Copying 1 file to /Users/marc/Projects/CacheHeaders/unzipped
[mkdir] Created dir: /Users/marc/Projects/CacheHeaders/unzipped/grails-app
[mkdir] Created dir: /Users/marc/Projects/CacheHeaders/unzipped/test
: /Users/marc/Projects/CacheHeaders/test/test not found.
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:434)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:431)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at ReleasePlugin$_run_closure9.doCall(ReleasePlugin.groovy:423)
at ReleasePlugin$_run_closure4.doCall(ReleasePlugin.groovy:158)
at ReleasePlugin$_run_closure1.doCall(ReleasePlugin.groovy:47)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
Error occurred with release-plugin: /Users/marc/Projects/CacheHeaders/test/test not found.
I ran into the same error, however my project DID have tests. I suspect the error is in scripts/ReleasePlugin.groovy, line 424. On my system at least (linux, grails 1.2.0), grailsSettings.testSourceDir already ends with '/test'. I removed the extra '/test' on line 424 and was able to release successfully.