A program made in Java19 to easely translate projects / folders that have similarities and that needs mapping operations over their files
It was made for a specific needs for the project Idralwel | Tales of Aeshan
Let's say you have a very huge program called MyProject
, and it is in version 1.0.0
MyProject
got a lot of bug and syntax error to correct, and so you spend time to correct everything.
Your version with all the corrections is called MyProject_corrected
.
But the moment you're correction is complete, a new version of MyProject
is uploaded, version 1.0.1.
This new version got some new functionnalities, but with a lot of the same bugs that you have to dealt with on version 1.0.0
Well this program is made to translate every file that can be replaced by your correction (MyProject_corrected
) into a fresh new version of MyProject
!
- All files that are identical between
MyProject
v1.0.0 andMyProject
v1.0.1 will be replaced byMyProject_corrected
's version in the result project - The new files of version
MyProject
v1.0.1 will be added to the result project - The files deleted from
MyProject
v1.0.0 in versionMyProject
v1.0.1 will not be added to the result project - All the custom files of
MyProject_corrected
will be added to the result project
The program has to be called with the following arguments:
COMMAND:
./jarname SourcePath registerPath SolutionPath ResultPath
Where jarname is the name of your jar (made out of the project files)
ARGS REQUIRED: SourcePath
RegisterPath
SolutionPath
ResultPath
DESCRIPTION:
SourcePath
: The Path to the folder that contains the files that you want to translate (hereMyProjectV1.0.0
)RegisterPath
: The Path to the folder that contains the files to be compared with (hereMyProjectV1.0.1
)SolutionPath
: The Path to the folder that contains the files that are solutions if the recognition was successful (hereMyProject_corrected
)ResultPath
: The Path to the folder that will contain the Output, it needs to be empty
The output is divided in 2 fields:
- the console
- the log files
-
It displays a colorful logging of every files that could not been matched, with reasons.
-
It also include statistics at the end to translate the operations done in number
For each and every type of reason for 2 files not matching, there is a log_file to archive it !