Project

General

Profile

« Previous | Next » 

Revision 2e454d0f

Added by Andreas Müller 5 months ago

revert usage of DefaultParser/GnuParser()

View differences:

src/main/java/eu/etaxonomy/cdm/server/Bootloader.java
43 43

  
44 44
import org.apache.commons.cli.CommandLine;
45 45
import org.apache.commons.cli.CommandLineParser;
46
import org.apache.commons.cli.DefaultParser;
46
import org.apache.commons.cli.GnuParser;
47 47
import org.apache.commons.cli.HelpFormatter;
48 48
import org.apache.commons.cli.ParseException;
49 49
import org.apache.commons.io.FileUtils;
......
170 170
    }
171 171

  
172 172
    public void parseCommandOptions(String[] args) throws ParseException {
173
        CommandLineParser parser = new DefaultParser();
173
        CommandLineParser parser = new GnuParser();  //TODO using DefaultParser instead currently still throws "org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -httpPort=8080"
174 174

  
175 175
         cmdLine = parser.parse( CommandOptions.getOptions(), args );
176 176

  

Also available in: Unified diff