From 6f5a6677ffc30af0767fc944583009770b1a2fda Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 23 Sep 2002 12:50:07 +0000 Subject: [PATCH] Create FAQ on the Ant 1.4, Windows XP, JDK 1.4 problem and mention the workaround confirmed by Curt Wilhelm. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273342 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 33 +++++++++++++++++++++++++++++++++ xdocs/faq.xml | 21 +++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/docs/faq.html b/docs/faq.html index a325be86d..c30a32cb9 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -297,6 +297,12 @@
  • <style> or <junit> ignores my <classpath> +
  • +
  • + When running Ant 1.4 on Windows XP and JDK 1.4, I get + various errors when trying to <exec>, fork + <java> or access environment + variables.
  • The ant wrapper script of Ant 1.5 fails @@ -2039,6 +2045,33 @@ mv /tmp/foo $ANT_HOME/bin/antRun + + + + + +
    + + + When running Ant 1.4 on Windows XP and JDK 1.4, I get + various errors when trying to <exec>, fork + <java> or access environment + variables. + + +
    +
    +

    Ant < 1.5 doesn't recognize Windows XP as a flavor + of Windows that runs CMD.EXE instead of + COMMAND.COM. JDK 1.3 will tell Ant that Windows + XP is Windows 2000 so the problem doesn't show up + there.

    +

    Apart from upgrading to Ant 1.5 or better, setting the + environment variable ANT_OPTS to + -Dos.name=Windows_NT prior to invoking Ant has + been confirmed as a workaround.

    +
    +
    diff --git a/xdocs/faq.xml b/xdocs/faq.xml index bc0888117..ecce17c5c 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -1089,6 +1089,27 @@ mv /tmp/foo $ANT_HOME/bin/antRun + + When running Ant 1.4 on Windows XP and JDK 1.4, I get + various errors when trying to <exec>, fork + <java> or access environment + variables. + + + +

    Ant < 1.5 doesn't recognize Windows XP as a flavor + of Windows that runs CMD.EXE instead of + COMMAND.COM. JDK 1.3 will tell Ant that Windows + XP is Windows 2000 so the problem doesn't show up + there.

    + +

    Apart from upgrading to Ant 1.5 or better, setting the + environment variable ANT_OPTS to + -Dos.name=Windows_NT prior to invoking Ant has + been confirmed as a workaround.

    +
    +
    + The ant wrapper script of Ant 1.5 fails for Cygwin if ANT_HOME is set to a Windows style