1 26 package org.objectweb.openccm.explorer.commandLine; 27 28 29 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 30 31 39 public class ConfigOption extends DefaultOptionBase { 40 41 42 protected ConfigApplication application_; 43 44 48 public ConfigOption(ConfigApplication application) { 49 super(); 51 setLabels(new String [] { "--config" }); 52 setArguments(new String [] { "file" }); 53 setDescription(new String [] { "Set the config XML file" }); 54 55 application_ = application; 57 } 58 59 63 67 public void consume(org.objectweb.util.cmdline.api.Iterator iterator) { 68 checkAlreadySet(iterator); 69 String file = consumeArgument(iterator); 70 application_.setConfigFile(file); 71 } 72 73 } 74 | Popular Tags |