generate-classes
Generate DSL Classes
Run the v2 compiler (ANTLR4 + Javassist) to generate bytecode classes from DSL scripts and dump .class files to disk for inspection.
Commands by argument
mal — MAL expression classes
./mvnw test -pl test/script-cases/script-runtime-with-groovy/mal-lal-v1-v2-checker \
-Dtest=MalComparisonTest -DfailIfNoTests=false -Dcheckstyle.skip
Output location: test/script-cases/scripts/mal/**/*.generated-classes/
oal — OAL metrics/dispatcher/builder classes
./mvnw test -pl oap-server/oal-rt \
-Dtest=RuntimeOALGenerationTest -DfailIfNoTests=false -Dcheckstyle.skip
Output location: oap-server/oal-rt/target/test-classes/metrics/, metrics/builder/, dispatcher/
lal — LAL filter/extractor classes
./mvnw test -pl test/script-cases/script-runtime-with-groovy/mal-lal-v1-v2-checker \
-Dtest=LalComparisonTest -DfailIfNoTests=false -Dcheckstyle.skip
Output location: test/script-cases/scripts/lal/**/*.generated-classes/
hierarchy — Hierarchy rule classes
./mvnw test -pl test/script-cases/script-runtime-with-groovy/hierarchy-v1-v2-checker \
-Dtest=HierarchyRuleComparisonTest -DfailIfNoTests=false -Dcheckstyle.skip
Output location: test/script-cases/scripts/hierarchy-rule/*.generated-classes/
all or no argument — generate all DSLs
Run all four commands above sequentially.
After generation
Print the output location for the requested DSL so the user knows where to find the generated .class files. Use javap to decompile:
javap -c -p <path-to-class-file>
Cleaning generated classes
./mvnw clean -pl test/script-cases/script-runtime-with-groovy/mal-lal-v1-v2-checker,test/script-cases/script-runtime-with-groovy/hierarchy-v1-v2-checker
More from apache/skywalking
license
Check and fix Apache 2.0 license headers and dependency licenses using skywalking-eyes. Use before submitting a PR.
1compile
Build SkyWalking OAP server, run javadoc checks, and verify checkstyle. Use to validate changes before submitting a PR.
1test
Run unit tests, integration tests, or slow integration tests matching CI. Use to validate changes before submitting a PR.
1gh-pull-request
Verify, commit, and push changes on a PR branch. Runs pre-flight checks (compile, checkstyle, license headers) before every push. Also creates the PR if one doesn't exist yet.
1