1. Igor Baidiuk
  2. ant-events

Commits

Igor Baidiuk  committed 1a90333 Draft

Added description field

  • Participants
  • Parent commits bf04268
  • Branches default

Comments (0)

Files changed (1)

File src/org/antcontrib/events/Event.java

View file
  • Ignore whitespace
 
 	protected String name = null;
 	protected int priority = 0;
+	protected String description = null;
 	protected Map closure = null;
 	
 	protected List tasks = new ArrayList();
 		return priority;
 	}
 	
+	public void setDescription (String descr)
+	{
+		description = descr;
+	}
+	
+	public String getDescription ()
+	{
+		return description;
+	}
+	
 	public void execute()
 	{
 		if (name == null || name.isEmpty())
 			throw new BuildException("Event name must be a nonempty string");
 		
+		if (description == null)
+			description = "";
+		
 		try
 		{
 			// get property stack