コード例 #1
0
 public void test() {
   EmployeeProject project = new EmployeeProject();
   ((DatasourceLogin) project.getDatasourceLogin())
       .usePlatform(OracleDBPlatformHelper.getInstance().getOracle9Platform());
   XMLProjectWriter.write("employee_project.xml", project);
   XMLProjectReader.read("employee_project.xml", getClass().getClassLoader());
 }
コード例 #2
0
 public void test() {
   XMLProjectWriter.write(FILENAME, project);
   project = XMLProjectReader.read(FILENAME, getClass().getClassLoader());
 }
コード例 #3
0
 /** For the given project, generate the project xml and read it back in. */
 public static Project buildProjectXML(Project project, String filename, ClassLoader loader) {
   XMLProjectWriter.write(filename + ".xml", project);
   return XMLProjectReader.read(filename + ".xml", loader);
 }