Open
Description
- Open spring-petclinic project using VS Code with Java Ext Pack installed
- When hint to choose between Maven or Gradle, pick Gradle and import the project
- In terminal, build the project using gradle by
./gradlew build
- Now launch the project, and inspect the argfile
Both bin
and build
folders are in the classpath, and it will introduce unexpected consequences.
For example, in the spring-petclinic project, the database initialization script will be executed twice due to the extra classpath entry, resulting in duplicated records in db. This is really hard to troubleshoot and will cause serious confusion.
build
folder should not be included in this case.