Skip to content

Commit 4cfd978

Browse files
author
Benjamin Muskalla
committed
Support generating in respective folders
1 parent b927588 commit 4cfd978

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

java/ql/src/utils/model-generator/GenerateFlowModel.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,23 @@
1111

1212
def printHelp():
1313
print("""Usage:
14-
GenerateFlowModel.py <library-database> <simpleName> [--with-sinks] [--with-sources] [--with-summaries]
14+
GenerateFlowModel.py <library-database> <outputQll> [--with-sinks] [--with-sources] [--with-summaries]
1515
1616
This generates summary, source and sink models for the code in the database.
17-
The files will be placed in `java/ql/lib/semmle/code/java/frameworks/generated/<simpleName>/`
17+
The files will be placed in `java/ql/lib/semmle/code/java/frameworks/<outputQll>` where
18+
outputQll is the name (and path) of the output QLL file. Usually, models are grouped by their
19+
respective frameworks.
1820
19-
A simple name is used for the generated target files (e.g. `simpleName.qll`).
2021
Which models are generated is controlled by the flags:
2122
--with-sinks
2223
--with-sources
2324
--with-summaries
2425
If none of these flags are specified, all models are generated.
2526
27+
Example invocations:
28+
$ GenerateFlowModel.py /tmp/dbs/apache_commons-codec_45649c8 "apache/Codec.qll"
29+
$ GenerateFlowModel.py /tmp/dbs/jdk15_db "javase/jdk_sinks.qll" --with-sinks
30+
2631
Requirements: `codeql` should both appear on your path.
2732
""")
2833

0 commit comments

Comments
 (0)