Browse Source

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
master
Stefan Bodewig 17 years ago
parent
commit
26c3308007
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      docs/manual/CoreTasks/javac.html
  2. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java

+ 2
- 0
docs/manual/CoreTasks/javac.html View File

@@ -110,6 +110,8 @@ current JDK is 1.2+. If you use
switch <code>-depend</code> instead of <code>-Xdepend</code>.</p>
<p>This task will drop all entries that point to non-existent
files/directories from the classpath it passes to the compiler.</p>
<p>The working directory for a forked executable (if any) is the
project's base directory.</p>
<p><strong>Windows Note:</strong>When the modern compiler is used
in unforked mode on Windows, it locks up the files present in the
classpath of the <code>&lt;javac&gt;</code> task, and does not release them.


+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java View File

@@ -435,6 +435,10 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter {

/**
* Do the compile with the specified arguments.
*
* <p>The working directory if the executed process will be the
* project's base directory.</p>
*
* @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


Loading…
Cancel
Save