< prev index next >

./build.gradle

Print this page




2279         }
2280         outputs.file(versionFile)
2281     }
2282 
2283     // When producing the ant-javafx.jar, we need to relocate a few class files
2284     // from their normal location to a resources/classes or resources/web-files
2285     // location
2286     task antpluginJar(type: Jar, dependsOn: [ compileJava, jar, compileAntpluginJava, buildVersionFile ]) {
2287         includeEmptyDirs = false
2288         archiveName = "ant-javafx.jar"
2289 
2290         from (sourceSets.antplugin.output) {
2291             eachFile { FileCopyDetails details ->
2292                 if (details.path.startsWith("com/javafx/main")) {
2293                     details.path = "resources/classes/$details.path"
2294                 }
2295             }
2296         }
2297 
2298         from (sourceSets.main.resources) {
2299             includes = [ "com/sun/javafx/tools/ant/antlib.xml" ]
2300         }
2301 
2302         from (sourceSets.main.output.resourcesDir) {
2303             includes = [ "resources/web-files/**" ]
2304         }
2305     }
2306 
2307     assemble.dependsOn(antpluginJar)
2308 
2309     // The "man" task will create a $buildDir/man containing the man
2310     // files for the system being built
2311     task man(type: Copy) {
2312         includeEmptyDirs = false
2313         enabled = (IS_LINUX || IS_MAC) && COMPILE_FXPACKAGER
2314         from "src/main/man"
2315         into "$buildDir/man"
2316         exclude "**/*.html"
2317         if (IS_MAC) exclude "**/ja_JP.UTF-8/**"
2318     }
2319     processResources.dependsOn man




2279         }
2280         outputs.file(versionFile)
2281     }
2282 
2283     // When producing the ant-javafx.jar, we need to relocate a few class files
2284     // from their normal location to a resources/classes or resources/web-files
2285     // location
2286     task antpluginJar(type: Jar, dependsOn: [ compileJava, jar, compileAntpluginJava, buildVersionFile ]) {
2287         includeEmptyDirs = false
2288         archiveName = "ant-javafx.jar"
2289 
2290         from (sourceSets.antplugin.output) {
2291             eachFile { FileCopyDetails details ->
2292                 if (details.path.startsWith("com/javafx/main")) {
2293                     details.path = "resources/classes/$details.path"
2294                 }
2295             }
2296         }
2297 
2298         from (sourceSets.main.resources) {
2299             includes = [ "com/sun/javafx/tools/ant/**" ]
2300         }
2301 
2302         from (sourceSets.main.output.resourcesDir) {
2303             includes = [ "resources/web-files/**" ]
2304         }
2305     }
2306 
2307     assemble.dependsOn(antpluginJar)
2308 
2309     // The "man" task will create a $buildDir/man containing the man
2310     // files for the system being built
2311     task man(type: Copy) {
2312         includeEmptyDirs = false
2313         enabled = (IS_LINUX || IS_MAC) && COMPILE_FXPACKAGER
2314         from "src/main/man"
2315         into "$buildDir/man"
2316         exclude "**/*.html"
2317         if (IS_MAC) exclude "**/ja_JP.UTF-8/**"
2318     }
2319     processResources.dependsOn man


< prev index next >