Commit 1b59350
compile_<demo>.bat never created the directory it compiles into
The windows-bat job failed on its first run, which is what it is for:
javac: directory not found: build
##[error]compile_checksyntax.bat did not produce checksyntax.class
Every compile_<demo>.bat sets `targetdir=build` and passes it to `javac -d`
without creating it. JDK 8's javac requires the output directory to already
exist -- it will make package subdirectories underneath, but not the root. So
on a fresh clone none of these 39 scripts could compile anything. It went
unnoticed because a machine that had ever built the demos already had build\,
and because nothing ran them.
Reproduced exactly, under JDK 8, in a clean `git archive` export:
$ javac -d build -cp ".:external_lib/*:lib/*" ...checksyntax.java
javac: directory not found: build
$ mkdir build && javac -d build ...
$ echo $?
0
Worth noting this cannot be reproduced on a current JDK: javac creates the
directory itself from some later release, so on JDK 21 the same command
succeeds. The scripts target a JDK 8 era toolchain, which is what CI runs.
All 39 now do:
if not exist %targetdir% mkdir %targetdir%
The other two fixes from the previous commit did work: JAVA_HOME came through
from the runner (C:\hostedtoolcache\...\Java_Temurin-Hotspot_jdk\8.0.492-9)
rather than being overwritten by the hardcoded path, and feeding stdin from NUL
carried `pause` straight through ("Press any key to continue . . ." with no
hang).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012qPRpoD8exYRrUmbfXXWXj1 parent aa3a824 commit 1b59350
39 files changed
Lines changed: 120 additions & 0 deletions
File tree
- src/main/java/gudusoft/gsqlparser/demos
- analyzescript
- analyzesp
- sybase
- analyzeview
- antiSQLInjection
- columnImpact
- benchmark
- checksyntax
- columnAnalyze
- columnDetail
- columnInWhereClause
- columnMatrix
- columninspect
- dlineageBasic
- columnImpact
- dlineage
- expressionTraverser
- formatsql
- getStmtTables
- getTableJoinType
- getcrud
- getsourcetoken
- getstatement
- gettablecolumns
- joinConvert
- joinRelationAnalyze
- listGSPInfo
- modifySelect
- modifysql
- plannerAnalyze
- removeCondition
- scantable
- search
- sqldetect
- sqlrefactor
- sqltranslator
- traceColumn
- tracedatalineage
- visitors
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments