Source

javafx-gradle / gradle-javafx-plugin / src / main / groovy / org / bitbucket / shemnon / javafxplugin / tasks / JavaFXDeployTask.groovy

Diff from to

File gradle-javafx-plugin/src/main/groovy/org/bitbucket/shemnon/javafxplugin/tasks/JavaFXDeployTask.groovy

 import com.sun.javafx.tools.packager.bundlers.Bundler
 import net.sf.image4j.codec.bmp.BMPEncoder
 import net.sf.image4j.codec.ico.ICOEncoder
-import org.apache.tools.ant.taskdefs.condition.Os
 import org.bitbucket.shemnon.javafxplugin.IconInfo
 import org.gradle.api.file.FileCollection
 import org.gradle.api.internal.ConventionTask
 import org.gradle.api.tasks.InputFiles
 import org.gradle.api.tasks.OutputDirectory
 import org.gradle.api.tasks.TaskAction
+import org.gradle.internal.os.OperatingSystem
 import org.gradle.util.ConfigureUtil
 
 import javax.imageio.ImageIO
             loadConventialIcons('volume')
             loadConventialIcons('setup')
         }
-        if (Os.isFamily(Os.FAMILY_MAC)) {
+        if (OperatingSystem.current().isMacOsX()) {
             processMacOSXIcons(destination);
         }
-        if (Os.isFamily(Os.FAMILY_WINDOWS)) {
+        if (OperatingSystem.current().isWindows()) {
             processWindowsIcons(destination);
         }
-        if (Os.isFamily(Os.FAMILY_UNIX) && !Os.isFamily(Os.FAMILY_MAC)) {
+        if (OperatingSystem.current().isLinux()) {
             processLinuxIcons(destination)
         }
     }