Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public enum Var {
*/
SEMMLE_TRAP_IMPORTER,
SEMMLE_PRESERVE_SYMLINKS,
CODEQL_PATH_TRANSFORMER,
SEMMLE_PATH_TRANSFORMER,

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public File canonicalFile(String path) {

private static final PathTransformer DEFAULT_TRANSFORMER;
static {
String layout = Env.systemEnv().get(Var.SEMMLE_PATH_TRANSFORMER);
String layout = Env.systemEnv().get(Var.CODEQL_PATH_TRANSFORMER);
if (layout == null) {
layout = Env.systemEnv().get(Var.SEMMLE_PATH_TRANSFORMER);
}
if (layout == null)
DEFAULT_TRANSFORMER = new NoopTransformer();
else
Expand Down
5 changes: 5 additions & 0 deletions java/ql/lib/change-notes/2025-01-03-path-transformer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: feature
---
* The Java and Kotlin extractors now support `CODEQL_PATH_TRANSFORMER`. `SEMMLE_PATH_TRANSFORMER` is still supported, but deprecated.

Loading