You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Will N." <ll...@yahoo.fr> on 2013/09/10 20:08:39 UTC

move tml and properties files into coresponding packges where the java files are

I would like to move the .tml and .properties files into the same 
packages as the coresponding .java files.
Right now the java files are in main/java and the resources in 
main.resources. Since I have a lot of pages, it is sometimes not so 
funny looking for a tml file.
I guess I would have to tell my App to look somewhere else for this tml 
and properties files?

thanks

Will

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


RE: move tml and properties files into coresponding packges where the java files are

Posted by Ben Titmarsh <be...@hotmail.co.uk>.
If you are using Eclipse then CTRL-SHIFT-R is your friend.  

This recently released plugin is even more convenient.  It allows you to switch been class and template (even if one of them isnt open) at the press of a button:

https://github.com/anjlab/eclipse-tapestry5-plugin


> Date: Wed, 11 Sep 2013 12:19:40 -0700
> Subject: Re: move tml and properties files into coresponding packges where the java files are
> From: hlship@gmail.com
> To: users@tapestry.apache.org
> 
> You can store the file together; you just need to update your build tool to
> package those files along with the compiled classes. This is not the
> default for Maven or Gradle, but can be easily added.  You may also need to
> do some tweeks on how you are running the application inside your IDE, to
> ensure that the .tml and .properties files are visible on the classpath at
> runtime.
> 
> 
> On Tue, Sep 10, 2013 at 11:37 AM, Jon Williams
> <wi...@gmail.com>wrote:
> 
> > Hi Will,
> >
> > This is not necessary if you are using a decent IDE to program w/.
> > My tapestry project files are distributed in my file system as per the
> > standard approach.
> > In Idea, selecting "Project" view will merge the various files into a
> > single tree view of your package structure.
> >
> > Jon
> >
> >
> > On Tue, Sep 10, 2013 at 12:08 PM, Will N. <ll...@yahoo.fr> wrote:
> >
> > > I would like to move the .tml and .properties files into the same
> > packages
> > > as the coresponding .java files.
> > > Right now the java files are in main/java and the resources in
> > > main.resources. Since I have a lot of pages, it is sometimes not so funny
> > > looking for a tml file.
> > > I guess I would have to tell my App to look somewhere else for this tml
> > > and properties files?
> > >
> > > thanks
> > >
> > > Will
> > >
> > > ------------------------------**------------------------------**---------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<
> > users-unsubscribe@tapestry.apache.org>
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator of Apache Tapestry
> 
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
> 
> (971) 678-5210
> http://howardlewisship.com
 		 	   		  

Re: move tml and properties files into coresponding packges where the java files are

Posted by Howard Lewis Ship <hl...@gmail.com>.
You can store the file together; you just need to update your build tool to
package those files along with the compiled classes. This is not the
default for Maven or Gradle, but can be easily added.  You may also need to
do some tweeks on how you are running the application inside your IDE, to
ensure that the .tml and .properties files are visible on the classpath at
runtime.


On Tue, Sep 10, 2013 at 11:37 AM, Jon Williams
<wi...@gmail.com>wrote:

> Hi Will,
>
> This is not necessary if you are using a decent IDE to program w/.
> My tapestry project files are distributed in my file system as per the
> standard approach.
> In Idea, selecting "Project" view will merge the various files into a
> single tree view of your package structure.
>
> Jon
>
>
> On Tue, Sep 10, 2013 at 12:08 PM, Will N. <ll...@yahoo.fr> wrote:
>
> > I would like to move the .tml and .properties files into the same
> packages
> > as the coresponding .java files.
> > Right now the java files are in main/java and the resources in
> > main.resources. Since I have a lot of pages, it is sometimes not so funny
> > looking for a tml file.
> > I guess I would have to tell my App to look somewhere else for this tml
> > and properties files?
> >
> > thanks
> >
> > Will
> >
> > ------------------------------**------------------------------**---------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<
> users-unsubscribe@tapestry.apache.org>
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Re: move tml and properties files into coresponding packges where the java files are

Posted by Jon Williams <wi...@gmail.com>.
Hi Will,

This is not necessary if you are using a decent IDE to program w/.
My tapestry project files are distributed in my file system as per the
standard approach.
In Idea, selecting "Project" view will merge the various files into a
single tree view of your package structure.

Jon


On Tue, Sep 10, 2013 at 12:08 PM, Will N. <ll...@yahoo.fr> wrote:

> I would like to move the .tml and .properties files into the same packages
> as the coresponding .java files.
> Right now the java files are in main/java and the resources in
> main.resources. Since I have a lot of pages, it is sometimes not so funny
> looking for a tml file.
> I guess I would have to tell my App to look somewhere else for this tml
> and properties files?
>
> thanks
>
> Will
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>