Skip to content

Commit 5529dbb

Browse files
update binaries (#9)
* update binaries
1 parent fdffab3 commit 5529dbb

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.checkmarx.ast</groupId>
66
<artifactId>ast-cli-java-wrapper</artifactId>
7-
<version>1.0.7</version>
7+
<version>1.0.8</version>
88
<packaging>jar</packaging>
99

1010
<dependencies>

src/main/java/com/checkmarx/ast/CxAuth.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,16 @@ private CxCommandOutput runExecutionCommands(List<String> commands) throws IOExc
184184
CxCommandOutput cxCommandOutput = new CxCommandOutput();
185185
while ((line = br.readLine()) != null) {
186186
log.info(line);
187-
if (isJSONValid(line, CxScan.class)) {
187+
if (!StringUtils.isBlank(line) && isJSONValid(line, CxScan.class)) {
188188
scanObject = transformToCxScanObject(line);
189189
List<CxScan> scanList = new ArrayList<>();
190190
scanList.add(scanObject);
191191
cxCommandOutput.setScanObjectList(scanList);
192192
}
193193
}
194194
br.close();
195+
process.waitFor();
196+
195197
if(!process.isAlive()) {
196198
cxCommandOutput.setExitCode(process.exitValue());
197199
log.info("Exit code from AST-CLI: {}", process.exitValue());
@@ -270,6 +272,8 @@ public CxCommandOutput cxAstScanList() throws IOException, InterruptedException
270272
list = transformToCxScanList(line);
271273
}
272274
br.close();
275+
process.waitFor();
276+
273277
CxCommandOutput cxCommandOutput = new CxCommandOutput();
274278
cxCommandOutput.setScanObjectList(list);
275279
cxCommandOutput.setExitCode(process.exitValue());

src/main/resources/cx-linux

32 KB
Binary file not shown.

src/main/resources/cx-mac

33.1 KB
Binary file not shown.

src/main/resources/cx.exe

32.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)