From 26c33080079b787b3a5ccf8800c04176ad281974 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 16 Jul 2008 14:51:21 +0000 Subject: [PATCH] note working directory for forked compilers. PR 30542. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677296 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/javac.html | 2 ++ .../tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/manual/CoreTasks/javac.html b/docs/manual/CoreTasks/javac.html index c3593af2e..29a5f5963 100644 --- a/docs/manual/CoreTasks/javac.html +++ b/docs/manual/CoreTasks/javac.html @@ -110,6 +110,8 @@ current JDK is 1.2+. If you use switch -depend instead of -Xdepend.

This task will drop all entries that point to non-existent files/directories from the classpath it passes to the compiler.

+

The working directory for a forked executable (if any) is the + project's base directory.

Windows Note:When the modern compiler is used in unforked mode on Windows, it locks up the files present in the classpath of the <javac> task, and does not release them. diff --git a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java index 13275ccba..46674e49f 100644 --- a/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java +++ b/src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java @@ -435,6 +435,10 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter { /** * Do the compile with the specified arguments. + * + *

The working directory if the executed process will be the + * project's base directory.

+ * * @param args - arguments to pass to process on command line * @param firstFileName - index of the first source file in args, * if the index is negative, no temporary file will ever be