1 19 20 28 29 import java.io.*; 30 import java.util.*; 31 import org.w3c.dom.*; 32 33 import application.*; 34 35 36 public class TestApplication1_4 extends BaseTest { 37 public static void main(String [] argv) { 38 TestApplication1_4 o = new TestApplication1_4(); 39 if (argv.length > 0) 40 o.setDocumentDir(argv[0]); 41 try { 42 o.run(); 43 } catch (Exception e) { 44 e.printStackTrace(); 45 System.exit(1); 46 } 47 System.exit(0); 48 } 49 50 public void run() throws Exception { 51 Application app; 52 53 this.readDocument(); 54 55 out("creating the bean graph"); 56 app = Application.read(doc); 57 58 out("bean graph created"); 60 app.write(out); 61 } 62 } 63 | Popular Tags |