Browse Source

If property is already set then generate a warning or an exception - dont try to chekc if it is valid.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272625 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
58257e4ff6
1 changed files with 5 additions and 9 deletions
  1. +5
    -9
      src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java

+ 5
- 9
src/main/org/apache/tools/ant/taskdefs/optional/extension/JarLibResolveTask.java View File

@@ -164,18 +164,14 @@ public class JarLibResolveTask

if( null != candidate )
{
final File file =
getProject().resolveFile( candidate );
getProject().log( "Property Already set to: " + file,
Project.MSG_VERBOSE );
try
final String message = "Property Already set to: " + candidate;
if( m_failOnError )
{
checkExtension( file );
return;
throw new BuildException( message );
}
catch( final BuildException e )
else
{
missingExtension();
getProject().log( message, Project.MSG_ERR );
return;
}
}


Loading…
Cancel
Save