public static void main()

in mustella/src/main/java/mustella/MustellaResultsParser.java [36:69]


    public static void main(String args[]) {
        
        String filename;
        String flashlog = "/Macromedia/Flash Player/Logs/flashlog.txt";
        
        String osname = System.getProperty("os.name");
        if (osname.indexOf("Windows") != -1) {
            filename = System.getProperty("APPDATA") + flashlog;
        } else if (osname.indexOf("Mac OS") != -1) {
            filename = System.getProperty("user.home") + "/Library/Preferences" + flashlog;
        } else if (osname.indexOf("Unix") != -1 || osname.indexOf("Linux") != -1){
            filename = System.getProperty("user.home") + "/.macromedia/Flash_Player/Logs/flashlog.txt";
        } else {
            filename = System.getProperty("APPDATA") + flashlog;
        }
        
	System.out.println("***************Filename**********: " + filename);
	
        boolean result = false;
				
        if (new File(filename).exists() == false) {
            System.out.println("result file not found: " + filename);
        } else {
			try {
				MustellaResultsParser p = new MustellaResultsParser(filename);
				result = p.parse();
			} catch(IOException e) {}
        }
        int exitValue = result ? 0 : 1;
        System.out.println("results: "+(result?"PASSED":"FAILED"));

		if (exitValue > 0)
			System.exit(exitValue);
    }