17850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com/* 27850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Copyright (C) 2010 The Android Open Source Project 37850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 47850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Licensed under the Apache License, Version 2.0 (the "License"); 57850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * you may not use this file except in compliance with the License. 67850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * You may obtain a copy of the License at 77850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 87850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * http://www.apache.org/licenses/LICENSE-2.0 97850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * 107850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * Unless required by applicable law or agreed to in writing, software 117850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * distributed under the License is distributed on an "AS IS" BASIS, 127850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * See the License for the specific language governing permissions and 147850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * limitations under the License. 157850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com */ 167850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 177850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.compackage vogar.commands; 187850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 197850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.comimport java.io.File; 20b5c5c44d0c0a01c278cdac68ae23646682eb8ef7jessewilson@google.comimport vogar.Log; 217850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 227850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com/** 237850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com * A rm command. 247850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com */ 257850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.compublic final class Rm { 26f83be5e4273263df2bb9ef609946b911695b3996jessewilson@google.com private final Log log; 277850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com 28f83be5e4273263df2bb9ef609946b911695b3996jessewilson@google.com public Rm(Log log) { 29f83be5e4273263df2bb9ef609946b911695b3996jessewilson@google.com this.log = log; 30f83be5e4273263df2bb9ef609946b911695b3996jessewilson@google.com } 31b5c5c44d0c0a01c278cdac68ae23646682eb8ef7jessewilson@google.com 327850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com public void file(File file) { 330eb0936e90bf11463c8ee937ca996d7bd654a098jessewilson@google.com new Command(log, "rm", "-rf", file.getPath()).execute(); 347850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com } 357850f3f3da0099b76f09ed64d23e0a43ba4a5c76jessewilson@google.com} 36