}
@Override
- public void perform(Stigmata stigmata, BirthmarkContext context, String[] args){
+ public boolean perform(Stigmata stigmata, BirthmarkContext context, String[] args){
+ PrintWriter out = null;
try{
- PrintWriter out;
if(args == null || args.length == 0){
out = new PrintWriter(System.out);
}
}
new ConfigFileExporter(context.getEnvironment()).export(out);
- out.close();
+ return true;
}catch(IOException e){
+ return false;
+ } finally{
+ if(out != null){
+ out.close();
+ }
}
}
}