--- realsrc/main/org/apache/tools/ant/taskdefs/Javac.java	Mon Jul 30 05:05:14 2001
+++ src/main/org/apache/tools/ant/taskdefs/Javac.java	Mon Jul 30 13:05:58 2001
@@ -114,6 +114,7 @@
     private Path extdirs;
     private boolean includeAntRuntime = true;
     private boolean includeJavaRuntime = false;
+    private boolean fork = false;
 
     protected boolean failOnError = true;
     protected File[] compileList = new File[0];
@@ -401,6 +402,15 @@
     }
 
     /**
+     * Sets whether to fork the javac compiler.
+     */    
+    public void setFork(boolean fork) 
+    {
+	this.fork = fork;
+    }
+	
+
+    /**
      * Executes the task.
      */
     public void execute() throws BuildException {
@@ -445,6 +455,13 @@
                 compiler = "classic";
             }
         }
+
+	if (fork) {
+	    compiler = "extJavac";
+	    if (compiler != null) {
+		log("Since fork=true, ignoring build.compiler setting.");
+	    }
+	}
 
         if (compileList.length > 0) {
 
