1 20 package org.objectweb.modfact.jmi.service.cmdline.client; 21 22 import org.objectweb.modfact.jmi.service.GenerationService; 23 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 24 25 28 public class OptionImpl extends DefaultOptionBase { 29 30 33 protected GenerationService application_; 34 35 39 public OptionImpl(GenerationService application) { 40 super(); 42 setLabels(new String [] { "-impl" }); 43 setArguments(new String [] { "file.zip" }); 44 setDescription(new String [] { "Set the Zip file which will contain the repository implementation to write" }); 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_.setImplFile(file); 63 } 64 65 } 66 | Popular Tags |