Class JarUtils

    • 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.
      • 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)