一般文件结构和/ bin和/ dist目录之间的区别

时间:2021-02-27 08:06:20

This question is not related to a specific programming language but this is confusing me all the time when it comes to the question how to structure my project directories in a “professional way”.

这个问题与特定的编程语言无关,但是当涉及到如何以“专业方式”构建项目目录的问题时,这一直让我感到困惑。

AFAIK the bin directory contains compiled and compressed executable binary files while the src directory contains the raw source code and the build directory contains uncompressed executables (e.g. for local execution).

AFAIK bin目录包含已编译和压缩的可执行二进制文件,而src目录包含原始源代码,而构建目录包含未压缩的可执行文件(例如,用于本地执行)。

According to this Answer the dist directory contains the compressed/archived output stuff. But what’s the difference between bin and dist then? And what does a deploy folder contain aside from all these folders?

根据这个答案,dist目录包含压缩/存档的输出内容。但是bin和dist之间有什么区别呢?除了所有这些文件夹之外,deploy文件夹包含什么?

And finally: Where to put the assets (images, JSON, whatever) in? assets or vendor?

最后:在哪里放置资产(图像,JSON,等等)?资产或供应商?

2 个解决方案

#1


0  

The folder structures will always specific and different each other based on the technology and build tools we are using. As per the java I can suggest

根据我们使用的技术和构建工具,文件夹结构将始终具体且彼此不同。按照我可以建议的java

For core java apps the structure will be

对于核心Java应用程序,结构将是

Project folder inside that we will have LIB SRC CLASSES folders in LIB all the archievs libraries of java SRC normally Source code .java files CLASSES cantaines always compiled java classes. other files normally We use RESOURCES Folder

项目文件夹里面我们将在LIB中拥有LIB SRC CLASSES文件夹所有java SRC的archievs库通常源代码.java文件CLASSES cantaines总是编译java类。其他文件通常我们使用资源文件夹

And for WEB APPLICATIONS build structures decided by the build tools and servlet specifications as per the ServletSpecification PROJECT FOLDER inside WEB-INF folder inside WEB-INF classes and lib folders out side WEB-INF there are all resources and jsp html script files should be.

而对于WEB APPLICATIONS构建结构,由构建工具和servlet规范决定,根据ServletSpecification PROJECT FOLDER里面WEB-INF文件夹里面的WEB-INF类和lib文件夹外面的WEB-INF有所有资源和jsp html脚本文件应该是。

If use ANT TOOL there will be configuration xml file. there we can create and use the made the above servlet specified file structure. If use MAVEN it will take care to create above folder structure automatically from maven folder structures.

如果使用ANT TOOL,将会有配置xml文件。在那里我们可以创建和使用上面提到的servlet指定的文件结构。如果使用MAVEN,它将从maven文件夹结构自动创建上面的文件夹结构。

If we use plugins of maven and ant in the IDES that will take care every thing.

如果我们在IDES中使用maven和ant的插件来处理所有事情。

Thanks..

谢谢..

#2


0  

As you tagged your question with java, I assume the projects you mention are java projects. Have a look at Standard Directory Layout of Maven, it might be helpfull.

当你用java标记你的问题时,我假设你提到的项目是java项目。看看Maven的标准目录布局,它可能会有所帮助。

#1


0  

The folder structures will always specific and different each other based on the technology and build tools we are using. As per the java I can suggest

根据我们使用的技术和构建工具,文件夹结构将始终具体且彼此不同。按照我可以建议的java

For core java apps the structure will be

对于核心Java应用程序,结构将是

Project folder inside that we will have LIB SRC CLASSES folders in LIB all the archievs libraries of java SRC normally Source code .java files CLASSES cantaines always compiled java classes. other files normally We use RESOURCES Folder

项目文件夹里面我们将在LIB中拥有LIB SRC CLASSES文件夹所有java SRC的archievs库通常源代码.java文件CLASSES cantaines总是编译java类。其他文件通常我们使用资源文件夹

And for WEB APPLICATIONS build structures decided by the build tools and servlet specifications as per the ServletSpecification PROJECT FOLDER inside WEB-INF folder inside WEB-INF classes and lib folders out side WEB-INF there are all resources and jsp html script files should be.

而对于WEB APPLICATIONS构建结构,由构建工具和servlet规范决定,根据ServletSpecification PROJECT FOLDER里面WEB-INF文件夹里面的WEB-INF类和lib文件夹外面的WEB-INF有所有资源和jsp html脚本文件应该是。

If use ANT TOOL there will be configuration xml file. there we can create and use the made the above servlet specified file structure. If use MAVEN it will take care to create above folder structure automatically from maven folder structures.

如果使用ANT TOOL,将会有配置xml文件。在那里我们可以创建和使用上面提到的servlet指定的文件结构。如果使用MAVEN,它将从maven文件夹结构自动创建上面的文件夹结构。

If we use plugins of maven and ant in the IDES that will take care every thing.

如果我们在IDES中使用maven和ant的插件来处理所有事情。

Thanks..

谢谢..

#2


0  

As you tagged your question with java, I assume the projects you mention are java projects. Have a look at Standard Directory Layout of Maven, it might be helpfull.

当你用java标记你的问题时,我假设你提到的项目是java项目。看看Maven的标准目录布局,它可能会有所帮助。