KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > dummy > DummyAntJob


1 /*
2  * Copyright (c) 2005, Rob Gordon.
3  */

4 package org.oddjob.dummy;
5
6 import org.apache.tools.ant.Project;
7 import org.oddjob.ant.AntJob;
8
9 /**
10  *
11  * @author Rob Gordon.
12  */

13 public class DummyAntJob extends AntJob {
14
15     private transient Project project;
16     
17     public Project getProject() {
18         if (project != null) {
19             return project;
20         }
21         Project project = new Project();
22         project.init();
23         project.addTaskDefinition("ftp", DummyFtpTask.class);
24         project.addTaskDefinition("mail", DummyEmailTask.class);
25         setProject(project);
26         this.project = project;
27         return project;
28     }
29 }
30
Popular Tags