2788N/A * The contents of this file are subject to the terms of the 2788N/A * Common Development and Distribution License, Version 1.0 only 2788N/A * (the "License"). You may not use this file except in compliance 2788N/A * You can obtain a copy of the license at 2788N/A * See the License for the specific language governing permissions 2788N/A * and limitations under the License. 2788N/A * When distributing Covered Code, include this CDDL HEADER in each 2788N/A * file and include the License file at 2788N/A * add the following below this CDDL HEADER, with the fields enclosed 2788N/A * by brackets "[]" replaced with your own identifying information: 2788N/A * Portions Copyright [yyyy] [name of copyright owner] 5061N/A * Copyright 2008-2010 Sun Microsystems, Inc. 2788N/A // java files are assumed to be from the unit-integration tests. 2788N/A // xml files are assumed to be from the functional tests. 2788N/A // create list of files to parse 2788N/A // clean out the list of files 2788N/A // The ArrayList object, arrayFiles, contains the list of files that must be parsed. 2788N/A //for(int i=0; i<arrayFiles.size(); i++) 2788N/A // File gotFile = (File)(arrayFiles.get(i)); 2788N/A // System.out.println("File number " + Integer.toString(i) + " is " + gotFile.toString()); 2788N/A // The ArrayList object, arrayDirs, contains the list of directories where the files will be found. 2788N/A // print out list of directories 2788N/A //for(int i=0; i<arrayDirs.size(); i++) 2788N/A // File gotDir = (File)(arrayDirs.get(i)); 2788N/A // System.out.println("Directory number " + Integer.toString(i) + " is " + gotDir.toString()); 2788N/A // Assume each directory will result in an output xml file 2788N/A // There will be one ParseData object for each directory. 2788N/A // Each ParseData object holds the test specs for all tests in that directory. 2788N/A // The ArrayList object, arrayTests, contains all the ParseData objects. 2788N/A // For each directory, parse out the data from each file within that directory. 2788N/A // parse out data from all java files in a directory 2788N/A // create the output xml files from the ParsedData objects 2788N/A System.
out.
println(
"This program will parse files that are used for testing and create an xml file that is used for generating test specification html pages.");
2788N/A System.
out.
println(
"The program will recursively search for files from the directory that is passed in from the parameter.");
2788N/A System.
out.
println(
"This version will only recursively search one or two levels below the \"directory to files\" which is passed in as a parameter.");
2788N/A System.
out.
println(
" java GenerateOpenDSTestSpecs [directory to files] [directory for output files] [file format]");