Browse Source

Remove use of deprecated methods

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@396460 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 19 years ago
parent
commit
52c7727b2a
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
  2. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java

+ 2
- 2
src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java View File

@@ -423,8 +423,8 @@ public class ProjectHelperImpl extends ProjectHelper {
if ((new File(baseDir)).isAbsolute()) {
helperImpl.project.setBasedir(baseDir);
} else {
File resolvedBaseDir = helperImpl.project.resolveFile(baseDir,
helperImpl.buildFileParent);
File resolvedBaseDir = FILE_UTILS.resolveFile(
helperImpl.buildFileParent, baseDir);
helperImpl.project.setBaseDir(resolvedBaseDir);
}
}


+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2004 The Apache Software Foundation
* Copyright 2000-2004,2006 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.
@@ -33,6 +33,7 @@ import org.apache.tools.ant.DirectoryScanner;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.MatchingTask;
import org.apache.tools.ant.types.EnumeratedAttribute;
import org.apache.tools.ant.util.FileUtils;

/**
* Compiles NetRexx source files.
@@ -670,7 +671,7 @@ public class NetRexxC extends MatchingTask {
String toFile = (String) filecopyList.get(fromFile);

try {
getProject().copyFile(fromFile, toFile);
FileUtils.getFileUtils().copyFile(fromFile, toFile);
} catch (IOException ioe) {
String msg = "Failed to copy " + fromFile + " to " + toFile
+ " due to " + ioe.getMessage();


Loading…
Cancel
Save