summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java')
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java b/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
index 7661cf8..599aaf0 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
@@ -97,10 +97,12 @@ public final class TargetMatcher implements FileVisitor {
final TargetInfo previousTarget = (TargetInfo) targets
.get(outputFileNames[i]);
if (previousTarget == null) {
- targets.put(outputFileNames[i], new TargetInfo(
- selectedCompiler, sourceFiles, null, new File(
- outputDir, outputFileNames[i]),
- selectedCompiler.getRebuild()));
+ targets.put( outputFileNames[i],
+ new TargetInfo (
+ selectedCompiler, sourceFiles, null, new File(
+ outputDir, outputFileNames[i]), outputFileNames[i],
+ selectedCompiler.getRebuild() )
+ );
} else {
if (!previousTarget.getSources()[0].equals(sourceFiles[0])) {
final StringBuffer builder = new StringBuffer(