commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Birchfield <>
Subject RE: [jelly] RE: Jelly and properties
Date Tue, 01 Oct 2002 18:39:42 GMT
This fix is actually submitted and hopefully to be committed soon.  No need
to modify the scripts.  It will look in the user.home dir first, then the
local dir for a

James Birchfield
Director, Application Development
Genscape, Inc.
(502) 583-2298 (o)
(502) 639-3136 (c)

-----Original Message-----
From: Jason Horman [] 
Sent: Tuesday, October 01, 2002 2:32 PM
To: 'Jakarta Commons Developers List'
Subject: [jelly] RE: Jelly and properties

How about as a temporary fix you just have jelly(.sh) source ~/.jelly if it
exists. This would avoid me having to edit jelly(.sh) or use ant/maven just
to run a script.

I am not a sh expert, but something like this.




if [ -f $HOME/.jelly ]
    . $HOME/.jelly

$JAVA_HOME/bin/java -mx1500mb -classpath ${JELLY_HOME}/lib/forehead.jar \
    -Dforehead.conf.file=${JELLY_HOME}/bin/forehead.conf \
    -Dant.home=${ANT_HOME} \
    -Djelly.home=${JELLY_HOME} \
    -Dtools.jar=${JAVA_HOME}/lib/tools.jar \
    com.werken.forehead.Forehead $*




-Dlog4j.configuration=file:${HOME}/configs/jelly/log -Dwebservices.config_directory=${HOME}/configs/webservices"



-jason horman

-----Original Message-----
From: James Strachan []
Sent: Tuesday, October 01, 2002 10:32 AM
To: Jakarta Commons Developers List
Subject: Re: Jelly and properties

From: "Jim Birchfield" <>
> I would like to see Jelly look for a file on the
> and load the properties to be available for Jelly to use in the script.
> James, have you had any thoughts around this issue?  It is easy to set the
> properties when using Maven, but as I am starting to use Jelly as a
> scripting language outright, It would be nice to have this feature.  Also,
> like the possibility of having a <j:properties> tag (thanks Bob) that can
> load a given properties file to be made available.

Sounds like a good idea.

If you bootstrapped Jelly from either inside Ant or with an Ant Project
scope, you could just use the Ant <properties> tag to load properties into
Jelly. Though I know Maven did some clever jiggery pokery so that dynamic
expressions could be put inside the properties file which would then get
lazily evaluated on demand. So maybe we should migrate some of that
functionality into core Jelly?


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

To unsubscribe, e-mail:
For additional commands, e-mail:
This email message and any attachments are for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient or his/her representative, please contact the
sender by reply email and destroy all copies of the original message.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message