[Lazarus] How to add your own 'New Project' template?

Mattias Gärtner nc-gaertnma at netcologne.de
Mon Aug 18 17:43:11 CEST 2008


Zitat von Michael Van Canneyt <michael at freepascal.org>:

> >
> >
> > On Mon, 18 Aug 2008, Graeme Geldenhuys wrote:
> >
> > > On Mon, Aug 18, 2008 at 4:16 PM, Mattias Gärtner
> > <nc-gaertnma at netcologne.de> wrote:
> > >
> > > See components/projecttemplates/README.txt
> >
> > Hi Mattias,
> >
> > I'm playing a bit more with the project templates.  How is the
> > project.ini file supposed to look like.  I read the readme file and
> > created it as best, but Recurse doesn't work and neither does Exclude.
> >
> > Here is my project.ini file
> >
> > -------------------[ project.ini ]-----------------------
> > [Project]
> > Name=fpGUI Application (single file)
> > Author=Graeme Geldenhuys
> > Description=A simple single file GUI project.
> > Recurse=1
> > Exclude=.txt,.lps
>
> This should be correct.
>
> Note that excluded files are simply copied, they're just not parsed.
>
> Concerning recurse:
>
> line 405 of ProjectTemplates.pp contains
>
>     If (FindFirst(Dir+'*',0,Info)<>0) then
>
> that should be
>     If (FindFirst(Dir+'*',0,Info)=0) then
>
> Mattias, should I send a patch, or commit directly ?

Both. Send the patch directly to svn.

Mattias




More information about the Lazarus mailing list