public void executeAntTarget( String targetName, Variable[] antProperties ) { CallTarget target = new CallTarget(); target.setTarget( targetName );  target.setProject( this.antProject );  Map symbols = this.environment.getSymbols(); for (Iterator iter = symbols.keySet().iterator(); iter.hasNext();) { String symbol = (String) iter.next(); Property antProperty = target.createParam(); antProperty.setName( symbol ); antProperty.setValue( "true" );
public void executeAntTarget( String targetName, List antPropertiesList ) { if (antPropertiesList == null) { executeAntTarget( targetName, (Variable[]) null );
	public void executeAntTarget( String targetName, Variable[] antProperties ) {		CallTarget target = new CallTarget();		target.setTarget( targetName );		// setting up a new ant project:		target.setProject( this.antProject );		// setting device properties:		Map symbols = this.environment.getSymbols();		for (Iterator iter = symbols.keySet().iterator(); iter.hasNext();) {			String symbol = (String) iter.next();			Property antProperty = target.createParam();			antProperty.setName( symbol );			antProperty.setValue( "true" );					}		Map variables = this.environment.getVariables(); 		for (Iterator iter = variables.keySet().iterator(); iter.hasNext();) {			String name = (String) iter.next();			String value = (String) variables.get( name );			if ( value.indexOf("${") != -1 ) {				value = this.environment.writeProperties( value );			}						Property antProperty = target.createParam();			antProperty.setName( name );			antProperty.setValue( value );					}				// setting user defined properties:		if (antProperties != null) {			BooleanEvaluator evaluator = this.environment.getBooleanEvaluator();			for (int i = 0; i < antProperties.length; i++) {				Variable property = antProperties[i];				if (property.isConditionFulfilled(evaluator, this.antProject)) {					String value = property.getValue();					if (value == null) {						continue;					}					if ( value.indexOf("${") != -1 ) {						value = this.environment.writeProperties( value );					}					//System.out.println("adding user defined property [" + property.getName() + "] = " + value );					Property antProperty = target.createParam();					antProperty.setName( property.getName() );					antProperty.setValue( value );				}			}		}		//target.init(); (is initialized automatically when the first param is created)		target.execute();	}