git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270167 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -7,9 +7,10 @@ | |||||
| */ | */ | ||||
| package org.apache.tools.ant; | package org.apache.tools.ant; | ||||
| import java.io.File; | |||||
| import org.apache.myrmidon.api.AbstractTask; | import org.apache.myrmidon.api.AbstractTask; | ||||
| import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| import java.io.File; | |||||
| /** | /** | ||||
| * Base class for components of a project, including tasks and data types. | * Base class for components of a project, including tasks and data types. | ||||
| @@ -46,6 +47,7 @@ public abstract class ProjectComponent | |||||
| } | } | ||||
| protected File resolveFile( final String name ) | protected File resolveFile( final String name ) | ||||
| throws TaskException | |||||
| { | { | ||||
| return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name ); | return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name ); | ||||
| } | } | ||||
| @@ -7,9 +7,10 @@ | |||||
| */ | */ | ||||
| package org.apache.tools.ant; | package org.apache.tools.ant; | ||||
| import java.io.File; | |||||
| import org.apache.myrmidon.api.AbstractTask; | import org.apache.myrmidon.api.AbstractTask; | ||||
| import org.apache.myrmidon.api.TaskException; | |||||
| import org.apache.tools.ant.util.FileUtils; | import org.apache.tools.ant.util.FileUtils; | ||||
| import java.io.File; | |||||
| /** | /** | ||||
| * Base class for components of a project, including tasks and data types. | * Base class for components of a project, including tasks and data types. | ||||
| @@ -46,6 +47,7 @@ public abstract class ProjectComponent | |||||
| } | } | ||||
| protected File resolveFile( final String name ) | protected File resolveFile( final String name ) | ||||
| throws TaskException | |||||
| { | { | ||||
| return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name ); | return FileUtils.newFileUtils().resolveFile( project.getBaseDir(), name ); | ||||
| } | } | ||||