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 UtilsGenerationTask extends Task {
13 private String propertyFile;
14
15
16 public void execute() throws BuildException
17 {
18 System.out.println("UtilsGenerationTask: " + propertyFile);
19 String args[] = new String[] {propertyFile};
20 Map map = new HashMap();
21 map.put("check.database", "false");
22 map.put("write.only.per.schema.templates", "true");
23 Main.main(args, map);
24 }
25
26
27 public void setPropertyFile(String msg) {
28 this.propertyFile = msg;
29 }
30 }