Name:gen-jwire
Type:java
Source:gen-jwire-lib.psm1
function getTaskDesc([Task]$task) {
$tfs = $task.tfs;
$gfn = $tfs.globMap.gaelGlobs.gfn;
$desc = "Gen JWire - proj=$($gfn.gaelProj) curPort=$($gfn.curPort) `r`nNOTE:Rebuild JAR if gael-core classes";
return $desc
}
function fetchJavaMain([Object]$task,[hashtable]$parms) {
return 'org.gaelic.jwire.GenJWireEncoders'
}
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"
$htOpts.targDir = "$($gaelCore)"
$htOpts.debout = "d:\1\outv3-jwires"
$htOpts.gael = "$($curBase)/java-gen-prod"
##$parms.wireSpec = "$($cfb.curBase)/inputs/gael-core-jwires.json"
hlog("GenJWireEncoders doing $($htOpts.todo)")
$task.defLogWid = 1200
return $htOpts
}
# ---------- define task options
function options([Task]$task) {
$opts = @();
##$opts += @{type='check'; parm='aug'; label='aug'; place='Augment server'}
$opts += @{type='check'; parm='genJava'; label='GenJava'; place='Update Java classes'}
$opts += @{type='check'; parm='genDart'; label='GenDart'; place='Update Dart classes'}
$opts += @{type='check'; parm='genJS'; label='GenJS'; place='Update JS script'}
$opts += @{type='check'; parm='genTS'; label='GenTS'; place='Update TS script'}
$opts += @{type='file'; parm='wireSpec'; label='Wirepec'; place='json spec file'}
##$opts += @{type='file'; parm='wireSpec'; label='WireSpec'; place='json spec'}
#$opts += @{type='radio'; parm='mode'; label='mode'; valset='jwire/jwire,jw-test/jw-test'}
return ,$opts
}
Copyright © 2018-2021, 2022, Rexcel System Inc.