Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

String com::mysql::jdbc::util::ServerController::buildOptionalCommandLine (  )  [inline, private]

Builds the list of command-line arguments that will be passed to the mysql server to be started.

Returns:
String the list of command-line arguments.

Definition at line 290 of file ServerController.java.

References isNonCommandLineArgument(), and serverProps.

Referenced by getCommandLine().

                                                {
            StringBuffer commandLineBuf = new StringBuffer();

            if (this.serverProps != null) {

                  for (Iterator iter = this.serverProps.keySet().iterator(); iter
                              .hasNext();) {
                        String key = (String) iter.next();
                        String value = this.serverProps.getProperty(key);

                        if (!isNonCommandLineArgument(key)) {
                              if (value != null && value.length() > 0) {
                                    commandLineBuf.append(" \"");
                                    commandLineBuf.append("--");
                                    commandLineBuf.append(key);
                                    commandLineBuf.append("=");
                                    commandLineBuf.append(value);
                                    commandLineBuf.append("\"");
                              } else {
                                    commandLineBuf.append(" --");
                                    commandLineBuf.append(key);
                              }
                        }
                  }
            }

            return commandLineBuf.toString();
      }


Generated by  Doxygen 1.6.0   Back to index