-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MID-8842 ninja - ninja now can output non-zer error code in some case…
…s, actions still need to be updated (cherry picked from commit bbe3377)
- Loading branch information
Showing
6 changed files
with
150 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tools/ninja/src/main/java/com/evolveum/midpoint/ninja/MainResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (C) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
|
||
package com.evolveum.midpoint.ninja; | ||
|
||
public class MainResult { | ||
|
||
public static final MainResult EMPTY_ERROR = new MainResult(null, 1); | ||
|
||
public static final MainResult EMPTY_SUCCESS = new MainResult(null, 0); | ||
|
||
private Object object; | ||
|
||
private int exitCode; | ||
|
||
public MainResult(Object object) { | ||
this(object, 0); | ||
} | ||
|
||
public MainResult(Object object, int exitCode) { | ||
this.object = object; | ||
this.exitCode = exitCode; | ||
} | ||
|
||
public Object getObject() { | ||
return object; | ||
} | ||
|
||
public int getExitCode() { | ||
return exitCode; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters