Author: gmcdonald Date: Wed May 13 03:00:21 2009 New Revision: 774176 URL: http://svn.apache.org/viewvc?rev=774176&view=rev Log: Add a condition to check that when set, forrest.echo must be true to run target, default is false. Fix for FOR-1055
Modified: forrest/trunk/main/forrest.build.xml Modified: forrest/trunk/main/forrest.build.xml URL: http://svn.apache.org/viewvc/forrest/trunk/main/forrest.build.xml?rev=774176&r1=774175&r2=774176&view=diff ============================================================================== --- forrest/trunk/main/forrest.build.xml (original) +++ forrest/trunk/main/forrest.build.xml Wed May 13 03:00:21 2009 @@ -299,7 +299,15 @@ <!-- =============================================================== Echo's the settings if requested. [-Dforrest.echo=true] =============================================================== --> - <target name="echo-settings" if="forrest.echo"> + + <target name="echo-settings-condition" if="forrest.echo"> + <property name="forrest.echo.istrue" value="${forrest.echo}"/> + <condition property="echo.true"> + <istrue value="${forrest.echo.istrue}"/> + </condition> + </target> + + <target name="echo-settings" depends="echo-settings-condition" if="echo.true"> <loadfile property="echo-settings-message" srcFile="${forrest.core}/var/echo-settings-message.txt"> <filterchain> <expandproperties/>