mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

Create an option to avoid overwriting existing dependencies #51

Open ramiromagalhaes opened 7 years ago

ramiromagalhaes commented 7 years ago

While installing a software's dependencies, appassembler will allways overwriting existing jar files. In many circumstances this may be unnecessary. appassembler should have an option to avoid that.

dantran commented 7 years ago

how much performance do you gain? do you have large assembler packages? and how many ?

I also clear my staging dir, it is also risky not to clear it since you can accumulating lots of filesover time due to deps changes

ramiromagalhaes commented 7 years ago

I may gain a lot of performance. See, I have this weird setup where I deploy a desktop application and its dependencies into a network folder. From time to time I must deploy them through a VPN that performs poorly. The total upload is kinda small (~33 MB), but may take about 5-8 minutes.

While the application is composed of 7 modules that change oftenly, the remaining 40 dependencies (~31MB) do not. In fact, we seldomly change them, and when this happens, it is almost never a big change.

That's why avoiding to rewrite files is very important to me. It may reduce the time I take to install that software throught the VPN to something like ~34 seconds.