1 21 22 package org.enhydra.zeus.util; 23 24 25 30 public class ZeusCommand { 31 32 private static final String command = "zeus"; 33 34 41 public static void main(String [] args) { 42 Arguments arguments = new Arguments(args); 43 44 String constraintsFilename = 46 arguments.getValue("constraints"); 47 48 if (constraintsFilename != null) { 49 if (constraintsFilename.toLowerCase().endsWith(".dtd")) { 50 DTDSourceGenerator.main(args); 51 return; 52 } 53 if (constraintsFilename.toLowerCase().endsWith(".xsd")) { 54 XSDSourceGenerator.main(args); 55 return; 56 } 57 } 58 System.out.println("Usage: " + command + 59 " -constraints=<filename.xsd|filename.dtd>" + 60 " [-outputDir=<output directory>" + 61 " [-collapseSimpleElements=" + 62 "<true | false>]" + 63 " [-ignoreIDAttributes=<true | false>]" + 64 " [-javaPackage=<Java package name>]"); 65 } 66 } 67 | Popular Tags |