KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > resolver > FileSystemResolver


1 /*
2  * This file is subject to the license found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package fr.jayasoft.ivy.resolver;
7
8 import fr.jayasoft.ivy.repository.file.FileRepository;
9
10 /**
11  * @author Xavier Hanin
12  */

13 public class FileSystemResolver extends RepositoryResolver {
14     public FileSystemResolver() {
15         setRepository(new FileRepository());
16     }
17     public String JavaDoc getTypeName() {
18         return "file";
19     }
20     public boolean isLocal() {
21         return getFileRepository().isLocal();
22     }
23
24     public void setLocal(boolean local) {
25         getFileRepository().setLocal(local);
26     }
27     private FileRepository getFileRepository() {
28         return (FileRepository) getRepository();
29     }
30     
31 }
32
Popular Tags