You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Grant Smith <wo...@gmail.com> on 2005/11/08 22:17:40 UTC

Codegen, or the lack thereof

*,

How are the plans to reimplement codegen coming along (are there any)? The
reason I ask is that I'm adding an attribute to some of the extended
components, and I get this feeling of dread as my only choice is to cross
the feared "GENERATED CODE BEGIN (do not modify!)" line...


--
Grant Smith

Re: Codegen, or the lack thereof

Posted by Manfred Geiler <ma...@gmail.com>.
Grant,
Thanks for beeing up to doing that job.
Actually I found the build file on my disk - see attachements.
I could also send you the source code and the velocity file. Please
tell me if you where not able to get those from the repo.

Some notes:
* You can ignore (or eliminate) the "inspect-" tasks. In the early
days, they where meant to automatically check the component properties
against the RI. Since we have TCK checks anyway now, this no longer is
needed or makes sense.
* For safety reasons the generator always generates .bak files, which
can be deleted by the "clean" task. Perhaps we should make this
feature optional, for most people with current IDEs have a local
history in their editor anyway.
* "generate-single-api-component": Generates or regenerates the
"GENERATED CODE" section for a single component in the API source
tree.
* "generate-single-impl-component": Generates or regenerates the
"GENERATED CODE" section for a single component in the Impl source
tree.
* "generate-single-components-component": Generates or regenerates the
"GENERATED CODE" section for a single component in the former
components (now tomahawk) source tree.
* "generate-components": Generates or regenerates the "GENERATED CODE"
section for all components in the API source tree.
* "generate-all-components-components": Generates or regenerates the
"GENERATED CODE" section for all components in the former components
(now tomahawk) source tree.

Please feel free to reorganize/refactor everything. The current target
naming is inconsistent and we will need a way to generate code for
sandbox components as well.

Tell me if there is anything I could help.

Thanks,
Manfred




2005/11/8, Grant Smith <wo...@gmail.com>:
> I'll start on the reimplementation if no-one else has. It would be nice if
> someone (Manfred ?) could send me the code for the ant task(s)
> (ComponentGeneratorTask). I dont feel like checking out and digging through
> all the prior-to-svn-reorg stuff. Is there an open JIRA on this ?
>
>
> On 11/8/05, Bruno Aranda <br...@gmail.com> wrote:
> > Well, AFAIK there are no plans, at least until JSF 1.2... but if you
> > want to be sure just add the attribute to the xml file...
> >
> > Regards,
> >
> > Bruno
> >
> > 2005/11/8, Grant Smith < work.grant@gmail.com>:
> > > *,
> > >
> > >  How are the plans to reimplement codegen coming along (are there any)?
> The
> > > reason I ask is that I'm adding an attribute to some of the extended
> > > components, and I get this feeling of dread as my only choice is to
> cross
> > > the feared "GENERATED CODE BEGIN (do not modify!)" line...
> > >
> > >
> > > --
> > > Grant Smith
> > >
> >
>
>
>
> --
> Grant Smith
>

Re: Codegen, or the lack thereof

Posted by Bruno Aranda <br...@gmail.com>.
The tag name is before_svn_reorg. You can find the code there inside
the src/codegen folder and in build/codegen

http://svn.apache.org/repos/asf/myfaces/legacy/tags/before_svn_reorg/

Regards,

Bruno

