ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1631] New - <available file=""../> always succeeds
Date Sat, 05 May 2001 10:46:36 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1631

*** shadow/1631	Sat May  5 03:46:36 2001
--- shadow/1631.tmp.2973	Sat May  5 03:46:36 2001
***************
*** 0 ****
--- 1,40 ----
+ +============================================================================+
+ | <available file=""../> always succeeds                                     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1631                        Product: Ant                     |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority: Low                       Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: jeff@socialchange.net.au                                     |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ (using a 4 May 2001 build..)
+ 
+ The following Ant tag will always set the variable:
+ 
+ <available file="" property="requirement.satisfied"/>
+ 
+ I suggest the default behaviour be to always fail, ie not set the variable. 
+ 
+ Here's a use case:
+ 
+ <property environment="env"/>
+ <available file="${env.SERVLET_JAR}" property="servlet.present"/>
+ 
+ This might be used to ensure the user has servlet.jar in their classpath.
+ 
+ Now, if the user types:
+ export SERVLET_JAR=
+ 
+ This circumvents the check. It would be best for the "servlet.present" variable
+ not to be set in this case.
+ 
+ thanks,
+ 
+ --Jeff

Mime
View raw message