Java/Python 应用程序的源代码文件夹结构(bin、lib、src、config 等)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15445506/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Source code folder structure (bin, lib, src, config etc. ) for Java/Python applications
提问by Deep Wine Red
How do I decide the source code folder structure (bin, lib, src, config etc.) for Java applications? I mainly want to develop applications related to Data Mining and Information Retrieval. Are there sources or books where I can learn more about this?
我如何决定 Java 应用程序的源代码文件夹结构(bin、lib、src、config 等)?我主要想开发与数据挖掘和信息检索相关的应用程序。是否有资源或书籍可以让我了解更多信息?
回答by utapyngo
It won't be the same for Java and Python.
Java 和 Python 不会一样。
For Java, it depends on build automation tool you use. If you decide to use Maven, it will suggest you the source folder code sructure. See the Introduction to the Standard Directory Layout. Ant uses another directory structure: Building with Ant: Directory Structure.
对于 Java,这取决于您使用的构建自动化工具。如果您决定使用 Maven,它会建议您使用源文件夹代码结构。请参阅标准目录布局简介。Ant 使用另一种目录结构:Building with Ant: Directory Structure。
As for Python, see this question: What is the best project structure for a Python application?
至于 Python,请看这个问题:Python 应用程序的最佳项目结构是什么?