From 4687c7dd41e911c864093572ca1442a6441350f8 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
Date: Tue, 29 Jan 2002 16:35:46 +0000
Subject: [PATCH] add environment variable support to if VM is forked.
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271001 13f79535-47bb-0310-9956-ffa450edef68
---
WHATSNEW | 2 +-
docs/manual/OptionalTasks/junit.html | 22 +++++++++-
.../taskdefs/optional/junit/JUnitTask.java | 42 +++++++++++++++++++
3 files changed, 64 insertions(+), 2 deletions(-)
diff --git a/WHATSNEW b/WHATSNEW
index 06fce786b..93c561322 100644
--- a/WHATSNEW
+++ b/WHATSNEW
@@ -135,7 +135,7 @@ Other changes:
* A "package" mapper type has been added to allow package directory
names replaced with the dotted form.
-* you can now specify environment variables in the task
+* you can now specify environment variables in the and tasks
if the fork attribute has been set to true.
Changes from Ant 1.4 to Ant 1.4.1
diff --git a/docs/manual/OptionalTasks/junit.html b/docs/manual/OptionalTasks/junit.html
index 2757f28dd..735c2a422 100644
--- a/docs/manual/OptionalTasks/junit.html
+++ b/docs/manual/OptionalTasks/junit.html
@@ -91,6 +91,13 @@ elements.
fork is disabled)
No |
+
+ newenvironment |
+ Do not propagate old environment when new
+ environment variables are specified. Ignored if fork is
+ disabled. |
+ No, default is "false". |
+
@@ -134,6 +141,19 @@ The attributes for this element are the same as for exec
+
+Please note that the environment of the current Ant process is
+not passed to the forked VM if you specify variables using
+<env>
.
+
+Settings will be ignored if fork is disabled.
+
formatter
The results of the tests can be printed in different
@@ -405,7 +425,7 @@ string patterns:
"java.lang.reflect.Method.invoke("
"org.apache.tools.ant."
-Copyright © 2001 Apache Software Foundation. All rights
+
Copyright © 2001-2002 Apache Software Foundation. All rights
Reserved.