if ( ! gantFile.exists ( ) ) { throw new BuildException ( "Gantfile does not exist." , getLocation ( ) ) ; }
final GantBuilder ant = new GantBuilder ( newProject ) ;
final Map<String,String> environmentParameter = new HashMap<String,String> ( ) ;
environmentParameter.put ( "environment" , "environment" ) ;
ant.invokeMethod ( "property" , new Object[] { environmentParameter } ) ;
final GantBinding binding = new GantBinding ( ) ;
binding.forcedSettingOfVariable ( "ant" , ant ) ;
for ( final Definition definition : definitions ) {
final Map<String,String> definitionParameter = new HashMap<String,String> ( ) ;
definitionParameter.put ( "name" , definition.getName ( ) ) ;
definitionParameter.put ( "value" , definition.getValue ( ) ) ;
ant.invokeMethod ( "property" , new Object[] { definitionParameter } ) ;