Looks like a bug in Jelly/Jexl to me. I believe you need to 'log-in' to Jira to file a bug report. -- dIon Gillard, Multitask Consulting Blog: http://www.freeroller.net/page/dion/Weblog Work: http://www.multitask.com.au
[EMAIL PROTECTED] wrote on 06/01/2003 09:46:24 PM: > Hi, > > ok, I'm too dumb to put a bug report into jira.werken.com. It just > offers me "commons attributes" as possible projects and I can't select > Maven. > > Consider the following two code segments: > > --- cut --- > <goal name="testEmptyVar1"> > <echo>${test.prop}</echo> > <j:set var="testPropX" value="${test.prop}X"/> > <j:if test="${testPropX == 'X'}"> > <fail>test.prop not set!</fail> > </j:if> > </goal> > --- cut --- > > --- cut --- > <goal name="testEmptyVar2"> > <echo>${test.prop}</echo> > <j:set var="testProp" value="${test.prop}"/> > <j:if test="${testProp == ''}"> > <fail>test.prop not set!</fail> > </j:if> > </goal> > --- cut --- > > The first one works (if test.prop is not set e.g. in my > ~/build.properties , it reports "test.prop not set"), the second one > does not. > > Neither does > > --- cut --- > <goal name="testEmptyVar3"> > <echo>${test.prop}</echo> > <j:set var="testProp" value="${test.prop}"/> > <j:if test="${testProp.equals('')}"> > <fail>test.prop not set!</fail> > </j:if> > </goal> > --- cut --- > > nor > > --- cut --- > <goal name="testEmptyVar4"> > <echo>${test.prop}</echo> > <j:set var="testProp" value="${test.prop}"/> > <j:if test="${testProp.isEmpty()}"> > <fail>test.prop not set!</fail> > </j:if> > </goal> > --- cut --- > > I do consider this a bug. > > > Regards > Henning > > -- > Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer > INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED] > > Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] > D-91054 Buckenhof Fax.: 09131 / 50654-20 > > -- > To unsubscribe, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> > > ForwardSourceID:NT0009F162 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>