Skip to content

Commit

Permalink
Add Devfile plugin for provision Run Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
  • Loading branch information
vzhukovs committed Jan 31, 2022
1 parent 5c271a1 commit d3c7747
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 117 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ data class ExecCommand(
)

class DevfileRunConfigurationService : StartupActivity {
companion object {
const val DEFAULT_FLATTENED_DEVFILE_ENV_VARIABLE = "DEVWORKSPACE_FLATTENED_DEVFILE"
}

override fun runActivity(project: Project) {
val settings = DevfileComponentSettings.instance
val flattenedDevfileRawPath = System.getenv(settings.flattenedDevfileEnvVariable) ?: return
val flattenedDevfileRawPath = System.getenv(DEFAULT_FLATTENED_DEVFILE_ENV_VARIABLE) ?: return
val flattenedDevfile = Paths.get(flattenedDevfileRawPath).toFile()

if (!flattenedDevfile.exists()) return
Expand Down
5 changes: 0 additions & 5 deletions plugins/devfile-plugin/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@
<extensions defaultExtensionNs="com.intellij">
<configurationType implementation="che.incubator.devfile.DevfileRunConfigurationType"/>
<postStartupActivity implementation="che.incubator.devfile.DevfileRunConfigurationService"/>
<applicationConfigurable displayName="Devfile"
id="Settings.Devfile"
groupId="tools"
instance="che.incubator.devfile.DevfileConfigurable"/>
<applicationService serviceImplementation="che.incubator.devfile.DevfileComponentSettings"/>
</extensions>
</idea-plugin>

0 comments on commit d3c7747

Please sign in to comment.