Browse Source

Don't delete generated files if sourcebase and basedir happen to be

the same.

PR: 2943


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269422 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
f60ca231a1
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/main/org/apache/tools/ant/taskdefs/Rmic.java

+ 6
- 2
src/main/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -399,8 +399,12 @@ public class Rmic extends MatchingTask {
}
}

// Move the generated source file to the base directory
if (null != sourceBase) {
/*
* Move the generated source file to the base directory. If
* base directory and sourcebase are the same, the generated
* sources are already in place.
*/
if (null != sourceBase && !baseDir.equals(sourceBase)) {
if (idl) {
log("Cannot determine sourcefiles in idl mode, ",
Project.MSG_WARN);


Loading…
Cancel
Save