}*/
} if(results==null) { return params; } HashMap strParams = new HashMap(); if(results.hasOption('F')) { String fileName = results.getOptionValue('F'); File file = new File(fileName); Properties ps = new Properties(); try { ps.load(new FileInputStream(file)); } catch (FileNotFoundException e) { logger.log( Level.SEVERE, "file: " + file.getAbsolutePath()+" not exists!" ); } catch (IOException e) { logger.log( Level.SEVERE, "Can't open file: " + file.getAbsolutePath()); } strParams.putAll(ps);  } if(results.hasOption('p')) { String[] stringParams = results.getOptionValues('p');  if(stringParams!=null) { for(int i=0; i<stringParams.length; i++) { addParameter(stringParams[i], strParams); }  } } if(strParams.size()==0) { return params; }  IGetParameterDefinitionTask task = engine.createGetParameterDefinitionTask(design); Collection paramDefn = task.getParameterDefns(false); Iterator iter = paramDefn.iterator(); while(iter.hasNext()) {  IParameterDefnBase pBase = (IParameterDefnBase)iter.next(); if(pBase instanceof IScalarParameterDefn) { Object value = this.evaluateDefault((IScalarParameterDefn)pBase, (String)strParams.get(pBase.getName())); if(value!=null) { params.put(pBase.getName(), value); } } }
		protected HashMap parseParameters( ArrayList paramDefns )		{			HashMap params = new HashMap( );			/*BasicParser parser = new BasicParser( );						 * Add parameters into instance option			 			for ( int i = 0; i < paramDefns.size( ); i++ )			{				option.addOption( new Integer( i ).toString( ), "param" + i, //$NON-NLS-1$						true, "" ); //$NON-NLS-1$			}			try			{				CommandLine results = parser.parse( option, args, false );				//add the parameter values into the param hash map.				for ( int i = 0; i < paramDefns.size( ); i++ )				{					IScalarParameterDefn paramHandle = (IScalarParameterDefn) paramDefns							.get( i );					String paramName = paramHandle.getName( );					assert paramName != null;					Object result = null;					if ( results.hasOption( new Integer( i ).toString( ) ) )					{						result = results.getOptionValue( "param" + i ); //$NON-NLS-1$					}					if ( result == null )					{						result = paramHandle.getDefaultValue( );						if ( ( result != null ) && ( result.equals( "" ) ) ) //$NON-NLS-1$						{							result = null;						}					}					if ( result != null )					{						int type = paramHandle.getType( );						if ( type == IParameterDefn.TYPE_BOOLEAN )						{							result = new Boolean( (String) result );						}						params.put( paramName, result );					}				}			}			catch ( org.apache.commons.cli.ParseException pe )			{			    logger.log( Level.SEVERE, "CLI parseException " + pe.getMessage( ), pe ); //$NON-NLS-1$			}*/			return params;		}