Loading tools/nimbus-gradle-plugin/src/main/groovy/org/mozilla/appservices/tooling/nimbus/NimbusAssembleToolsTask.groovy +2 −10 Original line number Diff line number Diff line Loading @@ -89,16 +89,8 @@ abstract class NimbusAssembleToolsTask extends DefaultTask { @TaskAction void assembleTools() { if (!project.gradle.startParameter.isNetworkAllowed()) { String nimbusFmlPath = System.getenv("NIMBUS_FML") Path source if (nimbusFmlPath == null) { nimbusFmlPath = System.getProperty("nimbusFml") if (nimbusFmlPath == null) { throw new GradleException("NIMBUS_FML and property nimbusFml are not defined.") } } source = Paths.get(nimbusFmlPath) if (project.gradle.startParameter.isOffline()) { Path source = System.getenv("NIMBUS_FML") Path dest = fmlBinary.get().asFile.toPath() Files.copy(source, dest, StandardCopyOption.REPLACE_EXISTING) Loading Loading
tools/nimbus-gradle-plugin/src/main/groovy/org/mozilla/appservices/tooling/nimbus/NimbusAssembleToolsTask.groovy +2 −10 Original line number Diff line number Diff line Loading @@ -89,16 +89,8 @@ abstract class NimbusAssembleToolsTask extends DefaultTask { @TaskAction void assembleTools() { if (!project.gradle.startParameter.isNetworkAllowed()) { String nimbusFmlPath = System.getenv("NIMBUS_FML") Path source if (nimbusFmlPath == null) { nimbusFmlPath = System.getProperty("nimbusFml") if (nimbusFmlPath == null) { throw new GradleException("NIMBUS_FML and property nimbusFml are not defined.") } } source = Paths.get(nimbusFmlPath) if (project.gradle.startParameter.isOffline()) { Path source = System.getenv("NIMBUS_FML") Path dest = fmlBinary.get().asFile.toPath() Files.copy(source, dest, StandardCopyOption.REPLACE_EXISTING) Loading