Sharing a project between Eclipse and Netbeans

后端 未结 5 588
孤独总比滥情好
孤独总比滥情好 2020-12-20 14:13

Is there a way to share the same *.java files between Netbeans and Eclipse?

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 14:44

    Sharing the Java source files is not the problem - just put them into some source control system, and then import them in both IDEs. Usually the configuration, especially the build process, is the main problem.

    In practice, the solution is likely that you maintain separate project configuration files for both IDEs, but use a common build script (e.g. ant) that is supported by both. The project configuration allows you to use IDE-specific features, while the build script makes sure that both environments produce the same output.

提交回复
热议问题