project-organization

Why and when to create a multi-module Maven project?

时光毁灭记忆、已成空白 提交于 2019-12-03 02:40:49
I have a general question about Maven's multi module project. When and why to go for it? khmarbaise The answer of @Esko Luontola Splitting the project into multiple modules is useful for example if the modules need to be deployed separately,.. could be misinterpreted. If you have modules which will be deployed separately, it's exactly the opposite. In such case, you should never create a multi-module build. This should be done via simple separate maven projects. The idea of a multi-module build is if you have modules which belong together like an ear project which usually consists of several

Build server: Best practices managing third party components?

我只是一个虾纸丫 提交于 2019-12-02 17:45:31
I'm maintaining a quite large legacy application. The source tree is a real mess. I'm trying to set up a build server. On the source tree, I've third party component with sources (also in the project's include path). These components are also installed within the IDE. My question is : How to manage those components ? I thought to manage this way: Install the IDE on the build server Install all the third party component Remove the component sources from the project sources tree (and keep them on the project root on a dedicated folder each zipped) Each time we need to customize (or debug) a

Git submodule or sub-repository or remote?

末鹿安然 提交于 2019-11-30 12:33:32
问题 I'm using GIT to manage a Content Management System (CMS) project. The CMS can have multiple plugin (module). So basically, I want to have 3 types of repositories: The core CMS development ( every new project is a checkout of that last stable & unconfigured version ) 1 repository per module/plugin. ( every new project will checkout the last stable version of the module they want to implement ) 1 repository per project ( each client will be a repository that represent the personalization from

How to organize the project tree for a C++ project using nmake?

£可爱£侵袭症+ 提交于 2019-11-30 06:38:32
There seems to be two major conventions for organizing project files and then many variations. Convention 1: High-level type directories, project sub-directories For example, the wxWidgets project uses this style: /solution /bin /prj1 /prj2 /include /prj1 /prj2 /lib /prj1 /prj2 /src /prj1 /prj2 /test /prj1 /prj2 Pros: If there are project dependencies, they can be managed from a single file Flat build file structure Cons: Since test has its own header and cpp files, when you generate the unit test applications for EXE files rather than libraries, they need to include the object files from the

Git submodule or sub-repository or remote?

允我心安 提交于 2019-11-30 03:00:50
I'm using GIT to manage a Content Management System (CMS) project. The CMS can have multiple plugin (module). So basically, I want to have 3 types of repositories: The core CMS development ( every new project is a checkout of that last stable & unconfigured version ) 1 repository per module/plugin. ( every new project will checkout the last stable version of the module they want to implement ) 1 repository per project ( each client will be a repository that represent the personalization from the core CMS and the modules ) For the type 1 & 2, I guess it's simple basic repository. But when it

How to organize source files of Java program?

我只是一个虾纸丫 提交于 2019-11-29 23:35:47
问题 I've created small program in Java . It uses Java classes, some images and generates some other resources ( .php files, images, stylesheets etc). I'm compiling sources as .jar and creating an .exe program, which should use my .jar and other resources. What is the best practice to organize all sources of my Java program? 回答1: I will recommend the below maven structure as the standard convention even if you are not using maven. src/main/java Application/Library sources src/main/resources

How to organize a Python Project?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 18:44:29
I'm new to Python and I'm starting a mini Project, but I have some doubts on how to organize the folders in the "Python Way". I'm using PyDev in my Development Environment, and when I create a new project a folder is created called src + src Now, in the PyDev , I can create Pydev Module and PyDev Package I need to organize my Project in the following way: + Indicators - Moving_averages.py - Stochastics.py + Strategies - Moving_averages_cross.py - example.py How can I organize this in terms of Modules and Packages? What is the meaning of Modules and Packages? Best Regards, A Package is

Remove unused source code files

落花浮王杯 提交于 2019-11-29 08:37:44
In Visual Studio 2010 I have a large solution that contains number of .cs files that are no longer used (not referenced in .csproj), but still present in code repository (ClearCase). Do you know of any tool / extension / script that would find all such files? One could write a script that goes through all projects' directories, takes all files that are checked in and than compares against content of a project file. In it is not there, than we have a candidate for deletion. It is not too exotic, so I wonder whether such a script already exist. Otherwise it will be a good occasion to get dust

How to organize the project tree for a C++ project using nmake?

久未见 提交于 2019-11-29 06:17:27
问题 There seems to be two major conventions for organizing project files and then many variations. Convention 1: High-level type directories, project sub-directories For example, the wxWidgets project uses this style: /solution /bin /prj1 /prj2 /include /prj1 /prj2 /lib /prj1 /prj2 /src /prj1 /prj2 /test /prj1 /prj2 Pros: If there are project dependencies, they can be managed from a single file Flat build file structure Cons: Since test has its own header and cpp files, when you generate the unit

How to avoid circular unit reference?

风流意气都作罢 提交于 2019-11-28 18:50:39
Imagine the following two classes of a chess game: TChessBoard = class private FBoard : array [1..8, 1..8] of TChessPiece; ... end; TChessPiece = class abstract public procedure GetMoveTargets (BoardPos : TPoint; Board : TChessBoard; MoveTargetList : TList <TPoint>); ... end; I want the two classes to be defined in two separate units ChessBoard.pas and ChessPiece.pas . How can I avoid the circular unit reference that I run into here (each unit is needed in the other unit's interface section)? Change the unit that defines TChessPiece to look like the following: TYPE tBaseChessBoard = class;