Analyze Java projects
Introduction
To perform the java source analysis, JDK8 or upper must be installed.The analysis is done using this command line:
Windows:
>ScanypAnalyzer.exe C:\work\MySourceFolder --identifier MyProject
Linux/Mac:
>./analyze.sh /home/myuser/mysourcefolder --identifier MyProject
The --identifier switch is mandatory to define the project key, ScanypAnalyzer will get from the ScanypServer the configuration of this specific key if it's found, else a default configuration will be created in the server and it will be used by the ScanypAnalyzer for the analysis.
Supported entries
- Source folder: The common way to analyze a java project is to parse its root folder.
>ScanypAnalyzer.exe C:\work\MyJavaFolder --identifier MyProject
- Maven projects: To get automatically the project modules and dependencies you can analyze the project by giving its pom.xml file.
>ScanypAnalyzer.exe C:\work\myproject\pom.xml --identifier MyProject
- IntellijIDEA: To parse a IntellijIDEA project, you can only give its root folder.
>ScanypAnalyzer.exe C:\work\MyJavaFolder --identifier MyProject
- NetBeans: To parse a NetBeans project, you can only give its root folder.
>ScanypAnalyzer.exe C:\work\MyJavaFolder --identifier MyProject
- Eclipse: To parse an Eclipse project, you can only give its root folder.
>ScanypAnalyzer.exe C:\work\MyJavaFolder --identifier MyProject