Skip to content

Command Line Application to synchronize between two local directories in an optimized way.

Notifications You must be signed in to change notification settings

HoussemSaafi/SynchronizationCLIApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SynchronizationCLIApplication using Picocli

Synchronize between two local directories in an optimized way

_

cd target
sync -s ${PathToYourSourceFolder} -d ${PathToYourDestinationFolder} 

Steps:

A) Install The SyncApp : Use the build automation tool : Maven

A\ 1) If you are using IntelliJ IDEA then you can use the maven integrated plugin to clean and install the application.
A\ 2) Else have maven installed in your local environment, then with the command line; change the directory to point to your project folder ( where the pom.xml file is )

_

cd ${projectDirectory}
mvn clean install

What does mvn clean install do in Maven?

mvn clean install tells Maven to do the clean phase in each module before running the install phase for each module. What this does is clear any compiled files you ###have, making sure that you're really compiling each module from scratch.


B) Run The SyncApp :

B\ 1) Having built our project now under the target folder you could find the build jar file. To run the application open the command line prompt and point to the target folder where the jar file is located. Finally run the jar file using the command.

_

cd ${projectTargetDirectory}
java -jar ${nameOfYourJarFile}

C) Create a .cmd file to run your application with the above mentionned command :

C\ 1) Inside your file insert this line:

_

@java -jar myapp-1.0-SNAPSHOT-shaded.jar %*

Free Software, Yay! ©HoussemSaafi

About

Command Line Application to synchronize between two local directories in an optimized way.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published