Files
codeql/java/ql/integration-tests/java/multi-release-jar-java17/test.py
Cornelius Riemenschneider 321820e758 Java: Rename integration test directories.
We are no longer bound to the platform-specific directories, so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.

I kept the platform-specific directories around under `kotlin`,
but you could also easily merge all these together if you find them unhelpful.
I'll leave that change to you.
2024-08-30 10:28:25 +02:00

12 lines
376 B
Python

import commands
def test(codeql, java):
commands.run(
"javac mod1/module-info.java mod1/mod1pkg/Mod1Class.java -d mod1obj",
"jar -c -f mod1.jar -C mod1obj mod1pkg/Mod1Class.class --release 9 -C mod1obj module-info.class",
)
codeql.database.create(
command="javac mod2/mod2pkg/User.java mod2/module-info.java -d mod2obj -p mod1.jar"
)