You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2020/01/15 22:14:33 UTC
[Bug 64078] New: [PATCH] targets produce confusing verbose messages
when using if/unless attributes
https://bz.apache.org/bugzilla/show_bug.cgi?id=64078
Bug ID: 64078
Summary: [PATCH] targets produce confusing verbose messages
when using if/unless attributes
Product: Ant
Version: nightly
Hardware: PC
Status: NEW
Severity: minor
Priority: P2
Component: Core
Assignee: notifications@ant.apache.org
Reporter: artsus4@gmail.com
Target Milestone: ---
Created attachment 36966
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36966&action=edit
the build-file, and patch
For example, I use a target with 'if' attribute, which value expands to a
boolean:
<property name="run_test-if" value="no" />
<target name="test-if" if="${run_test-if}" />
In this case in verbose messages I expected to see some information on skipping
the target because of a falsy value after property expansion. Instead I saw
this: "Skipped because property 'no' no set".
Please, see the attachment containing a build-file, and my humble patch with a
possible solution.
Run the build-file as:
ant -v test-if
ant -v test-unless
ant -v test-if-non-boolean-expansion
ant -v test-unless-non-boolean-expansion
(the last two targets are more for testing the patch)
--
You are receiving this mail because:
You are the assignee for the bug.