< prev index next >
buildSrc/src/main/groovy/com/sun/javafx/gradle/NativeCompileTask.groovy
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 80,90 ****
@TaskAction void compile() {
// Get the existing native-dependencies file from build/dependency-cache and load its contents into
// memory. If the file doesn't exist, then we will just have an empty dependency map.
final Map<String, Map> dependencies = new ConcurrentHashMap<>();
! final File nativeDependenciesFile = project.file("$project.buildDir/dependency-cache/native-dependencies");
if (nativeDependenciesFile.exists()) {
nativeDependenciesFile.splitEachLine("\t", { strings ->
try {
dependencies.put(strings[0], ["DATE":Long.parseLong(strings[1]), "SIZE":Long.parseLong(strings[2])]);
} catch (Exception e) {
--- 80,90 ----
@TaskAction void compile() {
// Get the existing native-dependencies file from build/dependency-cache and load its contents into
// memory. If the file doesn't exist, then we will just have an empty dependency map.
final Map<String, Map> dependencies = new ConcurrentHashMap<>();
! final File nativeDependenciesFile = project.file("$project.buildDir/dependency-cache/native-dependencies-${output.getName()}");
if (nativeDependenciesFile.exists()) {
nativeDependenciesFile.splitEachLine("\t", { strings ->
try {
dependencies.put(strings[0], ["DATE":Long.parseLong(strings[1]), "SIZE":Long.parseLong(strings[2])]);
} catch (Exception e) {
< prev index next >