Rev | Line | |
---|
[6785] | 1 | script_path <- filepath(__argv[0]); |
---|
| 2 | proj_path <- convpath(script_path + "/..", true); |
---|
| 3 | chdir(proj_path); |
---|
| 4 | printl("\ncwd: " + getcwd()); |
---|
| 5 | |
---|
| 6 | args <- [ |
---|
| 7 | "-cp" |
---|
| 8 | , dofile("scripts/get-dn-classpath.nut") |
---|
| 9 | |
---|
| 10 | //jvm options |
---|
| 11 | , "-Xmx512M" |
---|
| 12 | |
---|
| 13 | //system properties |
---|
| 14 | , "-Dlog4j.configuration=file:scripts/dn-schemainfo.log4j.properties" |
---|
| 15 | |
---|
| 16 | //main class |
---|
| 17 | , "org.datanucleus.store.schema.SchemaTool" |
---|
| 18 | |
---|
| 19 | //mode |
---|
| 20 | , "-schemainfo" |
---|
| 21 | , "-api" |
---|
| 22 | , "JDO" |
---|
| 23 | , "-v" /*verbose*/ |
---|
| 24 | , "-props" |
---|
| 25 | , "scripts/datanucleus.properties" |
---|
| 26 | ]; |
---|
| 27 | |
---|
| 28 | args.extend(dofile("scripts/get-dn-metadata.nut")); |
---|
| 29 | |
---|
| 30 | printl("\njava"); |
---|
| 31 | foreach(arg in args) { |
---|
| 32 | printl(arg); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | ret <- run("java", args); |
---|
| 36 | |
---|
| 37 | printl("\n*** DataNucleus schema info exit:" + ret + " ***\n"); |
---|
| 38 | |
---|
| 39 | return ret; |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.