|
|
|
|
@ -41,12 +41,12 @@ public class CreateScanRequest {
|
|
|
|
|
// in theory should take List<String> to clean it up
|
|
|
|
|
public void invokeScanAnalyze(@Valid String scanInvocation) throws JSONException { |
|
|
|
|
JSONObject jsonData = new JSONObject(scanInvocation); |
|
|
|
|
if(jsonData.getString("buildSystemType")=="brew"){ |
|
|
|
|
invokeBrewScanAnalyze(scanInvocation); |
|
|
|
|
} else if(jsonData.getString("buildSystemType")=="pnc"){ |
|
|
|
|
invokeGitScanAnalyze(scanInvocation); |
|
|
|
|
} else if(jsonData.getString("buildSystemType")=="git"){ |
|
|
|
|
invokePncScanAnalyze(scanInvocation); |
|
|
|
|
if(jsonData.getString("buildSystemType").equals("brew")){ |
|
|
|
|
this.invokeBrewScanAnalyze(scanInvocation); |
|
|
|
|
} else if(jsonData.getString("buildSystemType").equals("pnc")){ |
|
|
|
|
this.invokeGitScanAnalyze(scanInvocation); |
|
|
|
|
} else if(jsonData.getString("buildSystemType").equals("git")){ |
|
|
|
|
this.invokePncScanAnalyze(scanInvocation); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|