2 //<script type="text/javascript">
7 * -O Output debug file here.
8 * -t Translate json file.
9 * -w Cache / working dir.
10 * -f File to read with a list of source paths / or class names.
11 * -C no cleanup (use with -w if you need are using a cache directory.)
12 * -p prefix for translation md5 generator (directory that files are in, and is removed
13 * from path when generating an md5 for the translated name.
14 * -w keepWhite - keeps the white space in the output files.
15 * -a autoBuild - puts target in INPUTDIR/compiled/Core-TIMESTAMP.js and enabled translastion
17 * -m module name used with autoBuild to force a module name.
18 * compresses files listed as arguments and outputs result
21 File = imports.File.File;
22 Packer = imports.JSDOC.Packer.Packer;
28 var args = Array.prototype.slice.call(Seed.argv);
30 args.shift(); // pack.js
39 for(var i =0; i < args.length;i++) {
40 if (args[i] == '-o') {
41 cfg.target = args[i+1];
45 if (args[i] == '-O') {
46 cfg.debugTarget = args[i+1];
50 if (args[i] == '-t') {
51 cfg.translateJSON = args[i+1];
55 if (args[i] == '-w') {
56 cfg.tmpDir = args[i+1];
60 if (args[i] == '-p') {
61 cfg.prefix = args[i+1];
66 if (args[i] == '-C') {
70 if (args[i] == '-f') {
71 cfg.srcfiles.push(args[i+1]);
75 if (args[i] == '-m') {
76 cfg.module = args[i+1];
80 if (args[i] == '-a') {
84 if (args[i] == '-w') {
88 if (cfg.files.indexOf(args[i]) > -1) {
89 continue; // remove dupes.
91 cfg.files.push(args[i]);
95 pack = new Packer(cfg)
97 print("ERROR " + e.toString());