com.jalios.jcms.tools
Class JsChecker

java.lang.Object
  extended by 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

Field Summary
static String REVISION
          The class revision.
 
Constructor Summary
JsChecker()
           
 
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
 

Field Detail

REVISION

public static final String REVISION
The class revision.

See Also:
Constant Field Values
Constructor Detail

JsChecker

public JsChecker()
Method Detail

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.