On Fri, 2004-01-09 at 18:55, Brian Topping wrote: > Hi Jason, thanks for the response. That solved the problem. So I have two > Q's, in order of importance: > > Q1: Is there some hidden cache of knowledge that I could have learned that > from?
Possibly the mailing list archives. But in Jelly plugins if expressions aren't evaluating correctly it's most likely Jelly/Jexl doing something odd. > Q2: Is there potentially some exception that should be thrown to indicate one > is about to enter an alternate universe? :) Not really as it is a valid jexl expression that you have. In the long run and in the new Maven code I won't be promoting Jelly for plugins at all, but will be promoting the use of beanshell. I'm sure XML programming will remain wildly popular and if that is the case I will be reimplementing Jelly taking it down to the bare metal with xpp3 and using OGNL for expressions. I am no longer a fan of Jelly. I know people seem to love XML programming but I think it's the single biggest mistake I've made with Maven and it has cost us all dearly. I won't be making any similiar mistakes in the future. > Thanks! > > -b > > > -----Original Message----- > > From: Jason van Zyl [mailto:[EMAIL PROTECTED] > > Sent: Friday, January 09, 2004 6:15 PM > > To: Maven Users List > > Subject: RE: Simple properties question... > > > > > > On Fri, 2004-01-09 at 17:24, Brian Topping wrote: > > > Hmm, this is odd. > > > > > > I got a little deeper into the source and found > > JellyUtils.runScript() and > > > the variables that are defined for the context. Of six > > properties that are > > > defined in my project.properties, only two of them made it > > into the Jelly > > > context. > > > > > > The project.properties is as follows: > > > > > > maven.pooh-tool.home = C:/dev/pooh-bin/ > > > maven.pooh-tool.generated.dir = src/gen-java/pooh > > > maven.pooh-tool.manual.dir = src/java > > > maven.pooh-tool-core.home = C:/dev/pooh-bin/pooh-core > > > maven.pooh-tool-hibernate.home = resource/pooh/hibernate > > > maven.pooh-tool-java.home = C:/dev/pooh-bin/pooh-java > > > > > > The two that made it in are maven.pooh-tool.home and > > > maven.pooh-tool-core.home. Changing the names of the > > property keys to remove > > > the "maven." prefix still results in those two showing up, > > just with the new > > > keys. > > > > > > Ideas welcome, I'll see if I can figure out where things > > are getting loaded. > > > > Try not using "-" in your property names. Jexl gets confused about the > > "-" and considers it the subtract operation. Try removing them and > > report back. > > > > > -b > > > > > > > -----Original Message----- > > > > From: Brian Topping > > > > Sent: Friday, January 09, 2004 4:09 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Simple properties question... > > > > > > > > > > > > Hi, just getting started with Maven... > > > > > > > > I believe this problem comes from not understanding Jelly, > > > > but I've searched > > > > around (even in trying to understand the JellyContext that is > > > > put together) > > > > and can't find much yet. "Source as documentation" can be > > > > slow going :-) > > > > > > > > I have a project.properties that defines: > > > > > > > > maven.pooh-tool.home = C:/dev/pooh-tool > > > > > > > > and my maven.xml has: > > > > > > > > <preGoal name="java:compile"> > > > > <taskdef name="pooh" classname="pooh.Tool" > > > > classpathref="maven.dependency.classpath"/> > > > > <pooh basedir="${basedir}" > > > > typeMappings="${maven.pooh-tool.home}/TypeMapping.xml"> > > > > ... > > > > </pooh > > > > > </preGoal> > > > > > > > > Inside poohTool, the value of typeMappings is > > > > "<basedir-expanded>/0/TypeMapping.xml". > > > > > > > > Do I need to set maven.pooh-tool.home to be a Jelly var? Can > > > > the properties > > > > files be used? (If not, I guess there is a question what > > > > they are good for, > > > > so they must be usable...) > > > > > > > > Thanks, any help appreciated! > > > > > > > > Brian > > > > > > > > > > --------------------------------------------------------------------- > > > > 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] > > -- > > jvz. > > > > Jason van Zyl > > [EMAIL PROTECTED] > > http://tambora.zenplex.org > > > > In short, man creates for himself a new religion of a rational > > and technical order to justify his work and to be justified in it. > > > > -- Jacques Ellul, The Technological Society > > > > > > --------------------------------------------------------------------- > > 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] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
