Refreshing .war files on re-provisioning.

This commit is contained in:
Preston Lee 2014-10-07 12:31:16 -07:00
parent 7cb8aeba76
commit 2959d995e5
1 changed files with 7 additions and 1 deletions

8
vagrant/Vagrantfile vendored
View File

@ -97,7 +97,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end end
require 'fileutils' require 'fileutils'
Dir.glob('../**/target/*.war').each do |f| build_dir = 'build'
# Remove existing cached artifacts.
Dir.glob(File.join(build_dir, '*.war')).each do |f|
FileUtils.rm(f)
end
# Cache new copies.
Dir.glob(File.join('..', '**', 'target', '*.war')).each do |f|
FileUtils.cp(f, 'build') FileUtils.cp(f, 'build')
end end