Package nl.colorize.gradle.application
Class AppHelper
java.lang.Object
nl.colorize.gradle.application.AppHelper
Utility class with shared logic between the different tasks and sub-plugins.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidcleanDirectory(File dir) Makes sure the application bundle directory is empty before we start.static StringgetEnvironmentVariable(String name) static StringgetJarFileName(org.gradle.api.Project project) static FilegetLibsDir(org.gradle.api.Project project) static FilegetOutputDir(org.gradle.api.Project project, String name) static FilegetProjectDir(org.gradle.api.Project project, String name) static FilegetProjectFile(org.gradle.api.Project project, String name) static StringloadResourceFile(String path) static StringloadResourceFile(String path, Map<String, String> properties) Loads the specified resource file into a string, and then substitutes the specified placeholders with the provided values.static Filestatic voidstatic void
-
Method Details
-
requireWindows
public static void requireWindows() -
requireMac
public static void requireMac() -
getLibsDir
-
getJarFileName
-
check
-
getEnvironmentVariable
-
getProjectDir
-
getProjectFile
-
getOutputDir
-
cleanDirectory
Makes sure the application bundle directory is empty before we start. This is necessary because Gradle uses very aggressive caching, and JLink will not work unless the directory is empty. -
mkdir
-
loadResourceFile
-
loadResourceFile
Loads the specified resource file into a string, and then substitutes the specified placeholders with the provided values.
-