如何在Intellij Idea中调试Tomcat源代码?

Rya*_*nqy 1 tomcat intellij-idea

众所周知,Tomcat使用Ant构建工具。但是我们不能使用ant任务在tomcat源码根目录下的build.xml文件创建intellij idea项目。那么如何将tomcat源码转换为Intellij idea项目呢?

Qy *_*Zuo 5

  1. 从https://github.com/apache/tomcat下载源代码
  2. 安装最新版本的apache-ant,并执行如下命令:
    cd tomcat/
    ant -buildfile build.xml ide-intellij
Run Code Online (Sandbox Code Playgroud)
  1. 使用Intellij-idea打开项目