summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-11 12:33:13 +0100
committerSven Gothel <[email protected]>2019-12-11 12:33:13 +0100
commit79a8fed9fddab5429a3457c3077ee5012b405a51 (patch)
treeb54da232ade244b70d48d05bfdc970836a453004 /src/main/java/net/sf/antcontrib/cpptasks/TargetMatcher.java
parentec14765d6baab247fa37d62845c139adc367af2a (diff)
Expose full linker output filename via TargetInfo; Cleanup AbstractLinker 'String[] getOutputFileNames(..)' -> 'String getOutputFileName(..)'
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(