@@ -2373,37 +2373,48 @@ public Integer createScan(CxScanParams params, String comment) throws CheckmarxE
23732373
23742374
23752375//preserving settings
2376- Gitremotemain gitremotemainObj = getGitRepoDetails (projectId );
2377- Customremotemain customremotemainObj = getCustomRepoDetails (projectId );
2378- Perforceremotemain perforceremotemainObj = getPerforceRepoDetails (projectId );
2379- Sharedremotemain sharedremotemainObj = getSharedRepoDetails (projectId );
2380- Svnremotemain svnremotemainObj = getSvnRepoDetails (projectId );
2381- Tfsremotemain tfsremotemainObj = getTfsRepoDetails (projectId );
2382- ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails (projectId );
2376+ // Gitremotemain gitremotemainObj = getGitRepoDetails(projectId);
2377+ // Customremotemain customremotemainObj = getCustomRepoDetails(projectId);
2378+ // Perforceremotemain perforceremotemainObj = getPerforceRepoDetails(projectId);
2379+ // Sharedremotemain sharedremotemainObj = getSharedRepoDetails(projectId);
2380+ // Svnremotemain svnremotemainObj = getSvnRepoDetails(projectId);
2381+ // Tfsremotemain tfsremotemainObj = getTfsRepoDetails(projectId);
2382+ // ExcludeSettingsmain excludeSettingsmainObj = getExcludeSettingsDetails(projectId);
2383+
23832384 prepareSources (params , projectId );
23842385 //Setting Remembered Git Settings
2385- if (gitremotemainObj != null ) {
2386- setGitRepoDetails (gitremotemainObj , projectId );
2387- }
2388- if (customremotemainObj != null ) {
2389- setCustomRepoDetails (customremotemainObj , projectId );
2390- }
2391- if (perforceremotemainObj != null ) {
2392- setPerforceRepoDetails (perforceremotemainObj , projectId );
2393- }
2394- if (sharedremotemainObj != null ) {
2395- setSharedRepoDetails (sharedremotemainObj , projectId );
2396- }
2397- if (svnremotemainObj != null ) {
2398- setSvnRepoDetails (svnremotemainObj , projectId );
2399- }
2400- if (tfsremotemainObj != null ) {
2401- setTfsRepoDetails (tfsremotemainObj , projectId );
2402- }
2386+ // try {
2387+ // if(params.isFileSource() || (params.isGitSource()
2388+ // && cxProperties.getEnabledZipScan())){
2389+ // if (gitremotemainObj != null) {
2390+ // setGitRepoDetails(gitremotemainObj, projectId);
2391+ // }
2392+ // if (customremotemainObj != null) {
2393+ // setCustomRepoDetails(customremotemainObj, projectId);
2394+ // }
2395+ // if (perforceremotemainObj != null) {
2396+ // setPerforceRepoDetails(perforceremotemainObj, projectId);
2397+ // }
2398+ // if (sharedremotemainObj != null) {
2399+ // setSharedRepoDetails(sharedremotemainObj, projectId);
2400+ // }
2401+ // if (svnremotemainObj != null) {
2402+ // setSvnRepoDetails(svnremotemainObj, projectId);
2403+ // }
2404+ // if (tfsremotemainObj != null) {
2405+ // setTfsRepoDetails(tfsremotemainObj, projectId);
2406+ // }
2407+ //
2408+ // if (excludeSettingsmainObj != null) {
2409+ // setExcludeSettingsDetails(excludeSettingsmainObj, projectId);
2410+ // }
2411+ // }
2412+ // }catch (Exception e) {
2413+ // log.error("Error Occurred While Setting Settings.");
2414+ // log.error(ExceptionUtils.getStackTrace(e));
2415+ // }
2416+
24032417
2404- if (excludeSettingsmainObj != null ) {
2405- setExcludeSettingsDetails (excludeSettingsmainObj , projectId );
2406- }
24072418
24082419
24092420 if (params .isIncremental () && projectExistedBeforeScan ) {
0 commit comments