Ignore:
Timestamp:
03/20/13 12:37:06 (12 years ago)
Author:
gosiaw
Message:

Path to file containing information about schedulers and estimators can be taken from input argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/test/DEBBTranslator/src/PLMXMLTranslator.java

    r969 r974  
    2727        private static HashMap<String, String> resourceUnitClasses; 
    2828 
     29 
    2930        /** 
    3031         *  
     
    4243                String outputFileName = DEFAULT_OUTPUT_FILE_NAME; 
    4344                String debbTransformationFileName = DEFAULT_PLMXML_TRANSFORMATION_FILE_NAME; 
     45                String schedulersAndEstimatorsFileName = DEFAULT_SCHEDULERS_AND_ESTIMATORS_FILE_NAME; 
    4446                 
    4547                if (args != null && args.length > 0) { 
     
    5860                                } 
    5961                        } 
     62                         
     63                        if (args.length > 1) { 
     64                                schedulersAndEstimatorsFileName = args[2]; 
     65                                if (schedulersAndEstimatorsFileName == null 
     66                                                || (schedulersAndEstimatorsFileName != null && schedulersAndEstimatorsFileName.isEmpty() == true)) { 
     67                                        schedulersAndEstimatorsFileName = DEFAULT_SCHEDULERS_AND_ESTIMATORS_FILE_NAME; 
     68                                         
     69                                } 
     70                        } 
     71                         
    6072                } 
    6173                 
     
    8496                System.out.println("inputFileName=" + inputFileName); 
    8597                System.out.println("outputFileName=" + outputFileName); 
     98                System.out.println("schedulersAndEstimatorsFileName=" + schedulersAndEstimatorsFileName); 
    8699                 
    87100                try { 
Note: See TracChangeset for help on using the changeset viewer.