1954 if (IS_JIGSAW_TEST) {
1955 enabled = false // FIXME: JIGSAW -- support this with modules
1956 logger.info("JIGSAW Testing disabled for fxpackagerservices")
1957 }
1958 }
1959 }
1960
1961 project(":fxpackager") {
1962 project.ext.buildModule = COMPILE_FXPACKAGER
1963 project.ext.moduleRuntime = false
1964 project.ext.moduleName = "jdk.packager"
1965 manifest {
1966 attributes(
1967 "Main-Class": "com.sun.javafx.tools.packager.Main"
1968 )
1969 }
1970 tasks.all {
1971 if (!COMPILE_FXPACKAGER) it.enabled = false
1972 }
1973
1974 // fxpackager has a dependency on ant in order to build the ant jar,
1975 // and as such needs to point to the apache binary repository
1976 if (!BUILD_CLOSED) {
1977 repositories {
1978 maven {
1979 url "https://repository.apache.org"
1980 }
1981 }
1982 }
1983
1984 dependencies {
1985 compile group: "org.apache.ant", name: "ant", version: "1.8.2"
1986 compile project(":fxpackagerservices")
1987 testCompile project(":controls")
1988 }
1989
1990 // When producing the jar, we need to relocate a few class files
1991 // from their normal location to a resources/classes or resources/web-files
1992 // location
1993 jar {
1994 includeEmptyDirs = false
1995 archiveName = "ant-javafx.jar"
1996 includes = ["com/sun/javafx/tools/ant/**", "com/javafx/main/**", "resources/web-files/**"]
1997 eachFile { FileCopyDetails details ->
1998 if (details.path.startsWith("com/javafx/main")) {
1999 details.path = "resources/classes/$details.path"
2000 }
2001 }
2002 }
2003
2004 // The "man" task will create a $buildDir/man containing the man
2005 // files for the system being built
2006 task man(type: Copy) {
2007 includeEmptyDirs = false
2008 enabled = (IS_LINUX || IS_MAC) && COMPILE_FXPACKAGER
2009 from "src/main/man"
2010 into "$buildDir/man"
2011 exclude "**/*.html"
2012 if (IS_MAC) exclude "**/ja_JP.UTF-8/**"
2013 }
2014 processResources.dependsOn man
2015
2016 // Compile the native launchers. These are included in jdk.packager.jmod.
2017 if (IS_WINDOWS && COMPILE_FXPACKAGER) {
2018 task buildWinLauncher(type: CCTask, group: "Build") {
2019 description = "Compiles native sources for the application co-bundle launcher";
2020 matches = "WinLauncher\\.cpp";
2021 params.addAll(WIN.launcher.ccFlags);
2022 output(file("$buildDir/native/WinLauncher"));
|
1954 if (IS_JIGSAW_TEST) {
1955 enabled = false // FIXME: JIGSAW -- support this with modules
1956 logger.info("JIGSAW Testing disabled for fxpackagerservices")
1957 }
1958 }
1959 }
1960
1961 project(":fxpackager") {
1962 project.ext.buildModule = COMPILE_FXPACKAGER
1963 project.ext.moduleRuntime = false
1964 project.ext.moduleName = "jdk.packager"
1965 manifest {
1966 attributes(
1967 "Main-Class": "com.sun.javafx.tools.packager.Main"
1968 )
1969 }
1970 tasks.all {
1971 if (!COMPILE_FXPACKAGER) it.enabled = false
1972 }
1973
1974 sourceSets {
1975 main
1976 antplugin {
1977 java {
1978 compileClasspath += main.output
1979 runtimeClasspath += main.output
1980 }
1981 }
1982 test
1983 }
1984
1985 // fxpackager has a dependency on ant in order to build the ant jar,
1986 // and as such needs to point to the apache binary repository
1987 if (!BUILD_CLOSED) {
1988 repositories {
1989 maven {
1990 url "https://repository.apache.org"
1991 }
1992 }
1993 }
1994
1995 dependencies {
1996 compile project(":fxpackagerservices")
1997 antpluginCompile group: "org.apache.ant", name: "ant", version: "1.8.2"
1998 testCompile project(":controls")
1999 }
2000
2001 // When producing the ant-javafx.jar, we need to relocate a few class files
2002 // from their normal location to a resources/classes or resources/web-files
2003 // location
2004 task antpluginJar(type: Jar, dependsOn: [ compileJava, jar, compileAntpluginJava ]) {
2005 includeEmptyDirs = false
2006 archiveName = "ant-javafx.jar"
2007
2008 from (sourceSets.antplugin.output) {
2009 eachFile { FileCopyDetails details ->
2010 if (details.path.startsWith("com/javafx/main")) {
2011 details.path = "resources/classes/$details.path"
2012 }
2013 }
2014 }
2015
2016 from (sourceSets.main.output.resourcesDir) {
2017 includes = [ "resources/web-files/**", "com/sun/javafx/tools/ant/antlib.xml" ]
2018 }
2019 }
2020
2021 assemble.dependsOn(antpluginJar)
2022
2023 // The "man" task will create a $buildDir/man containing the man
2024 // files for the system being built
2025 task man(type: Copy) {
2026 includeEmptyDirs = false
2027 enabled = (IS_LINUX || IS_MAC) && COMPILE_FXPACKAGER
2028 from "src/main/man"
2029 into "$buildDir/man"
2030 exclude "**/*.html"
2031 if (IS_MAC) exclude "**/ja_JP.UTF-8/**"
2032 }
2033 processResources.dependsOn man
2034
2035 // Compile the native launchers. These are included in jdk.packager.jmod.
2036 if (IS_WINDOWS && COMPILE_FXPACKAGER) {
2037 task buildWinLauncher(type: CCTask, group: "Build") {
2038 description = "Compiles native sources for the application co-bundle launcher";
2039 matches = "WinLauncher\\.cpp";
2040 params.addAll(WIN.launcher.ccFlags);
2041 output(file("$buildDir/native/WinLauncher"));
|