User is getting the error "Source directory does not exists" along with (6) Command Line source validation error .
Action Plan
- Check the command to find out if all the parameters passed are correct
-
-
- Modify the command to point to the proper source directory. This must exist and be where the current source resides. It should be separate from the working directory.
- Check the command whether the Directory of Perl installation ie
perlInstallDir is mentioned correctly. The default is: C:\Program Files\Cast\HighlightAgent\perl . - If an error "Directory containing perl script for analyzer should exist" is thrown then follow CAST HIGHLIGHT - CLI - Running the HighlightAutomation.jar results in error "Directory containing perl script for analyzer should exist" This happens when HighlightAutomation.jar is run from outside the directory which has the jar.
- --workingDir is the directory where the scan results and analysis log files are stored in a Highlight created temporary folder ("HLTemporary"). This should be a unique directory for each analysis to store the analysis results
- If the command returns either "syntax of the command is incorrect " or "argument cannot be parsed", then please re-verify your command syntax and arguments and correct as needed.
- Modify the command to point to the proper source directory. This must exist and be where the current source resides. It should be separate from the working directory.
-
-
- Use the latest version of the CLI. As the platform evolves (new features, new API endpoints, etc.) are added, the command line also uses some of these functionalities.
Ticket
43479
Related Pages
CAST HIGHLIGHT - CLI - Error Codes
CAST HIGHLIGHT - CLI - Error code 3 - Command Line techno discovery error
CAST HIGHLIGHT - CLI - Error code 4 - Command Line analysis error
CAST HIGHLIGHT - CLI - Error code 5 - Command Line result upload error
CAST HIGHLIGHT - CLI - Error code 9 - Command Line unziping jars or zip error
CAST HIGHLIGHT - CLI - Docker - Results Upload - Upload failed with code 5 when using Docker
CAST HIGHLIGHT - CLI - ERROR: Failed to fetch company with id when using --basicAuth
Highlight Automated Code Scan (Command Line)
Comments