1 28 29 package org.objectweb.openccm.uml.lib; 30 31 import org.objectweb.util.cmdline.lib.DefaultOptionBase; 32 33 41 42 public class OptionOutputDirectory 43 extends DefaultOptionBase 44 { 45 51 57 58 public 59 OptionOutputDirectory(org.objectweb.openccm.uml.api.UML2CCM generator) 60 { 61 super(new String [] { "-d", "--outputdir"}, 62 new String [0], 63 "Set the output directory for the generated files ('generated' by default)"); 64 this.generator = generator; 65 setArguments(new String [] {"directory"}); 66 setMandatory(false); 67 } 68 69 75 76 org.objectweb.openccm.uml.api.UML2CCM generator; 77 78 84 89 public void 90 consume(org.objectweb.util.cmdline.api.Iterator iterator) 91 { 92 String directory = consumeArgument(iterator); 93 generator.setOutputDirectory(directory); 94 } 95 96 } 102 | Popular Tags |