Skip to content

Commit

Permalink
Update version to include build date
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams committed Jan 24, 2020
1 parent 633b9e5 commit db39fef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public class DMDocument extends Object {

static String LDDToolVersionId = "0.0.0";
static String buildIMVersionId = "1.13.0.0";
static String buildDate = "";
static String classVersionIdDefault = "1.0.0.0";
// static String LDDToolGeometry = "Geometry";
static boolean PDS4MergeFlag = false;
Expand Down Expand Up @@ -406,6 +407,11 @@ public static void main (String args[]) throws Throwable {
if (configInputStr != null) {
DMDocVersionId = LDDToolVersionId = configInputStr;
}

configInputStr= props.getProperty("buildDate");
if (configInputStr != null) {
buildDate = configInputStr;
}

reader.close();
} catch (FileNotFoundException ex) {
Expand Down Expand Up @@ -609,7 +615,9 @@ static private void getCommandArgs (String args[]) {
System.exit(0);
}
if (lArg.indexOf('v') > -1) {
System.out.println("LDDTOOL Version: " + LDDToolVersionId + " - Built with IM Version:" + buildIMVersionId);
System.out.println("\nLDDTool Version: " + LDDToolVersionId);
System.out.println("Built with IM Version: " + buildIMVersionId);
System.out.println("Build Date: " + buildDate + "\n");
System.exit(0);
}
if (lArg.indexOf('D') > -1) {
Expand Down
1 change: 1 addition & 0 deletions model-ontology/src/ontology/Data/config.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#DMDOC settings
#Thu Sep 22 12:00:00 PDT 2019
toolVersionId=${project.version}
buildDate=${buildNumber}
infoModelVersionId=1.13.0.0
schemaLabelVersionId=1.19
imSpecDocTitle=PDS4 Information Model Specification
Expand Down

0 comments on commit db39fef

Please sign in to comment.