From c7321fa321e5586c6736f85924bd4d7b79d9a403 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Tue, 25 Jul 2000 14:08:33 +0000 Subject: [PATCH] Allow paths to be passed to environment variables of exec task. Example usage git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267839 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/Environment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/org/apache/tools/ant/types/Environment.java b/src/main/org/apache/tools/ant/types/Environment.java index a13d5e51c..34c139d13 100644 --- a/src/main/org/apache/tools/ant/types/Environment.java +++ b/src/main/org/apache/tools/ant/types/Environment.java @@ -76,9 +76,15 @@ public class Environment { public void setKey(String key) { this.key = key; } + public void setValue(String value) { this.value = value; } + + public void setPath(Path path) { + this.value = path.toString(); + } + public String getContent() throws BuildException { if (key == null || value == null) { throw new BuildException("key and value must be specified for environment variables.");