1 /* 2 Launch4j (http://launch4j.sourceforge.net/) 3 Cross-platform Java application wrapper for creating Windows native executables. 4 5 Copyright (C) 2004, 2006 Grzegorz Kowal 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 /* 23 * Created on 2005-04-24 24 */ 25 package net.sf.launch4j; 26 27 //import net.sf.launch4j.config.Config; 28 29 //import org.apache.commons.cli.CommandLine; 30 //import org.apache.commons.cli.CommandLineParser; 31 //import org.apache.commons.cli.HelpFormatter; 32 //import org.apache.commons.cli.Options; 33 //import org.apache.commons.cli.ParseException; 34 //import org.apache.commons.cli.PosixParser; 35 36 /** 37 * @author Copyright (C) 2005 Grzegorz Kowal 38 */ 39 public class OptionParser { 40 41 // private final Options _options; 42 // 43 // public OptionParser() { 44 // _options = new Options(); 45 // _options.addOption("h", "header", true, "header"); 46 // } 47 // 48 // public Config parse(Config c, String[] args) throws ParseException { 49 // CommandLineParser parser = new PosixParser(); 50 // CommandLine cl = parser.parse(_options, args); 51 // c.setJar(getFile(props, Config.JAR)); 52 // c.setOutfile(getFile(props, Config.OUTFILE)); 53 // } 54 // 55 // public void printHelp() { 56 // HelpFormatter formatter = new HelpFormatter(); 57 // formatter.printHelp("launch4j", _options); 58 // } 59 } 60