File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
grails-shell/src/main/groovy/org/grails/cli/profile/repository Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1515 */
1616package org.grails.cli.profile.repository
1717import groovy.transform.CompileStatic
18+ import org.eclipse.aether.artifact.DefaultArtifact
19+ import org.grails.cli.profile.Profile
1820
1921/**
2022 * A JAR file repository that resolves profiles from a static array of JAR file URLs
@@ -35,5 +37,12 @@ class StaticJarProfileRepository extends AbstractJarProfileRepository {
3537 }
3638 }
3739
38-
40+ Profile getProfile (String profileName ) {
41+ def profile = super . getProfile(profileName)
42+ if (profile == null && profileName. contains(' :' )) {
43+ def art = new DefaultArtifact (profileName)
44+ profile = super . getProfile(art. artifactId)
45+ }
46+ return profile
47+ }
3948}
You can’t perform that action at this time.
0 commit comments