DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15955>. 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=15955 Add if and unless attributes to the echo task Summary: Add if and unless attributes to the echo task Product: Ant Version: 1.5.1 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] echo is often used to inform the user about presence/absence of optional libraries and similar conditions in the build process. This is currently done by using one target, conditioned to the appropriate property, for each message, as in this example: <!-- - Check for optional libraries. --> <target name="check-libs" description="Check availability of optional libraries." unless="assuming.libs.present"> <available classname="com.sun.net.ssl.internal.ssl.Provider" property="jsse.present"> <classpath refid="classpath"/> </available> <available classname="javax.mail.Transport" property="javamail.present"> <classpath refid="classpath"/> </available> <available classname="javax.activation.DataHandler" property="javamail.complete"> <classpath refid="classpath"/> </available> <available classname="iaik.protocol.https.Handler" property="isasilk.present"> <classpath refid="classpath"/> </available> </target> <!-- - Messages for missing libraries --> <target name="ssl-message" depends="check-libs" unless="jsse.present"> <echo message="Classes for SSL not found in classpath"/> </target> <target name="iaik-message" depends="check-libs" unless="isasilk.present"> <echo message="Classes for IAIK iSaSiLk not found in classpath"/> </target> <target name="mail-message" depends="check-libs" unless="javamail.complete"> <echo message="Classes for Mail support not found in classpath"/> </target> <target name="report-missing-libs" depends="ssl-message,iaik-message,mail-message"/> Having if & unless attributes on the echo target (with the obvious semantics) would greatly simplify this. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>