1 /*
2  * Copyright (C) 2010 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.tradefed.build;
17 
18 import java.io.File;
19 
20 /**
21  * A simple abstract {@link IBuildInfo} whose build artifacts are containing in a local filesystem
22  * directory.
23  */
24 public interface IFolderBuildInfo extends IBuildInfo {
25 
26     /**
27      * Get the root folder that contains the build artifacts.
28      *
29      * @return the {@link File} directory.
30      */
getRootDir()31     public File getRootDir();
32 
33     /**
34      * Set the root directory that contains the build artifacts.
35      */
setRootDir(File rootDir)36     public void setRootDir(File rootDir);
37 
38     /**
39      * Deletes root directory and all its contents.
40      */
41     @Override
cleanUp()42     public void cleanUp();
43 }
44