Class JarUtils
- java.lang.Object
-
- org.nuxeo.connect.update.task.update.JarUtils
-
public class JarUtils extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
JAR_NAME
static Pattern
JAR_WITHOUT_VERSION_NAME
-
Constructor Summary
Constructors Constructor Description JarUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.nuxeo.connect.update.task.update.JarUtils.Match<File>
find(File filePattern)
static org.nuxeo.connect.update.task.update.JarUtils.Match<File>
findJar(File root, String key)
static org.nuxeo.connect.update.task.update.JarUtils.Match<String>
findJarVersion(String name)
Try to find the version part in the given JAR name.
-
-
-
Field Detail
-
JAR_WITHOUT_VERSION_NAME
public static final Pattern JAR_WITHOUT_VERSION_NAME
-
-
Constructor Detail
-
JarUtils
public JarUtils()
-
-
Method Detail
-
findJarVersion
public static org.nuxeo.connect.update.task.update.JarUtils.Match<String> findJarVersion(String name)
Try to find the version part in the given JAR name. Return null if name is not containing a version, otherwise return a match object with the name without the version part and the extension in the 'Match.object' field.
-
findJar
public static org.nuxeo.connect.update.task.update.JarUtils.Match<File> findJar(File root, String key)
-
-