Skip to content

Commit

Permalink
Merge pull request #57 from nulab/BLG_INTG-1281/check-java-version
Browse files Browse the repository at this point in the history
BLG_INTG-1281 Add Java version check to redmine migration tool
  • Loading branch information
jtakakura authored Oct 11, 2023
2 parents 5f767ad + cc038a0 commit 4c8bcc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/messages_ja.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mapping.priority.redmine.immediate=今すぐ

# CLI
cli.confirm=移行を実行しますか? (y/n [n]):
cli.require_java8=現在のJavaのバージョンは[{0}]です。Java8以上が必須になります
cli.require_java8=現在のJavaのバージョンは[{0}]です。Java8が必須になります
cli.help.projectKey=移行したいRedmineプロジェクトのプロジェクト識別子を指定します。(必須オプション)例:--projectKey [Redmineプロジェクト識別子]:[Backlogプロジェクトキー]
cli.confirm_recreate={0}マッピングファイルが既にあります。上書きしますか? (y/n [n]):
cli.backlog_project_already_exist=プロジェクト[{0}]はBacklog内に既に存在します。\nプロジェクト[{0}]に課題とWikiをインポートしますか?(追加インポートの仕様については、詳細READMEを参照ください) (y/n [n]):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ package com.nulabinc.backlog.r2b.utils
object ClassVersion {

private[this] val CLASS_VERSION_8: Double = 52.0
private[this] val CLASS_VERSION_9: Double = 53.0

def isValid(): Boolean =
System.getProperty("java.class.version").toDouble >= CLASS_VERSION_8
def isValid(): Boolean = {
val v = System.getProperty("java.class.version").toDouble
v >= CLASS_VERSION_8 && v < CLASS_VERSION_9
}

}

0 comments on commit 4c8bcc3

Please sign in to comment.