in src/main/org/apache/ant/dotnet/wix/WixTask.java [233:274]
public void execute() {
if (source == null && sources.size() == 0) {
throw new BuildException("You must specify at least one source"
+ " file.");
}
if (source != null && !source.exists()) {
throw new BuildException("Source file " + source
+ " doesn't exist.");
}
String m = Mode.BOTH;
if (mode != null) {
m = mode.getValue();
}
if (target == null && !m.equals(Mode.CANDLE)) {
throw new BuildException("You must specify the target if you want"
+ " to run light.");
}
Collection lightSources = null;
if (!m.equals(Mode.LIGHT)) {
lightSources = doCandle();
} else {
lightSources = new HashSet();
if (source != null) {
lightSources.add(source);
}
if (sources.size() > 0) {
lightSources.addAll(grabFiles(sources));
}
}
if (!m.equals(Mode.CANDLE)) {
Collection moreLightSources = Collections.EMPTY_SET;
if (moreSources.size() > 0) {
moreLightSources = grabFiles(moreSources);
}
doLight(lightSources, moreLightSources);
}
}