KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > savant > ant > types > LocalProjectType


1 /*
2  * Copyright (c) 2003-2004, Inversoft, All Rights Reserved
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.savant.ant.types;
8
9
10 import java.io.File JavaDoc;
11
12 import org.apache.tools.ant.types.DataType;
13
14 import com.inversoft.savant.LocalProject;
15
16
17 /**
18  * <p>
19  * This class is an ant type that models a project dependency
20  * on another project that can be built locally.
21  * </p>
22  *
23  * @author Brian Pontarelli
24  */

25 public class LocalProjectType extends DataType {
26
27     private LocalProject proxy = new LocalProject();
28
29
30     /**
31      * Returns the LocalProject object that this class is a proxy to.
32      */

33     public LocalProject getProxy() {
34         return proxy;
35     }
36
37     /**
38      * Returns the group that this local project belongs to.
39      */

40     public String JavaDoc getGroup() {
41         return proxy.getGroup();
42     }
43
44     /**
45      * Sets the group that this local project belongs to.
46      */

47     public void setGroup(String JavaDoc group) {
48         proxy.setGroup(group);
49     }
50
51     /**
52      * Returns the name of this local project.
53      */

54     public String JavaDoc getName() {
55         return proxy.getName();
56     }
57
58     /**
59      * Sets the name of this local project.
60      */

61     public void setName(String JavaDoc name) {
62         proxy.setName(name);
63     }
64
65     /**
66      * Returns the optional build file name of this local project. Defaults to
67      * build.xml.
68      */

69     public String JavaDoc getAntfile() {
70         return proxy.getAntfile();
71     }
72
73     /**
74      * Sets the optional build file name of this local project.
75      */

76     public void setAntfile(String JavaDoc antfile) {
77         proxy.setAntfile(antfile);
78     }
79
80     /**
81      * Returns the optional target name which is called to build this local
82      * project. This defaults to empty, which means the default target is used.
83      */

84     public String JavaDoc getTarget() {
85         return proxy.getTarget();
86     }
87
88     /**
89      * Sets the optional target name which is called to build this local project.
90      */

91     public void setTarget(String JavaDoc target) {
92         proxy.setTarget(target);
93     }
94
95     /**
96      * Returns the directory where this local project is located.
97      */

98     public File JavaDoc getDir() {
99         return proxy.getDir();
100     }
101
102     /**
103      * Sets the directory where this local project is located.
104      */

105     public void setDir(File JavaDoc dir) {
106         proxy.setDir(dir);
107     }
108 }
Popular Tags