Package org.springframework.boot.cli.compiler

Examples of org.springframework.boot.cli.compiler.GroovyCompiler.compile()


      if (System.getProperty("grape.root") == null) {
        System.setProperty("grape.root", ".");
      }

      GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
      groovyCompiler.compile(sourceOptions.getSourcesArray());
      return ExitStatus.OK;
    }

  }
View Full Code Here


      throws CompilationFailedException, IOException {
    GroovyCompiler groovyCompiler = new GroovyCompiler(this.configuration);
    List<File> artifactFiles = new ArrayList<File>();
    if (!artifactIdentifiers.isEmpty()) {
      List<URL> initialUrls = getClassPathUrls(groovyCompiler);
      groovyCompiler.compile(createSources(artifactIdentifiers));
      List<URL> artifactUrls = getClassPathUrls(groovyCompiler);
      artifactUrls.removeAll(initialUrls);
      for (URL artifactUrl : artifactUrls) {
        artifactFiles.add(toFile(artifactUrl));
      }
View Full Code Here

      List<URL> classpath = getClassPathUrls(compiler);
      List<MatchedResource> classpathEntries = findMatchingClasspathEntries(
          classpath, options);

      String[] sources = new SourceOptions(nonOptionArguments).getSourcesArray();
      Class<?>[] compiledClasses = compiler.compile(sources);

      List<URL> dependencies = getClassPathUrls(compiler);
      dependencies.removeAll(classpath);

      writeJar(output, compiledClasses, classpathEntries, dependencies);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.