You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2013/06/03 22:58:17 UTC
svn commit: r1489170 -
/tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java
Author: markt
Date: Mon Jun 3 20:58:17 2013
New Revision: 1489170
URL: http://svn.apache.org/r1489170
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55035
Add support for the version parameter to the deploy Ant task.
Patch provided by Sergey Tcherednichenko.
Modified:
tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java
Modified: tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java?rev=1489170&r1=1489169&r2=1489170&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ant/DeployTask.java Mon Jun 3 20:58:17 2013
@@ -38,7 +38,7 @@ import org.apache.tools.ant.BuildExcepti
* @version $Id$
* @since 4.1
*/
-public class DeployTask extends AbstractCatalinaTask {
+public class DeployTask extends AbstractCatalinaCommandTask {
// ------------------------------------------------------------- Properties
@@ -74,20 +74,6 @@ public class DeployTask extends Abstract
/**
- * The context path of the web application we are managing.
- */
- protected String path = null;
-
- public String getPath() {
- return (this.path);
- }
-
- public void setPath(String path) {
- this.path = path;
- }
-
-
- /**
* Tag to associate with this to be deployed webapp.
*/
protected String tag = null;
@@ -186,9 +172,8 @@ public class DeployTask extends Abstract
}
// Building URL
- StringBuilder sb = new StringBuilder("/deploy?path=");
+ StringBuilder sb = createQueryString("/deploy");
try {
- sb.append(URLEncoder.encode(this.path, getCharset()));
if ((war == null) && (config != null)) {
sb.append("&config=");
sb.append(URLEncoder.encode(config, getCharset()));
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org