Package net.alchim31.maven.yuicompressor
Class ErrorReporter4Mojo
java.lang.Object
net.alchim31.maven.yuicompressor.ErrorReporter4Mojo
- All Implemented Interfaces:
org.mozilla.javascript.ErrorReporter
The Class ErrorReporter4Mojo.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorReporter4Mojo
(org.apache.maven.plugin.logging.Log log, boolean jswarn, org.codehaus.plexus.build.BuildContext buildContext) Instantiates a new error reporter 4 mojo. -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
Gets the error cnt.int
Gets the warning cnt.org.mozilla.javascript.EvaluatorException
runtimeError
(String message, String sourceName, int line, String lineSource, int lineOffset) void
Sets the default file name.void
Sets the file.void
-
Constructor Details
-
ErrorReporter4Mojo
public ErrorReporter4Mojo(org.apache.maven.plugin.logging.Log log, boolean jswarn, org.codehaus.plexus.build.BuildContext buildContext) Instantiates a new error reporter 4 mojo.- Parameters:
log
- the logjswarn
- the jswarnbuildContext
- the build context
-
-
Method Details
-
setDefaultFileName
Sets the default file name.- Parameters:
v
- the new default file name
-
getErrorCnt
public int getErrorCnt()Gets the error cnt.- Returns:
- the error cnt
-
getWarningCnt
public int getWarningCnt()Gets the warning cnt.- Returns:
- the warning cnt
-
error
- Specified by:
error
in interfaceorg.mozilla.javascript.ErrorReporter
-
runtimeError
public org.mozilla.javascript.EvaluatorException runtimeError(String message, String sourceName, int line, String lineSource, int lineOffset) - Specified by:
runtimeError
in interfaceorg.mozilla.javascript.ErrorReporter
-
warning
- Specified by:
warning
in interfaceorg.mozilla.javascript.ErrorReporter
-
setFile
Sets the file.- Parameters:
file
- the new file
-