You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2007/09/28 17:47:46 UTC
svn commit: r580393 -
/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
Author: peterreilly
Date: Fri Sep 28 08:47:45 2007
New Revision: 580393
URL: http://svn.apache.org/viewvc?rev=580393&view=rev
Log:
fix scoping
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java?rev=580393&r1=580392&r2=580393&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java Fri Sep 28 08:47:45 2007
@@ -128,14 +128,13 @@
* @return true if this resource exists.
*/
public boolean isExists() {
+ if (isReference()) {
+ return ((Resource) getCheckedRef()).isExists();
+ }
InputStream is = null;
try {
- if (isReference()) {
- return ((Resource) getCheckedRef()).isExists();
- } else {
- is = getInputStream();
- return is != null;
- }
+ is = getInputStream();
+ return is != null;
} catch (IOException ex) {
return false;
} finally {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org