Package io.openliberty.tools.ant.install
Class InstallUtils
- java.lang.Object
-
- io.openliberty.tools.ant.install.InstallUtils
-
public class InstallUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(Closeable closeable)static voidcreateDirectory(File dir)static StringgetFile(URL url)static StringgetLicenseCode(File file, String regex)static StringgetLicenseCode(InputStream in, String encoding, String regex)static LibertyInfoselectVersion(Version version, List<LibertyInfo> versions)
-
-
-
Method Detail
-
getLicenseCode
public static String getLicenseCode(File file, String regex) throws IOException
- Throws:
IOException
-
getLicenseCode
public static String getLicenseCode(InputStream in, String encoding, String regex) throws IOException
- Throws:
IOException
-
selectVersion
public static LibertyInfo selectVersion(Version version, List<LibertyInfo> versions)
-
close
public static void close(Closeable closeable)
-
createDirectory
public static void createDirectory(File dir)
-
-