You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2001/01/29 08:22:33 UTC

Deprecated #set is gone.

The deprecated, original #set syntax is now gone.  It was

  #set $a = $b

and was replaced, some time ago, with the form that follows the
structure of the other directives :

  #set($a = $b)

The version of the jar was updated to velocity-0.72.jar to help keep
them distinct.

This was introduced a while ago, and since then, the deprecated #set
would work, but generate log messages. Now, it will be a parser error,
so I guess you still can look in the log :)

If this is really a problem, keep your older 0.71 jar and use that to
find the problematic uses, and fix them.

geir

-- 
Geir Magnusson Jr.                               geirm@optonline.com
Velocity : it's not just a good idea. It should be the law.
http://jakarta.apache.org/velocity

Multi-line directive

Posted by Steve Ruby <st...@rubysolutions.com>.

Given that directives like #set() require the parens does it make sense
that such directives will ever be able to cross multiple lines?

such as
#set( $mylongvar = "this is a rather long 
string that takes multiple lines")

OR

#set ($myarray = ["one",
    "two",
    "three",
])


Is there some downside to being able to have the parser simply continue
to the end rather than choak on a newline?


Thaks