/zipdeduplicate

Use a bare gitrepo to deduplicate many very simular zip/jar/ear-Files

Primary LanguageJava

git init --bare zipdedup.remote.git
git clone --bare zipdedup.remote.git/ zipdedup.local.git
git clone --bare zipdedup.remote.git/ zipdedup.local2.git
git clone zipdedup.remote.git/ zipdedup.setup.git
cd zipdedup.setup.git
echo "SETUP" > README
git add README
git commit -m "setup"
git push

Example of BulkInsert (Folder)
BulkInsert <.git-Folder-of-local-git zipdedup.local.git> <folder-to-import> <uri-to-store-the-folder> <additional-classifier>
BulkInsert /tmp/zipdedup.local.git ${folder_prompt} http://www-my-repository/groupId/artifactId 20.4.2:3453abcf

Example of BulkInsert (Zip-File)
BulkInsert <.git-Folder-of-local-git zipdedup.local.git> <file-to-import> <uri-to-store-the-zip> <additional-classifier>
BulkInsert /tmp/zipdedup.local.git ${file_prompt} http://www-my-repository/groupId/artifactId 20.4.2:3453abcf

Example of FolderRestore
FolderRestore <.git-Folder-of-local-git zipdedup.local.git> <uri-to-restore-from> <restore-folder-name> <additional-classifier>
FolderRestore /tmp/zipdedup.local.git http://www-my-repository/groupId/artifactId restore-folder-name 20.4.2:latests

Example of ZipRestore
ZipRestore <.git-Folder-of-local-git zipdedup.local.git> <uri-to-restore-from> 
ZipRestore /tmp/zipdedup.local.git http://www-my-repository/groupId/artifactId.zip