|
|
@@ -115,6 +115,12 @@ public abstract class ProjectComponent { |
|
|
public void log(String msg, int msgLevel) { |
|
|
public void log(String msg, int msgLevel) { |
|
|
if (project != null) { |
|
|
if (project != null) { |
|
|
project.log(msg, msgLevel); |
|
|
project.log(msg, msgLevel); |
|
|
|
|
|
} else { |
|
|
|
|
|
// 'reasonable' default, if the component is used without |
|
|
|
|
|
// a Project ( for example as a standalone Bean ). |
|
|
|
|
|
// Most ant components can be used this way. |
|
|
|
|
|
if( msgLevel >= Project.MSG_INFO ) |
|
|
|
|
|
System.err.println( msg ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |