1 20 package org.objectweb.modfact.corba.service.cmdline.io; 21 22 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 23 24 27 public class OptionOutput extends DefaultOptionBase { 28 29 32 protected ExportApplication application_; 33 34 38 public OptionOutput(ExportApplication application) { 39 super(); 41 42 setLabels(new String [] { "-output" }); 43 setArguments(new String [] { "file" }); 44 setDescription(new String [] { "Set the output file" }); 45 setMandatory(false); 46 47 application_ = application; 49 } 50 51 55 59 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 60 checkAlreadySet(iterator); 61 String file = consumeArgument(iterator); 62 application_.setOutput(file); 63 } 64 65 } 66 | Popular Tags |