nskvortsov avatar nskvortsov committed d811186

description for Tomcat runner

Comments (0)

Files changed (1)

deploy-runner/deploy-runner-server/src/main/java/jetbrains/buildServer/deployer/server/TomcatDeployerRunType.java

 package jetbrains.buildServer.deployer.server;
 
+import com.intellij.openapi.util.text.StringUtil;
 import jetbrains.buildServer.serverSide.PropertiesProcessor;
 import jetbrains.buildServer.serverSide.RunType;
 import jetbrains.buildServer.serverSide.RunTypeRegistry;
     public Map<String, String> getDefaultRunnerProperties() {
         return new HashMap<String, String>();
     }
+
+    @NotNull
+    @Override
+    public String describeParameters(@NotNull Map<String, String> parameters) {
+        final StringBuilder result = new StringBuilder();
+        result.append("Target Tomcat url: ").append(parameters.get(DeployerRunnerConstants.PARAM_TARGET_URL));
+        result.append('\n');
+        result.append("WAR archive: ").append(parameters.get(DeployerRunnerConstants.PARAM_SOURCE_PATH));
+        final String customContext = parameters.get(DeployerRunnerConstants.PARAM_TOMCAT_CONTEXT_PATH);
+        if (StringUtil.isNotEmpty(customContext)) {
+            result.append('\n');
+            result.append("Web app context: ").append(customContext);
+        }
+        return result.toString();
+    }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.