source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJProjectDescription.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 2.1 KB
Line 
1/*
2 * Copyright 2001-2002,2004 The Apache Software Foundation
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 */
17
18package org.apache.tools.ant.taskdefs.optional.ide;
19
20import org.apache.tools.ant.BuildException;
21
22/**
23 * Type class. Holds information about a project edition.
24 */
25public class VAJProjectDescription {
26 private String name;
27 private String version;
28 private boolean projectFound;
29
30 public VAJProjectDescription() {
31 }
32
33 public VAJProjectDescription(String n, String v) {
34 name = n;
35 version = v;
36 }
37
38 public String getName() {
39 return name;
40 }
41
42 public String getVersion() {
43 return version;
44 }
45
46 public boolean projectFound() {
47 return projectFound;
48 }
49
50 /**
51 * name of the VAJ project to load into
52 * the workspace; required
53 */
54 public void setName(String newName) {
55 if (newName == null || newName.equals("")) {
56 throw new BuildException("name attribute must be set");
57 }
58 name = newName;
59 }
60
61 /**
62 * name of the requested version; required.
63 */
64 public void setVersion(String newVersion) {
65 if (newVersion == null || newVersion.equals("")) {
66 throw new BuildException("version attribute must be set");
67 }
68 version = newVersion;
69 }
70
71 /**
72 * this may be a helper method, and is being ignored for now
73
74 * @ant.attribute ignore="true"
75 */
76 public void setProjectFound() {
77 projectFound = true;
78 }
79}
Note: See TracBrowser for help on using the repository browser.