01: /*
02: JSmooth: a VM wrapper toolkit for Windows
03: Copyright (C) 2003 Rodrigo Reyes <reyes@charabia.net>
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the GNU General Public License as published by
07: the Free Software Foundation; either version 2 of the License, or
08: (at your option) any later version.
09:
10: This program is distributed in the hope that it will be useful,
11: but WITHOUT ANY WARRANTY; without even the implied warranty of
12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13: GNU General Public License for more details.
14:
15: You should have received a copy of the GNU General Public License
16: along with this program; if not, write to the Free Software
17: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18:
19: */
20:
21: /*
22: * Test.java
23: *
24: * Created on 7 août 2003, 19:31
25: */
26:
27: package net.charabia.jsmoothgen;
28:
29: import net.charabia.jsmoothgen.application.*;
30:
31: import java.io.File;
32:
33: public class Test {
34: /**
35: * @param args the command line arguments
36: */
37: public static void main(String[] args) throws Exception {
38: String[] d = new String[2];
39: d[0] = "test";
40: d[1] = "test2";
41: JSmoothModelBean model = new JSmoothModelBean();
42: model.setJarLocation("MyJarLocation");
43: model.setClassPath(d);
44: JSmoothModelPersistency.save(new File("c:/result.xml"), model);
45: }
46:
47: }
|