com.jalios.jcms.tools
Class JsChecker
java.lang.Object
com.jalios.jcms.tools.JsChecker
public class JsChecker
- extends Object
Utility class to test JS files.
- Since:
- jcms-7.1.3, jcms-8.0.0
- Version:
- $Revision: 48129 $
- Author:
- Sylvain Devaux
Method Summary |
static int |
checkAlert(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
|
static int |
checkAll(File webappDir)
|
static int |
checkConsole(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
|
static int |
checkDebugger(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
|
static int |
checkTrailingComma(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
|
protected static List<File> |
getFileList(File webappDir)
|
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REVISION
public static final String REVISION
- The class revision.
- See Also:
- Constant Field Values
JsChecker
public JsChecker()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
getFileList
protected static List<File> getFileList(File webappDir)
checkAll
public static int checkAll(File webappDir)
throws IOException
- Throws:
IOException
checkConsole
public static int checkConsole(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
throws IOException
- Throws:
IOException
checkAlert
public static int checkAlert(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
throws IOException
- Throws:
IOException
checkDebugger
public static int checkDebugger(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
throws IOException
- Throws:
IOException
checkTrailingComma
public static int checkTrailingComma(File jsFile,
String relativeFilePath,
String fileContent,
List<String> fileLinesList,
String fileMd5Signature)
throws IOException
- Throws:
IOException
Copyright © 2001-2010 Jalios SA. All Rights Reserved.