Index: JDTCompilerAdapter.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java,v retrieving revision 1.47 diff -u -r1.47 JDTCompilerAdapter.java --- JDTCompilerAdapter.java 30 May 2005 13:17:59 -0000 1.47 +++ JDTCompilerAdapter.java 31 May 2005 21:27:25 -0000 @@ -301,7 +301,17 @@ * extra option allowed by the Eclipse compiler */ cmd.createArgument().setValue("-log"); //$NON-NLS-1$ - this.logFileName = this.destDir.getAbsolutePath() + ".log"; //$NON-NLS-1$ + if (this.destDir == null) { + File userDirectory = new File(System.getProperty("user.dir")); //$NON-NLS-1$ + String userDirectoryPath = userDirectory.getAbsolutePath(); + if (userDirectoryPath.endsWith(File.separator)) { + this.logFileName = userDirectoryPath + "temp.log"; //$NON-NLS-1$ + } else { + this.logFileName = userDirectoryPath + File.separator + "temp.log"; //$NON-NLS-1$ + } + } else { + this.logFileName = this.destDir.getAbsolutePath() + ".log"; //$NON-NLS-1$ + } cmd.createArgument().setValue(this.logFileName); }