On 23-Dec-03, at 22:45 Uhr, Marc DEXET wrote:
I have partially solutionned my previous problem. Jelly was unable to find the right .jar, because of I had not build jelly-tags (sorry I'm new in jakarta world :0)
So don't forget maven tags:build !
Cool, that's fixed in the documentation on the website now!
My next probem is always forehead; I'm using ths example script, but it doesn't work.
Allow me to ask why you want to use forehead imperatively ? I know jelly works very fine with a flat classpath... e.g. something like the following works:
java -classpath `find . -name "*.jar" | tr "\n" ":"` \
org.apache.commons.jelly.Jelly \
file.jelly \
arg1 arg2 ...presuming all the jars you need are in the current directory or somewhere below it.
(instead of "." after the find, I would hope /usr/local/jelly would do as well).
Paul
PS: using $* in a command-line makes no sense to me... you would be relying on the arguments of the shell you are inputting to... ($* means, in a bourne-shell, the space-separated concatenation of arguments, very useful for scripts).
----------------------------------------------------------------------- -----
-
[EMAIL PROTECTED] bin]# java -Djelly.home=/usr/local/jelly/bin/jelly
-Dtools.jar=/opt/java/lib/tools.jar -Dant.home=/opt/obox/ant/bin/ant
-Dforehead.conf.file=/usr/local/jelly/bin/forehead.conf -cp
/usr/local/jelly/lib/forehead-1.0-beta-2.jar
com.werken.forehead.Forehead $*
java.lang.NullPointerException
at com.werken.forehead.Forehead.loadGlob(Forehead.java:374)
at com.werken.forehead.Forehead.load(Forehead.java:317)
at com.werken.forehead.Forehead.config(Forehead.java:245)
at com.werken.forehead.Forehead.config(Forehead.java:131)
at com.werken.forehead.Forehead.main(Forehead.java:571)
----------------------------------------------------------------------- -----
-
Some ideas ?
Thanks
Marc DeXeT
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
