source: contrib/MailArchiver/sources/scripts/dn-weaving.nut @ 6785

Revision 6785, 664 bytes checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado codigo do MailArchiver?. Documentação na subpasta DOCS.

Line 
1script_path <- filepath(__argv[0]);
2proj_path <- convpath(script_path + "/..", true);
3chdir(proj_path);
4printl("\ncwd: " + getcwd());
5
6args <- [
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-weaving.log4j.properties"
15
16//main class
17,   "org.datanucleus.enhancer.DataNucleusEnhancer"
18
19//options
20,   "-api"
21,   "JDO"
22,   "-v" /*verbose*/
23];
24
25args.extend(dofile("scripts/get-dn-metadata.nut"));
26
27printl("\njava");
28foreach(arg in args) {
29    printl(arg);
30}
31
32ret <- run("java", args);
33
34printl("\n*** DataNucleus bytecode weaving exit:" + ret + " ***\n");
35
36return ret;
37
Note: See TracBrowser for help on using the repository browser.