X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=76284e9d550c4b06342ce1dacab5ed1b5ea1f186;hb=95c1cf642944fc856eee1a076b2a9202f2821f83;hp=883eede74e69c808170bc7fb1d9e03756d187288;hpb=cba421b751930c494b28bb5ef887343a41e4f504;p=jalview.git diff --git a/build.gradle b/build.gradle index 883eede..76284e9 100644 --- a/build.gradle +++ b/build.gradle @@ -747,6 +747,12 @@ task linkCheck(type: JavaExec) { outputs.file(helplinkscheckertouchfile) } +// import the pubhtmlhelp target +ant.properties.basedir = "$jalviewDir" +ant.properties.helpBuildDir = jalviewDirAbsolutePath+"/$classes/$helpDir" +ant.importBuild "$utilsDir/publishHelp.xml" + + task cleanPackageDir(type: Delete) { delete fileTree("$jalviewDir/$packageDir").include("*.jar") } @@ -1149,27 +1155,32 @@ clean { } task sourceDist (type: Tar) { - archiveClassifier = "source-" + JALVIEW_VERSION - from jalviewDir - into project.name + "-" + JALVIEW_VERSION + def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_") + archiveFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz" + compression Compression.GZIP + + from jalviewDir + into project.name + + exclude (".*") exclude ("**/.*") exclude ("*.class") exclude ("**/*.class") include (eclipse_extra_jdt_prefs_file) + include ("AUTHORS") + include ("CITATION") + include ("FEATURETODO") + include ("JAVA-11-README") + include ("FEATURETODO") include ("LICENSE") include ("README") + include ("RELEASE") + include ("THIRDPARTYLIBS") include ("build.gradle") include ("gradle.properties") - //include ("jalview-jalopy.xml") - //include ("JalviewApplet.jpx") - //include ("JalviewX.jpx") - //include ("nbbuild.xml") - //include ("nbproject/genfiles.properties") - //include ("nbproject/project.properties") - //include ("nbproject/project.xml") include ("$sourceDir/*.java") include ("$sourceDir/**/*.java") include ("$sourceDir/**/*.cdr") @@ -1177,17 +1188,35 @@ task sourceDist (type: Tar) { include ("$j11libDir/**/*.jar") include ("$resourceDir/**/*") include ("$helpDir/**/*") - exclude ("appletlib") - exclude ("**/*locales") - exclude ("*locales/**") - exclude ("utils/InstallAnywhere") include ("$schemaDir/**/*") include ("$utilsDir/**/*") include ("$docDir/**/*") include ("$examplesDir/**/*") include ("getdown/**/*") + //include ("jalview-jalopy.xml") + //include ("JalviewApplet.jpx") + //include ("JalviewX.jpx") + //include ("nbbuild.xml") + //include ("nbproject/genfiles.properties") + //include ("nbproject/project.properties") + //include ("nbproject/project.xml") + + exclude ("appletlib") + exclude ("**/*locales") + exclude ("*locales/**") + exclude ("utils/InstallAnywhere") exclude (getdown_files_dir) exclude (getdown_website_dir) + // exluding these as not using jars as modules yet + exclude ("$j11modDir/**/*.jar") + } +task helppages { + dependsOn copyHelp + dependsOn pubhtmlhelp + + inputs.dir("$classes/$helpDir") + outputs.file("build/distribution/help/helpTOC.html") +}