File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
grails-shell/src/main/groovy/org/grails/cli/profile Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616package org.grails.cli.profile
17+
1718import grails.util.CosineSimilarity
18- import groovy.transform.CompileDynamic
19+ import grails.util.Environment
1920import groovy.transform.CompileStatic
2021import jline.console.completer.ArgumentCompleter
2122import jline.console.completer.Completer
23+ import org.grails.build.parsing.CommandLine
2224import org.grails.build.parsing.ScriptNameResolver
2325import org.grails.cli.interactive.completers.StringsCompleter
2426import org.grails.cli.profile.commands.CommandRegistry
2527import org.grails.config.NavigableMap
26- import org.yaml.snakeyaml.Yaml
28+ import org.yaml.snakeyaml.Yaml ;
29+
2730/**
2831 * Simple disk based implementation of the {@link Profile} interface
2932 *
@@ -172,7 +175,6 @@ class DefaultProfile implements Profile {
172175 }
173176 }
174177
175- @CompileDynamic
176178 private void initialize (ProfileRepository repository ) {
177179 parentProfiles = []
178180 File profileYml = new File (profileDir, " profile.yml" )
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616package org.grails.cli.profile.commands.factory
17+
1718import groovy.json.JsonParserType
1819import groovy.json.JsonSlurper
19- import groovy.transform.CompileDynamic
2020import groovy.transform.CompileStatic
2121import org.grails.cli.profile.Command
2222import org.grails.cli.profile.Profile
2323import org.grails.cli.profile.commands.DefaultMultiStepCommand
2424import org.grails.io.support.Resource
2525import org.yaml.snakeyaml.Yaml
26+
27+ import java.util.regex.Pattern
28+
29+
2630/**
2731 * A {@link CommandFactory} that can discover commands defined in YAML or JSON
2832 *
@@ -38,7 +42,6 @@ class YamlCommandFactory extends ResourceResolvingCommandFactory<Map> {
3842 final Collection<String > matchingFileExtensions = [" yml" , " json" ]
3943 final String fileNamePattern = / ^.*\. (yml|json)$/
4044
41- @CompileDynamic
4245 @Override
4346 protected Map readCommandFile (Resource resource ) {
4447 Map data
You can’t perform that action at this time.
0 commit comments