2005/11/9, Martin Marinschek <ma...@gmail.com>:
> I am sorry - I don't have the sourcecode lying around anymore. And I
> doubt that Manfred has. So you'd really need to checkout the
> appropriate tag from SVN.
>
> Sean prepared a special tag for this reason, yes something like
> prior-reorg or so?
>
> regards,
>
> Martin
>
> On 11/8/05, Grant Smith <wo...@gmail.com> wrote:
> > I'll start on the reimplementation if no-one else has. It would be nice if
> > someone (Manfred ?) could send me the code for the ant task(s)
> > (ComponentGeneratorTask). I dont feel like checking out and digging through
> > all the prior-to-svn-reorg stuff. Is there an open JIRA on this ?
> >
> >
> > On 11/8/05, Bruno Aranda <br...@gmail.com> wrote:
> > > Well, AFAIK there are no plans, at least until JSF 1.2... but if you
> > > want to be sure just add the attribute to the xml file...
> > >
> > > Regards,
> > >
> > > Bruno
> > >
> > > 2005/11/8, Grant Smith < work.grant@gmail.com>:
> > > > *,
> > > >
> > > >  How are the plans to reimplement codegen coming along (are there any)?
> > The
> > > > reason I ask is that I'm adding an attribute to some of the extended
> > > > components, and I get this feeling of dread as my only choice is to
> > cross
> > > > the feared "GENERATED CODE BEGIN (do not modify!)" line...
> > > >
> > > >
> > > > --
> > > > Grant Smith
> > > >
> > >
> >
> >
> >
> > --
> > Grant Smith
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Re: Codegen, or the lack thereof

Posted by Martin Marinschek <ma...@gmail.com>.
I am sorry - I don't have the sourcecode lying around anymore. And I
doubt that Manfred has. So you'd really need to checkout the
appropriate tag from SVN.

Sean prepared a special tag for this reason, yes something like
prior-reorg or so?

regards,

Martin

On 11/8/05, Grant Smith <wo...@gmail.com> wrote:
> I'll start on the reimplementation if no-one else has. It would be nice if
> someone (Manfred ?) could send me the code for the ant task(s)
> (ComponentGeneratorTask). I dont feel like checking out and digging through
> all the prior-to-svn-reorg stuff. Is there an open JIRA on this ?
>
>
> On 11/8/05, Bruno Aranda <br...@gmail.com> wrote:
> > Well, AFAIK there are no plans, at least until JSF 1.2... but if you
> > want to be sure just add the attribute to the xml file...
> >
> > Regards,
> >
> > Bruno
> >
> > 2005/11/8, Grant Smith < work.grant@gmail.com>:
> > > *,
> > >
> > >  How are the plans to reimplement codegen coming along (are there any)?
> The
> > > reason I ask is that I'm adding an attribute to some of the extended
> > > components, and I get this feeling of dread as my only choice is to
> cross
> > > the feared "GENERATED CODE BEGIN (do not modify!)" line...
> > >
> > >
> > > --
> > > Grant Smith
> > >
> >
>
>
>
> --
> Grant Smith
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: Codegen, or the lack thereof

Posted by Grant Smith <wo...@gmail.com>.
I'll start on the reimplementation if no-one else has. It would be nice if
someone (Manfred ?) could send me the code for the ant task(s)
(ComponentGeneratorTask). I dont feel like checking out and digging through
all the prior-to-svn-reorg stuff. Is there an open JIRA on this ?

On 11/8/05, Bruno Aranda <br...@gmail.com> wrote:
>
> Well, AFAIK there are no plans, at least until JSF 1.2... but if you
> want to be sure just add the attribute to the xml file...
>
> Regards,
>
> Bruno
>
> 2005/11/8, Grant Smith <wo...@gmail.com>:
> > *,
> >
> > How are the plans to reimplement codegen coming along (are there any)?
> The
> > reason I ask is that I'm adding an attribute to some of the extended
> > components, and I get this feeling of dread as my only choice is to
> cross
> > the feared "GENERATED CODE BEGIN (do not modify!)" line...
> >
> >
> > --
> > Grant Smith
> >
>



--
Grant Smith

Re: Codegen, or the lack thereof

Posted by Bruno Aranda <br...@gmail.com>.
Well, AFAIK there are no plans, at least until JSF 1.2... but if you
want to be sure just add the attribute to the xml file...

Regards,

Bruno

2005/11/8, Grant Smith <wo...@gmail.com>:
> *,
>
>  How are the plans to reimplement codegen coming along (are there any)? The
> reason I ask is that I'm adding an attribute to some of the extended
> components, and I get this feeling of dread as my only choice is to cross
> the feared "GENERATED CODE BEGIN (do not modify!)" line...
>
>
> --
> Grant Smith
>