Skip to content

Commit

Permalink
MID-9167 ninja midpoint.home directory check removed from bat. Trivia…
Browse files Browse the repository at this point in the history
…l improvement in help command.

(cherry picked from commit 2c506f6)
  • Loading branch information
1azyman committed Oct 4, 2023
1 parent 855d6a0 commit 242814c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
13 changes: 0 additions & 13 deletions dist/src/main/bin/ninja.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,6 @@ IF NOT "%1"=="" (
GOTO :argloop
)

if "%MIDPOINT_HOME%" == "" (
if not exist "%VAR_DIR%" (
echo Error: Default midpoint.home directory "%VAR_DIR%" does not exist.
goto end
)
set MIDPOINT_HOME=%VAR_DIR%
)

if not "%MIDPOINT_HOME%" == "%MIDPOINT_HOME:;=%" (
echo Error: Unable to start as MIDPOINT_HOME contains a semicolon ";" character
goto end
)

echo Using MIDPOINT_HOME: "%MIDPOINT_HOME%"

if not exist "%NINJA_JAR_PATH%" (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@
package com.evolveum.midpoint.ninja.action;

import com.beust.jcommander.JCommander;

import com.evolveum.midpoint.ninja.impl.NinjaApplicationContextLevel;

import org.apache.commons.lang3.StringUtils;

import com.evolveum.midpoint.ninja.util.NinjaUtils;

import org.jetbrains.annotations.NotNull;

import java.util.List;

public class HelpAction extends Action<HelpOptions, ActionResult<Void>> {

@Override
public @NotNull NinjaApplicationContextLevel getApplicationContextLevel(List<Object> allOptions) {
return NinjaApplicationContextLevel.NONE;
}

@Override
public String getOperationName() {
return null;
Expand Down

0 comments on commit 242814c

Please sign in to comment.