Ignoring Files
Ignoring JAR Files
Application packages uploaded by users are classified as open-source and non-open-source JAR packages. For non-open-source JAR packages, decompilation and SQL/Configuration analysis are required. Users can customize the JAR package filtering dictionary. JAR packages in the dictionary will not be decompiled.
- Use an SSH tool to remotely log in to the DevKit installation node as the root user.
- Go to the target configuration file directory.
cd /opt/DevKit/devkitplugins/porting/config/
/opt is the tool installation directory. Replace it with the actual directory.
- Create an ignore_jar.conf file.
1vi ignore_jar.conf - Press i to enter the insert mode and add the JAR packages to be filtered. Each JAR package occupies a line. Check that the file names are correct.
The following gives an example:
spring-boot-starter-tomcat-2.0.3.RELEASE.jar spring-core-5.0.7.RELEASE.jar failureaccess-1.0.1.jar classmate-1.3.4.jar jsr305-3.0.2.jar logback-core-1.2.3.jar spring-boot-2.0.3.RELEASE.jar
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Modify the permission and owner of the file.
1 2
chmod 600 ignore_jar.conf chown devkit:devkit ignore_jar.conf
Ignoring groupID Files
If all open source JAR packages on which the main JAR package depends are directly compressed into the main JAR package, the corresponding folder paths are matched based on group_id in the group_id.json file. Decompilation, SQL migration, and configuration scan will not be performed on all matched files.
- Use an SSH tool to remotely log in to the DevKit installation node as the root user.
- Go to the target configuration file directory.
cd /opt/DevKit/devkitplugins/porting/config/open_source_jar_whitelist
/opt is the tool installation directory. Replace it with the actual directory.
- Open the group_id.json file.
1vi group_id.json - Press i to enter the insert mode and add the group IDs to be filtered. Separate folder names using periods (.).
For example, to filter files in the org > springframework > boot directory, set group_id to org.springframework.boot.
{"group_id": ["org.springframework.boot","org.scoverage", "io.gitee.gourd-eva",...]} - Press Esc, type :wq!, and press Enter to save the file and exit.