Skip to content

Commit

Permalink
fix grab support
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Sep 29, 2020
1 parent ae81a3d commit e6d3b29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions base/org.codehaus.groovy30/src/groovy/grape/GrapeIvy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ class GrapeIvy implements GrapeEngine {
if (!isValidTargetClassLoader(loader)) {
loader = GrapeIvy.getClass().getClassLoader()
}*/
/* GRECLIPSE edit -- removing this only affects the GrapeIvy used during compilation, where the ClassLoader doesn't matter
if (!isValidTargetClassLoader(loader)) {
throw new RuntimeException('No suitable ClassLoader found for grab')
}
*/
}
loader
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ abstract class GroovyEclipseTestSuite {

@After
final void tearDownTestCase() {
GroovyPlugin.default.activeWorkbenchWindow.activePage.closeAllEditors(false)
GroovyPlugin.default.activeWorkbenchWindow?.activePage?.closeAllEditors(false)
testProject.deleteWorkingCopies()

testProject.project.build(IncrementalProjectBuilder.CLEAN_BUILD, null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ final class GroovyScriptLaunchShortcutTests extends GroovyEclipseTestSuite {
@Test // https://github.com/groovy/groovy-eclipse/issues/779
void testScriptLaunch13() {
def unit = addGroovySource('''\
|@Grapes([
| @GrabConfig(systemClassLoader=true),
| @Grab('mysql:mysql-connector-java:5.1.6')
|])
|@GrabConfig(systemClassLoader=true)
|@Grab('mysql:mysql-connector-java:5.1.6')
|def xxx
|
|println "Why won't this run?"
Expand Down

0 comments on commit e6d3b29

Please sign in to comment.