Lines 99-104
Link Here
|
99 |
private static final String NUMBER_OF_WARNINGS = "warnings"; //$NON-NLS-1$ |
99 |
private static final String NUMBER_OF_WARNINGS = "warnings"; //$NON-NLS-1$ |
100 |
private static final String OPTION = "option"; //$NON-NLS-1$ |
100 |
private static final String OPTION = "option"; //$NON-NLS-1$ |
101 |
private static final String OPTIONS = "options"; //$NON-NLS-1$ |
101 |
private static final String OPTIONS = "options"; //$NON-NLS-1$ |
|
|
102 |
private static final String OUTPUT = "output"; //$NON-NLS-1$ |
103 |
private static final String PACKAGE = "package"; //$NON-NLS-1$ |
102 |
private static final String PATH = "path"; //$NON-NLS-1$ |
104 |
private static final String PATH = "path"; //$NON-NLS-1$ |
103 |
private static final String PROBLEM_ARGUMENT = "argument"; //$NON-NLS-1$ |
105 |
private static final String PROBLEM_ARGUMENT = "argument"; //$NON-NLS-1$ |
104 |
private static final String PROBLEM_ARGUMENT_VALUE = "value"; //$NON-NLS-1$ |
106 |
private static final String PROBLEM_ARGUMENT_VALUE = "value"; //$NON-NLS-1$ |
Lines 955-965
Link Here
|
955 |
public void startLoggingSource(CompilationResult compilationResult) { |
957 |
public void startLoggingSource(CompilationResult compilationResult) { |
956 |
if ((this.tagBits & Logger.XML) != 0) { |
958 |
if ((this.tagBits & Logger.XML) != 0) { |
957 |
ICompilationUnit compilationUnit = compilationResult.compilationUnit; |
959 |
ICompilationUnit compilationUnit = compilationResult.compilationUnit; |
958 |
char[] fileName = compilationUnit.getFileName(); |
960 |
if (compilationUnit != null) { |
959 |
File f = new File(new String(fileName)); |
961 |
char[] fileName = compilationUnit.getFileName(); |
960 |
if (fileName != null) { |
962 |
File f = new File(new String(fileName)); |
961 |
if (compilationUnit != null) { |
963 |
if (fileName != null) { |
962 |
this.parameters.put(Logger.PATH, f.getAbsolutePath()); |
964 |
this.parameters.put(Logger.PATH, f.getAbsolutePath()); |
|
|
965 |
} |
966 |
char[][] packageName = compilationResult.packageName; |
967 |
if (packageName != null) { |
968 |
this.parameters.put( |
969 |
Logger.PACKAGE, |
970 |
new String(CharOperation.concatWith(packageName, File.separatorChar))); |
971 |
} |
972 |
CompilationUnit unit = (CompilationUnit) compilationUnit; |
973 |
String destinationPath = unit.destinationPath; |
974 |
if (destinationPath == null) { |
975 |
destinationPath = this.main.destinationPath; |
976 |
} |
977 |
if (destinationPath != null && destinationPath != NONE) { |
978 |
if (File.separatorChar == '/') { |
979 |
this.parameters.put(Logger.OUTPUT, destinationPath); |
980 |
} else { |
981 |
this.parameters.put(Logger.OUTPUT, destinationPath.replace('/', File.separatorChar)); |
982 |
} |
963 |
} |
983 |
} |
964 |
} |
984 |
} |
965 |
this.printTag(Logger.SOURCE, this.parameters, true, false); |
985 |
this.printTag(Logger.SOURCE, this.parameters, true, false); |