File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
java/ql/integration-tests/posix-only/kotlin/compiler_arguments Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ | 0 | -Xallow-no-source-files |
2
+ | 1 | -classpath |
3
+ | 2 | <PATH> |
4
+ | 3 | -d |
5
+ | 4 | app/build/classes/kotlin/main |
6
+ | 5 | -jdk-home |
7
+ | 6 | <PATH> |
8
+ | 7 | -module-name |
9
+ | 8 | app |
10
+ | 9 | -no-reflect |
11
+ | 10 | -no-stdlib |
12
+ | 11 | <PLUGINS> |
13
+ | 12 | app/src/main/kotlin/testProject/App.kt |
14
+ | 13 | -jvm-target |
15
+ | 14 | 1.8 |
Original file line number Diff line number Diff line change 1
1
import java
2
2
3
+ private string getArgument ( Compilation c , int i ) {
4
+ exists ( string arg | arg = c .getArgument ( i ) |
5
+ if exists ( arg .indexOf ( "-Xplugin=" ) )
6
+ then result = "<PLUGINS>"
7
+ else
8
+ if exists ( string arg0 | arg0 = c .getArgument ( i - 1 ) | arg0 = [ "-classpath" , "-jdk-home" ] )
9
+ then result = "<PATH>"
10
+ else result = arg
11
+ )
12
+ }
13
+
3
14
from Compilation c , int i
4
- select i , c . getArgument ( i )
15
+ select i , getArgument ( c , i )
You can’t perform that action at this time.
0 commit comments