DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41783>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41783 Summary: adding conditionality to echo or adding a non-failure condition Product: Ant Version: unspecified Platform: All OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] hey- there should be some way of echoing something only if a property is set. i know that you can fake this by using an additional target with if in it and ant-call, but i shouldn't have to make a new target to conditionally echo some text. it is rather cumbersome to have to write a new target just so that you can potentially perform an echo or not. it would make sense to add if and unless to the list of attributes for echo. a use case for this echo would be something like: <target name="foo"> <!-- some stuff --> <apply executable="someProg" failonerror="false" resultproperty="some.prog.failed" failifexecutionfails="false"> <!-- some arguments and other stuff --> </apply> <echo message="some-prog failed and certain files will not be generated. but the build will continue." if="{some.prog.failed}" /> </target> this information should always be displayed if someProg failed (so the level attribute in echo does not come into play here). however, it should only be displayed if someProg fails and not if the execution succeeded. in addition, there might be similar complaints about other tasks besides echo (i haven't thought about this so i don't know if this is true or no). so, as a more general solution, why not add an if task which will execute if a property is set? the semantics would be similar to that of fail except that it won't stop the build process. thanks for your work and consideration --matt goto -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]