www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
26
scripts/decompile-www-libs.ps1
Normal file
26
scripts/decompile-www-libs.ps1
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
param(
|
||||
[string]$LibDir = (Join-Path $PSScriptRoot "..\www\WEB-INF\lib"),
|
||||
[string]$OutputDir = (Join-Path $PSScriptRoot "..\decompiled-libs\www")
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$jdCli = Get-Command jd-cli -ErrorAction Stop
|
||||
$resolvedLibDir = (Resolve-Path $LibDir).Path
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $OutputDir | Out-Null
|
||||
|
||||
$targets = Get-ChildItem -Path $resolvedLibDir -Filter '*.jar' |
|
||||
Where-Object {
|
||||
$_.Name -match '^acxent-.*\.jar$' -or $_.Name -match '^cli-rus-.*\.jar$'
|
||||
}
|
||||
|
||||
if (-not $targets) {
|
||||
throw 'No acxent or cli-rus jars found under www/WEB-INF/lib.'
|
||||
}
|
||||
|
||||
foreach ($jar in $targets) {
|
||||
$targetDir = Join-Path $OutputDir $jar.BaseName
|
||||
New-Item -ItemType Directory -Force -Path $targetDir | Out-Null
|
||||
& $jdCli.Source -od $targetDir $jar.FullName
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue