# gen-javadoc-lib.psm1

set-strictmode -version 2.0

function defineFlowTask([Flow]$flow,[Task]$task) {
#--- define
  $def = new-module -asCustomObject -scriptBlock {
    [string]$desc       = @"
This generates the Javadoc for a Java library package
"@

    # ---------- define task parameters
    function params([Task]$task,[hashtable]$htOpts) {
      $parms = @{};
      $parms.brief    = "$($task.statlocn)"
      $parms.str      = "create Brief"
      $parms['swkey=']  = 'key-value';
      return  $parms
    }

    # ---------- define task options
    function options {
      param([Object]$task)
      $opts = @();
      return  ,$opts
    }

    # ---------- the actual script
    function runScript([Task]$task, [hashtable]$parms, [hashtable]$status) {
      $cfb = $task.cfb;
      hlog("Running script $($task.name) $($cfb.cpBase)")
      $status.run="Running script $($task.name) $($cfb.cpBase)";
      #& "$($env:java_home)\bin\javadoc.exe" -sourcepath "$($cfb.gaelBase)/src/java" -subpackages com -d "$($cfb.cpBase)/psecjava/demo/htm" -overview "$($cfb.cpBase)/psecjava/demo/src/html/overview.htm"
      & "C:\c-pgms\jdk8u60\bin\javadoc.exe" -sourcepath "$env:GAEL_CORE/java-src/src" -subpackages org -d "d:/1/gael-doc/htm" -overview "$env:GAEL_CORE/java-src/gael-overview.htm"
    }

    Export-ModuleMember -Variable * -Function *
  }
  hlog("define-task $flow $task")
  return $def;
}




X
PSEC - Powershell Enhanced Capability
1.2.1
  src: gen-javadoc-gen-javadoc-gen-javadoc-lib.psm1

Copyright © 2018-2021, 2022, Rexcel System Inc.