Name:gen-models
Type:java
Source:gen-models-lib.psm1
function getTaskDesc([Task]$task) {
$tfs = $task.tfs;
$gfn = $tfs.globMap.gaelGlobs.gfn;
$desc = "Gen Models - proj=$($gfn.gaelProj) curPort=$($gfn.curPort)";
return $desc
}
function fetchJavaMain([Object]$task,[hashtable]$parms) {
return 'org.gaelic.pod.run.GenPods'
}
function fetchJavaClassStr([Object]$task,[hashtable]$parms) {
#return '$env:PSEC_V4_UTILS/srp-util/lib;$env:PSEC_V4_UTILS/srp-util/java-gen-prod/production/srp-util;$env:PSEC_V4_UTILS/gael-core/lib;$env:PSEC_V4_UTILS/gael-core/libaux;$env:PSEC_V4_UTILS/gael-core/libaux;$env:PSEC_V4_UTILS/gael-core/libaux;$env:PSEC_V4_UTILS/gael-core/libaux;'
##return '$env:PSEC_V4_UTILS/srp-util/lib;$env:PSEC_V4_UTILS/srp-util/java-gen-prod/production/srp-util;$env:PSEC_V4_UTILS/gael-core/out-lib;$env:PSEC_V4_UTILS/gael-core/lib;$env:PSEC_V4_UTILS/gael-core/libaux;'
return '$env:PSEC_V4_UTILS/srp-util/lib;$env:PSEC_V4_UTILS/srp-util/java-gen-prod/production/srp-util;$env:PSEC_V4_UTILS/citc/java-gen-prod;$env:PSEC_V4_UTILS/citc/lib-leg;$env:PSEC_V4_UTILS/citc/lib;$env:PSEC_V4_UTILS/gael-core/out-lib;$env:PSEC_V4_UTILS/gael-core/lib;$env:PSEC_V4_UTILS/gael-core/libaux;'
}
# ---------- define task parameters
function params([Object]$task,[hashtable]$htOpts) {
$curBase = "h:/v3/citc"
$gaelCore = "h:/v3/gael-core" ##temp
$htOpts.brief = "$($task.statlocn)"
$htOpts.skel = "$($gaelCore)/inputs/skel"
#$htOpts.targDir = "$($gaelCore)"
$htOpts.debout = "d:\1\genv3-pods"
#$htOpts.gael = "$($curBase)/java-gen-prod"
##$parms.wireSpec = "$($cfb.curBase)/inputs/gael-core-jwires.json"
hlog("GenPods doing $($htOpts.skel)")
$task.defLogWid = 1200
return $htOpts
<#
$cfb = $task.cfb
$parms = @{};
$parms.brief = "$($task.statlocn)"
$parms.skel = "$($cfb.gaelBase)/inputs/skel"
$parms.debout = "d:/1/genv3-pods"
##$parms.javaOut = "$($cfb.curBase)/java-src/src/org/gaelic/gen/pod"
##$parms.podSpec = "$($cfb.curBase)/inputs/gael-core-pods.json"
##$parms.dartOut = "H:\flut\gael-srv-exp\lib"
##$parms.gael = "$($cfb.gaelBase)\srv\gen\cls"
#$parms.defs = "$($cfb.gaelBase)\data\modgen"
##$parms.todo = "org.gael.podgen.def.User"
hlog("podgen doing $($parms.todo)")
$task.defLogWid = 1200
return $parms
}
# ---------- define task options
function options([Task]$task) {
$opts = @();
##$opts += @{type='check'; parm='aug'; label='aug'; place='Augment server'}
$opts += @{type='check'; parm='gen'; label='GenReal'; place='Update classes'}
$opts += @{type='file'; parm='podSpec'; label='PodSpec'; place='json spec file'}
##$opts += @{type='input'; parm='what'; label='What'; place='What to select in spec file'}
##$opts += @{type='file'; parm='genSpec'; label='GenSpec'; place='json spec file'}
##$opts += @{type='radio'; parm='mode'; label='mode'; valset='pod-java/*pod-j,jwire/jwire,jw-test/jw-test,exp-dart/exp-d'}
return ,$opts
}
Copyright © 2018-2021, 2022, Rexcel System Inc.