From ant-dev-return-40066-qmlist-jakarta-archive-ant-dev=jakarta.apache.org@jakarta.apache.org Tue Dec 03 02:49:26 2002 Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 21494 invoked from network); 3 Dec 2002 02:49:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Dec 2002 02:49:25 -0000 Received: (qmail 1775 invoked by uid 97); 3 Dec 2002 02:50:34 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 1759 invoked by uid 97); 3 Dec 2002 02:50:34 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 1745 invoked by uid 50); 3 Dec 2002 02:50:33 -0000 Date: 3 Dec 2002 02:50:33 -0000 Message-ID: <20021203025033.1744.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 15014] New: - ${build.sysclasspath} is ignored when there is no classpath set on X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15014 ${build.sysclasspath} is ignored when there is no classpath set on Summary: ${build.sysclasspath} is ignored when there is no classpath set on Product: Ant Version: 1.5.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: ant-dev@jakarta.apache.org ReportedBy: jesse.glick@netbeans.com I am reporting this against 1.5.1 but actually I think the bug is much older. Normally ${build.sysclasspath} works as documented. However if you have a task with no classpath set at all (neither via attribute nor via nested element), the behavior is as if the value 'last' (or 'only' or 'first') were used, even if the property is in fact set to 'ignore'. Thus people who expect -Dbuild.sysclasspath=ignore to protect them against unintended classpath entries, will find that this does not work unless they give an *empty* classpath for source trees which do not require anything other than the standard JRE classes! This behavior is inconsistent, confusing, and maybe dangerous in some situations. Attaching a transcript of a test session. You can see that ant empty-cp-build.syscp=ignore fails as you would expect, yet ant no-cp-build.syscp=ignore mysteriously succeeds. After applying a patch to the trunk version of DefaultCompilerAdapter (also attached), both of these fail as expected. -- To unsubscribe, e-mail: For additional commands, e-mail: