1 17 18 package org.apache.tools.ant.taskdefs.optional.ide; 19 20 import org.apache.tools.ant.BuildException; 21 22 25 public 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 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 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 76 public void setProjectFound() { 77 projectFound = true; 78 } 79 } 80 | Popular Tags |