1 16 17 package org.apache.commons.modeler.ant; 18 19 import java.util.ArrayList ; 20 21 import org.apache.commons.logging.Log; 22 import org.apache.commons.logging.LogFactory; 23 import org.apache.tools.ant.BuildException; 24 25 29 public class ModelerTask extends MLETTask { 30 31 private static Log log = LogFactory.getLog(ModelerTask.class); 32 33 public ModelerTask() { 34 } 35 36 public void execute() throws BuildException { 37 try { 38 Arg codeArg=new Arg(); 39 codeArg.setType("java.lang.String"); 40 codeArg.setValue( code ); 41 if( args==null) args=new ArrayList (); 42 args.add(0, codeArg); 43 super.execute(); 44 } catch(Exception ex) { 49 ex.printStackTrace(); 50 } 51 } 52 53 } 54 | Popular Tags |