1 26 27 package org.objectweb.openccm.task; 28 29 import java.util.Map ; 31 32 39 public class PsdlToJava 40 extends CompilerBase 41 implements Runnable 42 { 43 49 50 private String output_directory_; 51 52 53 private String user_property_file_; 54 55 61 66 public PsdlToJava(Map project_properties) 67 { 68 super(project_properties); 70 71 output_directory_ = "generated"; 73 user_property_file_ = null; 74 } 75 76 82 88 91 public void 92 configure() 93 { 94 super.configure(); 96 97 setXmlFile( project_properties_.getProperty("OpenCCM_HOMEDIR") + "/xml/launcher/PSDLtoJava.xml" ); 98 if (user_property_file_ != null) 99 { 100 addArgument("-userprop"); 101 addArgument(user_property_file_); 102 } 103 addArgument("-d"); 104 addArgument(output_directory_); 105 } 106 107 112 public void 113 setDestdir(String destdir) 114 { 115 output_directory_ = destdir; 116 } 117 118 123 public void 124 setPropertiesfile(String file) 125 { 126 user_property_file_ = file; 127 } 128 } 129 | Popular Tags |