Nuxeo ECM Projects 5.6-RC1

org.nuxeo.connect.update.task.update
Class JarUtils

java.lang.Object
  extended by org.nuxeo.connect.update.task.update.JarUtils

public class JarUtils
extends Object

Author:
Bogdan Stefanescu

Field Summary
static Pattern JAR_NAME
           
static Pattern JAR_WITHOUT_VERSION_NAME
           
 
Constructor Summary
JarUtils()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_NAME

public static final Pattern JAR_NAME

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.

Parameters:
name -

findJar

public static org.nuxeo.connect.update.task.update.JarUtils.Match<File> findJar(File root,
                                                                                String key)

find

public static org.nuxeo.connect.update.task.update.JarUtils.Match<File> find(File filePattern)

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.