tools/shell-dev-commands/src/main/java/org/apache/unomi/shell/commands/DeployDefinition.java [40:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void processDefinition(String definitionType, URL definitionURL) {
        try {
            if (ALL_OPTION_LABEL.equals(definitionType)) {
                String definitionURLString = definitionURL.toString();
                for (String possibleDefinitionType : definitionTypes) {
                    if (definitionURLString.contains(getDefinitionTypePath(possibleDefinitionType))) {
                        definitionType = possibleDefinitionType;
                        break;
                    }
                }
                if (ALL_OPTION_LABEL.equals(definitionType)) {
                    System.out.println("Couldn't resolve definition type for definition URL " + definitionURL);
                    return;
                }
            }
            boolean successful = true;
            switch (definitionType) {
                case CONDITION_DEFINITION_TYPE:
                    ConditionType conditionType = CustomObjectMapper.getObjectMapper().readValue(definitionURL, ConditionType.class);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tools/shell-dev-commands/src/main/java/org/apache/unomi/shell/commands/UndeployDefinition.java [40:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void processDefinition(String definitionType, URL definitionURL) {
        try {
            if (ALL_OPTION_LABEL.equals(definitionType)) {
                String definitionURLString = definitionURL.toString();
                for (String possibleDefinitionType : definitionTypes) {
                    if (definitionURLString.contains(getDefinitionTypePath(possibleDefinitionType))) {
                        definitionType = possibleDefinitionType;
                        break;
                    }
                }
                if (ALL_OPTION_LABEL.equals(definitionType)) {
                    System.out.println("Couldn't resolve definition type for definition URL " + definitionURL);
                    return;
                }
            }
            boolean successful = true;
            switch (definitionType) {
                case CONDITION_DEFINITION_TYPE:
                    ConditionType conditionType = CustomObjectMapper.getObjectMapper().readValue(definitionURL, ConditionType.class);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



