Polish
This commit is contained in:
@@ -48,17 +48,13 @@ public class GrabCommand extends OptionParsingCommand {
|
|||||||
@Override
|
@Override
|
||||||
protected ExitStatus run(OptionSet options) throws Exception {
|
protected ExitStatus run(OptionSet options) throws Exception {
|
||||||
SourceOptions sourceOptions = new SourceOptions(options);
|
SourceOptions sourceOptions = new SourceOptions(options);
|
||||||
|
|
||||||
List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
|
List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
|
||||||
.createDefaultRepositoryConfiguration();
|
.createDefaultRepositoryConfiguration();
|
||||||
|
|
||||||
GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
|
GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
|
||||||
options, this, repositoryConfiguration);
|
options, this, repositoryConfiguration);
|
||||||
|
|
||||||
if (System.getProperty("grape.root") == null) {
|
if (System.getProperty("grape.root") == null) {
|
||||||
System.setProperty("grape.root", ".");
|
System.setProperty("grape.root", ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
|
GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
|
||||||
groovyCompiler.compile(sourceOptions.getSourcesArray());
|
groovyCompiler.compile(sourceOptions.getSourcesArray());
|
||||||
return ExitStatus.OK;
|
return ExitStatus.OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user