Browse Source

-5 + 2 LOC

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277724 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
5ead23d08c
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      src/main/org/apache/tools/ant/types/Path.java

+ 3
- 6
src/main/org/apache/tools/ant/types/Path.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -487,11 +487,8 @@ public class Path extends DataType implements Cloneable {
* <p>Assume the filename is absolute if project is null.</p>
*/
private static String resolveFile(Project project, String relativeName) {
if (project != null) {
File f = project.resolveFile(relativeName);
return f.getAbsolutePath();
}
return relativeName;
return (project == null) ? relativeName
: project.resolveFile(relativeName).getAbsolutePath();
}

/**


Loading…
Cancel
Save