JAL-3111 JAL-3348 JVL file documentation
[jalview.git] / build.gradle
index 995afaf..2332643 100644 (file)
@@ -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")
 }
@@ -1199,8 +1205,19 @@ task sourceDist (type: Tar) {
   exclude ("**/*locales")
   exclude ("*locales/**")
   exclude ("utils/InstallAnywhere")
+  exclude (libDir)
   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")
+}