On Wed, Apr 10, 2002 at 12:57:03AM -0700, Chris Kimpton wrote: > Ok I can package resources inside a jar - but if I list them in this > section of the project.xml - where/when do they get expanded - if at > all?
The documentation is weak in this area. I'll beef up that section in the project descriptor doc. But to answer your questions, the jarResources are Ant pattern sets that get included when you execute the maven:jar target. Here's an example of how Torque uses them: <jarResources> <jarResource>include = templates/**</jarResource> </jarResources> These resources are then bundled when maven:jar is invoked. There is one property that affects the interpretation of jarResources. Its called jarResource.basedir and its documented in the Properties document. In short, this is the basedir used when using the above pattern sets. For example, if you specified in your project.properties: jarResources.basedir = src Anything located in "src/templates" directory (relative to the base directory of your project) will be packaged into the "templates" directory of the JAR file (relative to the base of the JAR). Note: the "src" portion has been dropped in the JAR. I hope this helps. And I'll update the docs to be more clear. Thanks, Pete
