- java.lang.Object
-
- com.gluonhq.substrate.util.FileDeps
-
public final class FileDeps extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileDeps(InternalProjectConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAndroidPackages(java.lang.String androidSdk)Checks that the required Android packages are present, else proceeds to install themjava.nio.file.PathgetAndroidNDKPath()Return the path to the Android NDK for this configuration.java.nio.file.PathgetAndroidSDKPath()Return the path to the Android SDK for this configuration.java.nio.file.PathgetJavaFXSDKLibsPath()Return the path to the JavaFX SDK for this configuration.java.nio.file.PathgetJavaSDKLibsPath()Returns the path to the Java SDK static libraries for this configuration.java.nio.file.PathgetSysrootPath()Return the path to the sysroot for this configuration.
-
-
-
Constructor Detail
-
FileDeps
public FileDeps(InternalProjectConfiguration config)
-
-
Method Detail
-
getJavaSDKLibsPath
public java.nio.file.Path getJavaSDKLibsPath() throws java.io.IOExceptionReturns the path to the Java SDK static libraries for this configuration. The path is cached on the provided configuration. If no custom directory has been set in the project configuration, a custom Java SDK will be downloaded.- Returns:
- the location of the static libraries of the Java SDK for the arch-os for this configuration
- Throws:
java.io.IOException- in case anything goes wrong.
-
getJavaFXSDKLibsPath
public java.nio.file.Path getJavaFXSDKLibsPath() throws java.io.IOExceptionReturn the path to the JavaFX SDK for this configuration. The path is cached on the provided configuration. If it is not there yet, all dependencies are retrieved.- Returns:
- the location of the JavaFX SDK for the arch-os for this configuration
- Throws:
java.io.IOException- in case anything goes wrong.
-
getAndroidSDKPath
public java.nio.file.Path getAndroidSDKPath() throws java.io.IOExceptionReturn the path to the Android SDK for this configuration. The path is cached on the environment variable. If it is not there yet, all dependencies are retrieved.- Returns:
- the location of the Android SDK for the arch-os for this configuration
- Throws:
java.io.IOException- in case anything goes wrong.
-
getAndroidNDKPath
public java.nio.file.Path getAndroidNDKPath() throws java.io.IOExceptionReturn the path to the Android NDK for this configuration. The path is cached on the environment variable. If it is not there yet, all dependencies are retrieved.- Returns:
- the location of the Android NDK for the arch-os for this configuration
- Throws:
java.io.IOException- in case anything goes wrong.
-
getSysrootPath
public java.nio.file.Path getSysrootPath() throws java.io.IOExceptionReturn the path to the sysroot for this configuration. The path is cached on the environment variable. If it is not there yet, all dependencies are retrieved.- Returns:
- the location of the sysroot for the arch of this configuration
- Throws:
java.io.IOException- in case anything goes wrong.
-
checkAndroidPackages
public void checkAndroidPackages(java.lang.String androidSdk) throws java.io.IOException, java.lang.InterruptedExceptionChecks that the required Android packages are present, else proceeds to install them- Parameters:
androidSdk- The path to the Android SDK- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-