planFile is just the filename, you have to set sourceDir to the
directory the plan is actually in. This is because the filtering is
done via Velocity which wants a basedir and then a template name.
See:
http://geronimo.apache.org/maven/plugins/car-maven-plugin/
dependencies-mojo.html
IMO, the filtering should be done in similar fashion to the resources
plugin...
--jason
On Jul 25, 2006, at 2:02 PM, Aaron Mulder wrote:
On 7/25/06, Prasad Kashyap <[EMAIL PROTECTED]> wrote:
If you plan to use a file in src, then the variable you need is is
${basedir}.
${basedir}/src/plan/geronimo-service.xml
If you plan to use a file under target, then the variable you need is
${project.build.directory}
Well, that doesn't work. If I put in
<planFile>${basedir}/src/plan/geronimo-service.xml</planFile>
then I get:
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------
--
[INFO] Unable to find resource
'/data/svn/plugins/quartz/plugins/scheduler/src/plan/geronimo-
service.xml'
but if I check that location the file is there. So it's apparently
not accepting a file for that variable. Any idea what planFile is
supposed to be set to?
Thanks,
Aaron
On 7/25/06, Aaron Mulder <[EMAIL PROTECTED]> wrote:
> On 7/24/06, Prasad Kashyap <[EMAIL PROTECTED]> wrote:
> > There is a planFile config option in the mojos. So I suspect
you may
> > specify a different location for the plan file. By default, it
expects
> > the plan to be in target/plan/plan.xml.
>
> How do I use this? I put my plan at src/plan/geronimo-
service.xml and
> set the planFile to src/plan/geronimo-service.xml and I get:
>
> [ERROR] ... Unable to find resource 'src/plan/geronimo-service.xml'
>
> I assume I need some prefix like
> ${current-directory}/src/plan/geronimo-service.xml but I don't know
> the name of the variable to use for that. Or maybe that's not
right?
> What I'm looking for is to have the original plan at
> src/plan/[real-plan-file-name] not src/plan/plan.xml so I just
want to
> tell the plugin to get it from there.
>
> Also, where is the current source code for the car-maven-plugin?
>
> Thanks,
> Aaron
>