In Eclipse, can a single source folder be built to multiple output folders?

Summary ------- A brief description of why anyone would want to attempt this. In a Maven project, I have a need to run tests against classes in `target/classes`, and a need to debug (using the Eclipse Servers plugin) tomcat within the Eclipse IDE, which is loading classes and a number of other assembled resources in `target//WEB-INF/classes`. When my main source folder has output set at the `WEB-INF/classes` directory, tomcat debugging works great in the IDE. When the ouptut is changed to `target/classes`, the tests work fine too, as the test resources are properly assembled and loaded outside the context of the package. Problem ------- The issue is that I have to manually change my main source directory's output based on the task at hand (testing or debugging in tomcat). The configuration and build changes would be prohibitively complex based on other configuration files, etc. to merely work around this. Therefore, is there a straightforward way to tell Eclipse to output source into two directories? That way the incremental Maven build of Java class files will be copied into both places and I won't have such a fragile configuration.

以上就是In Eclipse, can a single source folder be built to multiple output folders?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准