writer = new PrintWriter( System.out, true );
}
else {
File file = new File( mappingName );
if (file.exists() && (!force)) {
ConsoleDialog dialog = new ConsoleDialog();
String message = "The file already exists. Do you wish "+
"to overwrite '" + mappingName + "'?";
if (!dialog.confirm(message)) return;
}
writer = new FileWriter( file );
}
tool.write( writer );