You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by 黄翔 <x....@gmail.com> on 2007/03/02 11:04:29 UTC

Is there some way I can see the source code generated by tapestry?

I think the code generated for components is  really useful  for debugging
and understanding. So , is there some way I can view the source code.

-- 
huang xiang
Guangzhou, China.

Re: Is there some way I can see the source code generated by tapestry?

Posted by 黄翔 <x....@gmail.com>.
thanks! :-)

2007/3/2, Howard Lewis Ship <hl...@gmail.com>:
>
> Ther'es a debugging option, -Djavassist-write-dir=target/javassist
>
> With that enable, Tapestry will write out the bytecode for any classes
> it creates or transforms.
>
> I then used the Jad decompiler to "view the source".
>
> Alternately, you can see the transformations for a particular
> component class by enabling debug logging for that class (i.e., in
> log4j properties).  That shows you the Javassist code from which the
> bytecode is generated.
>
> Or you could trust in the force, it is strong in this one :-)
>
> On 3/2/07, 黄翔 <x....@gmail.com> wrote:
> > I think the code generated for components is  really useful  for
> debugging
> > and understanding. So , is there some way I can view the source code.
> >
> > --
> > huang xiang
> > Guangzhou, China.
> >
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work.  http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
huang xiang
Guangzhou, China.

Re: Is there some way I can see the source code generated by tapestry?

Posted by Howard Lewis Ship <hl...@gmail.com>.
Ther'es a debugging option, -Djavassist-write-dir=target/javassist

With that enable, Tapestry will write out the bytecode for any classes
it creates or transforms.

I then used the Jad decompiler to "view the source".

Alternately, you can see the transformations for a particular
component class by enabling debug logging for that class (i.e., in
log4j properties).  That shows you the Javassist code from which the
bytecode is generated.

Or you could trust in the force, it is strong in this one :-)

On 3/2/07, 黄翔 <x....@gmail.com> wrote:
> I think the code generated for components is  really useful  for debugging
> and understanding. So , is there some way I can view the source code.
>
> --
> huang xiang
> Guangzhou, China.
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org