// create the .project file and start writing the contents
File dotProject = new File( config.getEclipseProjectDirectory(), ".project" );
Writer w = new OutputStreamWriter( new FileOutputStream( dotProject ), "UTF-8" );
XMLWriter writer = new PrettyPrintXMLWriter( w );
writer.startElement( "projectDescription" );
writer.startElement( "name" );
writer.writeText( "test-project" );
writer.endElement();// name