示例#1
0
  public static void main(String[] arg) {

    File file = new File("C:\\brilstore\\00EXPT123\\free.com");
    ScriptProcessor p = new ScriptProcessor(file);
    SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyyy  HH:mm:ss");
    // SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    System.out.println("Original Last Modified Date : " + sdf.format(file.lastModified()));

    TaskObject to = p.readScriptFile();

    System.out.println("Task name: " + to.getTaskName());
    System.out.println("Job id: " + to.getJobID());
    System.out.println("Task date: " + to.getRunDateTime());
    System.out.println("Input filenames: " + to.getInputFileNames());
    System.out.println("Output filenames: " + to.getOutputFileNames());
  }