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 TypeMethodDescriptionvoidintGets the error cnt.intGets the warning cnt.org.mozilla.javascript.EvaluatorExceptionruntimeError(String message, String sourceName, int line, String lineSource, int lineOffset) voidSets the default file name.voidSets 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
-
runtimeError
-
warning
-
setFile
-