1
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
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
26 public void setPropertyFile(String msg) {
27 this.propertyFile = msg;
28 }
29 }