[ca2115]: lib / tasks / clearer.rake  Maximize  Restore  History

Download this file

20 lines (18 with data), 660 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#
# This file is part of the Jikes RVM project (http://jikesrvm.org).
#
# This file is licensed to You under the Eclipse Public License (EPL);
# You may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.opensource.org/licenses/cpl1.0.php
#
# See the COPYRIGHT.txt file distributed with this work for information
# regarding copyright ownership.
#
desc "Cleanup Backup files"
task 'tmp:cache:clear' => :environment do
FileUtils.rm_rf(Dir["#{RAILS_ROOT}/public/results"])
FileUtils.rm_rf(Dir["#{RAILS_ROOT}/public/reports"])
end
Rake::Task['tmp:clear'].enhance(['tmp:cache:clear'])