diff options
author | mattinger <[email protected]> | 2006-08-22 18:58:21 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-08-22 18:58:21 +0000 |
commit | 21803b9c459f5b95b21766e3163593b654ef672c (patch) | |
tree | 3777f084b2befbccdb21d32315f3e41317cc0bf1 | |
parent | 684bc9c13521c42eaf7a1dbdcf8104429c5861b2 (diff) |
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@35 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r-- | src/java/net/sf/antcontrib/net/httpclient/GetCookieTask.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/java/net/sf/antcontrib/net/httpclient/GetCookieTask.java b/src/java/net/sf/antcontrib/net/httpclient/GetCookieTask.java index 1ff4508..4a2b3f9 100644 --- a/src/java/net/sf/antcontrib/net/httpclient/GetCookieTask.java +++ b/src/java/net/sf/antcontrib/net/httpclient/GetCookieTask.java @@ -28,17 +28,16 @@ public class GetCookieTask private String property;
private String prefix;
- private String fieldSeparator = "/";
-
private String cookiePolicy = CookiePolicy.DEFAULT;
private String realm = null;
private int port = 80;
private String path = null;
private boolean secure = false;
+ private String name = null;
- public void setFieldSeparator(String fieldSeparator) {
- this.fieldSeparator = fieldSeparator;
+ public void setName(String name) {
+ this.name = name;
}
public void setCookiePolicy(String cookiePolicy) {
@@ -93,7 +92,7 @@ public class GetCookieTask for (int i=0;i<matches.length;i++) {
String propName =
prefix +
- fieldSeparator + matches[i].getName();
+ matches[i].getName();
Property p = (Property)getProject().createTask("property");
p.setName(propName);
p.setValue(matches[i].getValue());
@@ -102,6 +101,9 @@ public class GetCookieTask }
}
+ else {
+ throw new BuildException("Nothing to set");
+ }
}
|