Mercurial > public > ssdtant
comparison src/org/ssdt_ohio/tools/ant/AddDependencyTask.java @ 1:82fc5e17cc59
clean up task messages
author | smith@nwoca.org |
---|---|
date | Sat, 16 Apr 2011 16:22:27 -0400 |
parents | 1918a6aed50a |
children | de1522a9d4bc |
comparison
equal
deleted
inserted
replaced
0:1918a6aed50a | 1:82fc5e17cc59 |
---|---|
13 private String depends; | 13 private String depends; |
14 | 14 |
15 @Override | 15 @Override |
16 public void execute() throws BuildException { | 16 public void execute() throws BuildException { |
17 if (target == null) { | 17 if (target == null) { |
18 throw new BuildException("target attribute is required"); | 18 throw new BuildException("'target' attribute is required"); |
19 } | 19 } |
20 if (depends == null) { | 20 if (depends == null) { |
21 throw new BuildException("depends attribute is required"); | 21 throw new BuildException("'depends' attribute is required"); |
22 } | 22 } |
23 | 23 |
24 Target t = (Target) getProject().getTargets().get(target); | 24 Target t = (Target) getProject().getTargets().get(target); |
25 | 25 |
26 if (t.dependsOn(depends)) { | 26 if (t.dependsOn(depends)) { |
27 log(target +" already depends on " + depends, Project.MSG_VERBOSE); | 27 log(target + " already depends on " + depends, Project.MSG_VERBOSE); |
28 } else { | 28 } else { |
29 log("Adding \"" + depends + "\" dependency to \"" + target + "\"", Project.MSG_VERBOSE); | 29 log("Adding \"" + depends + "\" dependency to \"" + target + "\"", Project.MSG_VERBOSE); |
30 | 30 |
31 t.addDependency(depends); | 31 t.addDependency(depends); |
32 } | 32 } |