Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit e2066d0

Browse files
author
Matthieu Nottale
committed
intellij: Minor cleanup.
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent d70815f commit e2066d0

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

plugins/intellij/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# docker application plugin for intellij IDEA
1+
# Docker Application plugin for intellij IDEA
22

33
This directory contains the sources of a Docker Application plugin for Intellij IDEA.
44

@@ -14,7 +14,7 @@ Follow instructions here: https://www.jetbrains.com/help/idea/installing-plugin-
1414

1515
# Using the plugin
1616

17-
The plugin exposes the following commands in a top-level `docker` menu:
17+
The plugin exposes the following commands in a top-level `Docker` menu:
1818

1919
## New application
2020

plugins/intellij/src/main/java/DeployApp.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public void actionPerformed(AnActionEvent event) {
2424
Project project = event.getProject();
2525
PropertiesComponent pc = PropertiesComponent.getInstance(project);
2626
String appPath = pc.getValue("docker_app_path");
27-
if (appPath == null || appPath.equals("")) {
28-
appPath = ""; // project.getBasePath();
29-
}
3027
try {
3128
String orchestrator = "swarm";
3229
if (pc.getValue("docker_app_orchestrator").equals("kubernetes"))
@@ -58,21 +55,16 @@ public void actionPerformed(AnActionEvent event) {
5855
+ name
5956
+ settings;
6057
Process p = Runtime.getRuntime().exec(cmd,null, new File(project.getBasePath()));
61-
/*Logger l = Logger.getInstance("docker-app");
62-
l.setLevel(Level.INFO);
63-
l.info("Running deploy command: " + cmd);*/
6458
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
6559
String line;
6660
while ((line = input.readLine()) != null) {
6761
Notification n = new Notification("docker-app", "deploy", line, NotificationType.INFORMATION);
6862
Notifications.Bus.notify(n);
69-
//l.info(line);
7063
}
7164
BufferedReader error = new BufferedReader(new InputStreamReader(p.getErrorStream()));
7265
while ((line = error.readLine()) != null) {
7366
Notification n = new Notification("docker-app", "deploy", line, NotificationType.ERROR);
7467
Notifications.Bus.notify(n);
75-
//l.warn(line);
7668
}
7769
} catch (Exception e) {
7870
Messages.showMessageDialog(project, "docker-app invocation failed with " + e.toString(), "Render Failure", Messages.getInformationIcon());

plugins/intellij/src/main/java/RenderApp.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ public void actionPerformed(AnActionEvent event) {
1616
Project project = event.getProject();
1717
PropertiesComponent pc = PropertiesComponent.getInstance(project);
1818
String appPath = pc.getValue("docker_app_path");
19-
if (appPath == null || appPath.equals("")) {
20-
appPath = ""; // project.getBasePath();
21-
}
2219
try {
2320
String rawSettings = pc.getValue("docker_app_overrides");
2421
String settings = "";

0 commit comments

Comments
 (0)