jalviewjsChromiumUserDir = "${jalviewjsBuildDir}/${jalviewjs_chromium_user_dir}"
jalviewjsChromiumProfileDir = "${ext.jalviewjsChromiumUserDir}/${jalviewjs_chromium_profile_name}"
+ if (!project.hasProperty("jalviewLite")) {
+ jalviewLite = false
+ }
// ENDEXT
}
+gradle.taskGraph.whenReady { graph ->
+ jalviewLite = graph.hasTask("jalviewjsTranspile")
+}
+
+
sourceSets {
main {
java {
srcDirs sourceDir
+
+ if (! jalviewLite) {
+ exclude "${sourceDir}/jalview/bin/JalviewLite.java"
+ exclude "${sourceDir}/jalview/urls/applet/**"
+ exclude "${sourceDir}/jalview/javascript/*.java"
+ exclude "${sourceDir}/jalview/appletgui/**"
+ exclude "${sourceDir}/com/stevesoft/**"
+ exclude "${sourceDir}/mc_view/Applet*.java"
+ }
+
outputDir = file(classesDir)
}
test {
java {
srcDirs testSourceDir
+
+ if (! jalviewLite) {
+ exclude "${testSourceDir}/jalview/bin/JalviewLiteTest.java"
+ }
+
outputDir = file(testClassesDir)
}