View Javadoc

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