|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object org.seasar.aptina.commons.util.VersionUtils
public class VersionUtils
バージョンを扱うユーティリティです.
メソッドの概要 | |
---|---|
static String |
getVersion(String groupId,
String artifactId)
Maven が作成した Jar に含まれている pom.properties からプロダクトのバージョンを返します. |
static String |
getVersion(String groupId,
String artifactId,
String defaultValue)
Maven が作成した Jar に含まれている pom.properties からプロダクトのバージョンを返します. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static String getVersion(String groupId, String artifactId)
pom.properties
からプロダクトのバージョンを返します.
バージョンを取得できなかった場合は null
を返します.
groupId
- グループ IDartifactId
- アーティファクト ID
null
public static String getVersion(String groupId, String artifactId, String defaultValue)
pom.properties
からプロダクトのバージョンを返します.
バージョンを取得できなかった場合はデフォルト値を返します.
groupId
- グループ IDartifactId
- アーティファクト IDdefaultValue
- バージョンを取得できなかった場合のデフォルト値
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |