-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added version in jar manifest - Cobol Check now reads version from manifest - build.gradle now clears jar in extension - build.gradle now copies jar to extension - build.gradle now copies and sets version of run scripts - Run scripts now has a tag, for version, to be swapped Signed-off-by: David Kaan <dak@bankdata.dk>
- Loading branch information
David Kaan
committed
Sep 20, 2022
1 parent
1a55bf5
commit cecec6c
Showing
6 changed files
with
61 additions
and
24 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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
java -jar bin/cobol-check-0.2.1.jar $@ | ||
java -jar bin/cobol-check-@VERSION@.jar1 $@ |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
java -jar bin\cobol-check-0.2.1.jar %* | ||
java -jar bin\cobol-check-@VERSION@.jar %* |
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
9 changes: 8 additions & 1 deletion
9
src/test/java/org/openmainframeproject/cobolcheck/VersionTest.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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
package org.openmainframeproject.cobolcheck; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.openmainframeproject.cobolcheck.services.Config; | ||
import org.openmainframeproject.cobolcheck.services.Version; | ||
import org.junit.jupiter.api.Test; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
|
||
public class VersionTest { | ||
|
||
@BeforeAll | ||
static void oneTimeSetup() { | ||
Config.load("testconfig.properties"); | ||
} | ||
|
||
@Test | ||
public void it_returns_the_current_version_string() { | ||
assertTrue(Version.current().matches("^Version: \\d\\.\\d\\..*$")); | ||
assertTrue(Version.current().matches("^\\d\\.\\d\\..*$")); | ||
} | ||
} |