> -----Original Message-----
> From: Erik Husby [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 22, 2004 5:04 PM
> To: Maven Users List
> Subject: Re: The Genapp plugin
>
>
> Erik Husby wrote:
>
> > Charles Daniels wrote:
> >
> >> Unfortunately, that won't work because the genapp plugin specifically
> >> uses
> >> ${user.home}/.maven/template, not
> ${maven.home.local}/template.  If this
> >> isn't already in JIRA against the genapp plugin, it should be.
> >>
> >>
> >>
> > I added that issue yesterday.
> >

Thanks for adding the issue.  (See below for a suggestion regarding your
prodinfo:genapp goal.)

> What I've just ended up doing is writing my own plugin with a goal that
> builds on Charley's preGoal. Mine looks like this which compensates for
> the above problem.
>
>     <goal name="prodinfo:genapp"
>           description="Generate Production Informatics applications from
> templates.">
>
>        <!-- TODO: Delete/copy only when necessary -->
>        <ant:delete dir="${maven.local.home}/template/prodinfo"/>
>        <ant:copy todir="${maven.local.home}/template/prodinfo"
>                  preservelastmodified="true">
>           <ant:fileset dir="${plugin.resources}"/>
>        </ant:copy>
>
>        <j:set var="maven.genapp.template.repository"
> value="${maven.local.home}/template/prodinfo"/>
>        <genapp:generate />
>
>     </goal>
>
> So my developers will do "maven prodinfo:genapp" instead of "maven
> genapp" to get my specific templates.

If you are going to create your own goal (prodinfo:genapp), then you don't
need to bother with using the "standard" template directory that the genapp
plugin uses.  You can simply tell genapp to look in your own plugin
resources directory, as follows:

<goal name="prodinfo:genapp">
  <genapp:generate
maven.genapp.template.repository="${plugin.resources}/template"/>
</goal>

This assumes that each of your application templates is rooted its own
subdirectory of ${plugin.resources}/template.

>
> --
> Erik Husby
> Team Lead for Software Quality Automation
> Broad Institute of MIT and Harvard
> Rm. 2192  320 Charles St
> Cambridge, MA 02141-2023
> mobile: 781.354.6669, office: 617.258.9227, [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to