diff --git a/spring-bootstrap-cli/samples/runner.groovy b/spring-bootstrap-cli/samples/runner.groovy
new file mode 100644
index 0000000000..a5598ac968
--- /dev/null
+++ b/spring-bootstrap-cli/samples/runner.groovy
@@ -0,0 +1,10 @@
+package org.test
+
+class Runner implements CommandLineRunner {
+
+ void run(String... args) {
+ print "Hello World!"
+ }
+}
+
+
diff --git a/spring-bootstrap-cli/samples/runner.xml b/spring-bootstrap-cli/samples/runner.xml
new file mode 100644
index 0000000000..2a8f5aad1a
--- /dev/null
+++ b/spring-bootstrap-cli/samples/runner.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
diff --git a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/GroovyCompiler.java b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/GroovyCompiler.java
index 2c5d30893f..fefdbcaf94 100644
--- a/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/GroovyCompiler.java
+++ b/spring-bootstrap-cli/src/main/java/org/springframework/bootstrap/cli/compiler/GroovyCompiler.java
@@ -22,6 +22,7 @@ import groovy.lang.GroovyClassLoader.ClassCollector;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.List;
import org.codehaus.groovy.ast.ClassNode;
@@ -81,6 +82,21 @@ public class GroovyCompiler {
.addCompilationCustomizers(new CompilerAutoConfigureCustomizer());
}
+ public Object[] sources(File[] files) throws CompilationFailedException, IOException {
+ List compilables = new ArrayList();
+ List