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]