View | Details | Raw Unified | Return to bug 97744
Collapse All | Expand All

(-)JDTCompilerAdapter.java (-1 / +11 lines)
Lines 301-307 Link Here
301
			 * extra option allowed by the Eclipse compiler
301
			 * extra option allowed by the Eclipse compiler
302
			 */
302
			 */
303
			cmd.createArgument().setValue("-log"); //$NON-NLS-1$
303
			cmd.createArgument().setValue("-log"); //$NON-NLS-1$
304
			this.logFileName = this.destDir.getAbsolutePath() + ".log"; //$NON-NLS-1$
304
			if (this.destDir == null) {
305
				File userDirectory = new File(System.getProperty("user.dir")); //$NON-NLS-1$
306
				String userDirectoryPath = userDirectory.getAbsolutePath();
307
				if (userDirectoryPath.endsWith(File.separator)) {
308
					this.logFileName = userDirectoryPath + "temp.log"; //$NON-NLS-1$
309
				} else {
310
					this.logFileName = userDirectoryPath + File.separator + "temp.log"; //$NON-NLS-1$
311
				}
312
			} else {
313
				this.logFileName = this.destDir.getAbsolutePath() + ".log"; //$NON-NLS-1$
314
			}
305
			cmd.createArgument().setValue(this.logFileName);
315
			cmd.createArgument().setValue(this.logFileName);
306
		}
316
		}
307
317

Return to bug 97744