43 |
43 |
44 public void setSuperclass(String superclass) { |
44 public void setSuperclass(String superclass) { |
45 this.superclass = superclass; |
45 this.superclass = superclass; |
46 } |
46 } |
47 |
47 |
|
48 @Override |
48 public void execute() { |
49 public void execute() { |
49 CompileProperties.Log log = new CompileProperties.Log() { |
50 CompileProperties.Log log = new CompileProperties.Log() { |
50 public void error(String msg, Exception e) { |
51 public void error(String msg, Exception e) { |
51 log(msg, Project.MSG_ERR); |
52 log(msg, Project.MSG_ERR); |
52 } |
53 } |
82 } |
83 } |
83 if (mainOpts.size() > 0) { |
84 if (mainOpts.size() > 0) { |
84 log("Generating " + count + " resource files to " + destDir, Project.MSG_INFO); |
85 log("Generating " + count + " resource files to " + destDir, Project.MSG_INFO); |
85 CompileProperties cp = new CompileProperties(); |
86 CompileProperties cp = new CompileProperties(); |
86 cp.setLog(log); |
87 cp.setLog(log); |
87 boolean ok = cp.run((String[])mainOpts.toArray(new String[mainOpts.size()])); |
88 boolean ok = cp.run(mainOpts.toArray(new String[mainOpts.size()])); |
88 if (!ok) |
89 if (!ok) |
89 throw new BuildException("CompileProperties failed."); |
90 throw new BuildException("CompileProperties failed."); |
90 } |
91 } |
91 } |
92 } |
92 |
93 |