|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.plugins.mavendeploymentlinker.VersionUtil
public class VersionUtil
some utilities to handle maven version.
| Method Summary | |
|---|---|
static String |
stripeVersion(String name)
Uses the default patterns to remove the version of the file name. |
static String |
stripeVersion(String fileName,
String stripPattern)
Uses the given pattern to remove the version of the file name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String stripeVersion(String fileName,
String stripPattern)
fileName - the name to remove the version fromstripPattern - a regex pattern used to remove the version. first group is used as the new file name and the last group is used as the file extension.
public static String stripeVersion(String name)
fileName - the name to remove the version from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||