Problem to pay attention to using Intellij Idea 4.0

xiaoxiao2021-03-06  115

Today, I am putting the software of Findbugs in the root directory of the project, and when I run the program in my project, the error prompts, the error prompt information is related to Findbugs. At this time, I wanted not to pass - my Findbugs is not placed under the SRC under the project, when I run the program, what is the relationship with Findbugs? Later, I added a Findbugs directory under Intellij File / Setting / Compiler / Exclude from Compile, and the problem is solved. Thus, when I add a directory under Intellij, if this directory does not use the source code that needs to be compiled, you should perform the above Exclude step. Another problem: establish a directory TEST under the project, the project will not default it to a TEST source path, you need to right click on the Test directory under file / setting / path to choose Test Source. Another problem: Intellij is an ANT that uses itself, so it will be a bit different from the ANT used in us. After using Intellij's Ant to choose a build.xml file, we do the best thing, I think it should be that some ClassPath let Ant's ClassLoader can find these JAR files. This can be right-click in the ANT window, select Properties in the pop-up menu, add ClassPath in the pop-up dialog. If you don't do this, we will often use these JAR files in the build.xml file to add subtasks in each of the required tasks, which is too much trouble.

转载请注明原文地址:https://www.9cbs.com/read-103251.html

New Post(0)