X2CPG

Frontend Args #

The frontend arguments for x2cpg is shared across all frontends for Joern. See the individual Frontend pages for frontend-specific args.

ArgDescriptionTypeExample
input-dirDirectory containing all source files to be used with JoernString"/some/path/to/folder"
outputName of the file where output is written toString--output "output.txt"
excludeFile names to be excluded during CPG generation (path must be relative to input-dir or an absolute path). Can be specified multiple times.List<String>--exclude test1.java
exclude-regexA regex specifying files to be excluded during CPG generation (path must be relative to input-dir or absolute)String--exclude-regex ".*-test.java"
enable-early-schema-checkingEnables early schema validation during AST creation (disabled by default)---enable-early-schema-checking
enable-file-contentAdd the raw source code to the content of the FILE nodes to allow for method source retrieval via offset fields (disabled by default)---enable-file-content