gant.TargetExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • When uninstalling a plugin in Eclipse via the Grails command prompt, uninstall fails due to the error shown below. The folder links are removed, but when examining the plugin contents in the Project Explorer, it still shows the deleted plugin. Since the content of the "Plugins" logical folder is parsed directly from the .grails folder outside of the workspace and it relies on classpath entries to exist for source folders to be added into the logical folder, it may mean that the classpath entries for the removed plugin are still present. Base Directory: C:\workspaces\sts_runtime\AGrailsPluginProject3 Resolving dependencies... Dependencies resolved in 2733ms. Running script C:\springsource\grails-1.2.2\scripts\UninstallPlugin.groovy Environment set to development [delete] Deleting directory C:\workspaces\sts_runtime\AGrailsPluginProject3\web-app\WEB-INF\classes [delete] Deleting directory C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\resources Executing rest-0.3 plugin uninstall script ... [delete] Deleting directory C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3 Error executing script UninstallPlugin: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar gant.TargetExecutionException: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331) 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) Caused by: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar at org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:624) at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:683) at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:679) at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:543) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at _PluginDependencies_groovy$_run_closure28.doCall(_PluginDependencies_groovy:1036) at _PluginDependencies_groovy$_run_closure28.call(_PluginDependencies_groovy) at _GrailsPlugins_groovy$_run_closure4.doCall(_GrailsPlugins_groovy:118) at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) ... 10 more Error executing script UninstallPlugin: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar
    via by Nieraj Singh,
  • When uninstalling a plugin in Eclipse via the Grails command prompt, uninstall fails due to the error shown below. The folder links are removed, but when examining the plugin contents in the Project Explorer, it still shows the deleted plugin. Since the content of the "Plugins" logical folder is parsed directly from the .grails folder outside of the workspace and it relies on classpath entries to exist for source folders to be added into the logical folder, it may mean that the classpath entries for the removed plugin are still present. Base Directory: C:\workspaces\sts_runtime\AGrailsPluginProject3 Resolving dependencies... Dependencies resolved in 2733ms. Running script C:\springsource\grails-1.2.2\scripts\UninstallPlugin.groovy Environment set to development [delete] Deleting directory C:\workspaces\sts_runtime\AGrailsPluginProject3\web-app\WEB-INF\classes [delete] Deleting directory C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\resources Executing rest-0.3 plugin uninstall script ... [delete] Deleting directory C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3 Error executing script UninstallPlugin: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar gant.TargetExecutionException: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331) 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) Caused by: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar at org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:624) at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:683) at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:679) at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:543) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at _PluginDependencies_groovy$_run_closure28.doCall(_PluginDependencies_groovy:1036) at _PluginDependencies_groovy$_run_closure28.call(_PluginDependencies_groovy) at _GrailsPlugins_groovy$_run_closure4.doCall(_GrailsPlugins_groovy:118) at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324) ... 10 more Error executing script UninstallPlugin: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar
    via by Nieraj Singh,
  • Groovy: deploying a war file
    via Stack Overflow by Luixv
    ,
  • .zul is not displayed
    via by Andrey,
  • running grails application.
    via by Hesham Alshaebi,
  • [groovy-user] [ANN] Announcing CodeNarc 0.9
    via by chris...@wachovia.com,
  • Problem with test of class.
    via by jborup,
    • gant.TargetExecutionException: : Unable to delete file C:\Documents and Settings\nisingh\.grails\1.2.2\projects\AGrailsPluginProject3\plugins\rest-0.3\lib\commons-beanutils-1.7.0.jar at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:331) 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)
    No Bugmate found.