| | |
| | | new ArrayList<PropertyDefinition<?>>(defn.getAllPropertyDefinitions()); |
| | | Collections.sort(props); |
| | | |
| | | final String propPrefix = DSCONFIGTOOLNAME + "-" + sc.getName() + "-" + argLongID + "-"; |
| | | final String propPrefix = getScriptName() + "-" + sc.getName() + "-" + argLongID + "-"; |
| | | sb.append(EOL); |
| | | toSimpleList(props, propPrefix, sb); |
| | | sb.append(EOL); |
| | |
| | | * @return <T> The builded command. |
| | | */ |
| | | <T> CommandBuilder getCommandBuilder(final T subCommand) { |
| | | final String commandName = getCommandName(); |
| | | final String commandName = getScriptName(); |
| | | final String subCommandName; |
| | | if (subCommand instanceof SubCommandHandler) { |
| | | subCommandName = ((SubCommandHandler) subCommand).getSubCommand().getName(); |
| | |
| | | return commandBuilder; |
| | | } |
| | | |
| | | private String getCommandName() { |
| | | private String getScriptName() { |
| | | final String commandName = System.getProperty(PROPERTY_SCRIPT_NAME); |
| | | if (commandName != null && commandName.length() != 0) { |
| | | return commandName; |
| | |
| | | */ |
| | | private String getSessionStartTimeMessage() { |
| | | final String date = formatDateTimeStringForEquivalentCommand(new Date(sessionStartTime)); |
| | | return INFO_DSCFG_SESSION_START_TIME_MESSAGE.get(getCommandName(), date).toString(); |
| | | return INFO_DSCFG_SESSION_START_TIME_MESSAGE.get(getScriptName(), date).toString(); |
| | | } |
| | | |
| | | private void handleBatchFile(String[] args) { |