Skip to content

Commit

Permalink
Added missing variant of root loader construction that assumes ClassL…
Browse files Browse the repository at this point in the history
…oader.systemClassLoader as the parent.
  • Loading branch information
ldaley committed May 26, 2011
1 parent 31c64df commit 2f0adc1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions grails-exec/src/main/java/org/grails/exec/RootLoader.java
Expand Up @@ -82,6 +82,14 @@ private RootLoader(ClassLoader parent) {
this(new URL[0], parent);
}

/**
* constructs a new RootLoader with the system class loader as the parent loader
* and the given urls as the classpath
*/
public RootLoader(URL[] urls) {
this(urls, ClassLoader.getSystemClassLoader());
}

/**
* constructs a new RootLoader with a parent loader and an
* array of URLs as classpath
Expand Down

0 comments on commit 2f0adc1

Please sign in to comment.