01: /*
02: * CmdExport.java
03: *
04: * Created on November 14, 2001, 1:27 PM
05: */
06:
07: package com.sun.portal.desktop.deployment;
08:
09: import java.io.PrintStream;
10:
11: /**
12: *
13: * @author yabob
14: * @version
15: */
16: public class CmdDescribe {
17:
18: public static void doDescribe(String parfile, PrintStream out)
19: throws ParFileException {
20:
21: ParFile pf = ParFile.makeParFile(parfile);
22: pf.describe(out);
23: }
24:
25: /**
26: * @param args the command line arguments
27: */
28: public static void main(String args[]) {
29:
30: CmdOpts opts = CmdOpts.parseOpts(args, CmdOpts.STD_PARONLY,
31: CmdOpts.REM_NONE, Par
32: .getLocalizedString("usageDescribe"), "d");
33:
34: if (opts != null) {
35: try {
36: doDescribe(opts.parfile(), System.out);
37: } catch (Exception ex) {
38: opts.produceErrorMessage(ex);
39: }
40: }
41: System.exit(0);
42: }
43: }
|