View Javadoc

1   //$Id: GenerationTask.java,v 1.1 2005/10/12 18:44:24 framiere Exp $
2   
3   package net.sourceforge.sql2java.ant;
4   
5   import org.apache.tools.ant.BuildException;
6   import org.apache.tools.ant.Task;
7   import net.sourceforge.sql2java.*;
8   
9   public class GenerationTask extends Task {
10  	private String propertyFile;
11  
12  	// The method executing the task
13  	public void execute() throws BuildException
14  	{
15  		System.out.println("GenerationTask: " + propertyFile);
16  		String args[] = new String[]{propertyFile};
17  		Main.main(args);
18  	}
19  
20  	// The setter for the "propertyFile" attribute
21  	public void setPropertyFile(String msg) {
22  		this.propertyFile = msg;
23  	}
24  }