Project

General

Profile

« Previous | Next » 

Revision 6b5d6452

Added by Andreas Kohlbecker about 10 years ago

cdmserver instances can have contextpath prefix

View differences:

src/main/java/eu/etaxonomy/cdm/server/CommandOptions.java
77 77
        .withDescription( "use the specified datasources file. Default is {user.home}/.cdmLibrary/datasources.xml")
78 78
        .create("datasources");
79 79

  
80

  
80
    @SuppressWarnings("static-access")
81
    public static final Option CONTEXT_PATH_PREFIX = OptionBuilder
82
            .withArgName("url path element")
83
            .hasArg()
84
            .withDescription(
85
                    "The url path element to use as prefix for all cdm-server instances.\n" +
86
                    "Per default the instances are running at the server root.")
87
            .create("contextPathPrefix") ;
81 88

  
82 89

  
83 90
    public static Options getOptions(){
......
91 98
            options.addOption(DATASOURCES_FILE);
92 99
            options.addOption(JMX);
93 100
            options.addOption(WIN32SERVICE);
101
            options.addOption(CONTEXT_PATH_PREFIX);
94 102
        }
95 103
        return options;
96 104
    }

Also available in: Unified diff