Well ... sure enough... it works!

I was expecting a problem because the documentation kept talking about
/webapp being the required directory for the .tml files. With no mention of
any other option, I was expecting to have to rig it up.

thanks!

Patrick Moore
Amplafi
http://amplafi.com
mobile: 650-207-9792
"Put your front window on your front page"
corp blog : http://amplafi.com/blog
personal blog : http://www.sworddance.com/blog


On Sun, Aug 8, 2010 at 4:15 AM, Ville Virtanen <ville.virta...@cerion.fi>wrote:

>
> T5 application works ok as is if the files are in the same directory.
>
> If you use maven, then the maven default structure layout dictates that the
> non-java files must be in resources or webapp folders. (The build process
> copies the resources to the same directory structure from java and
> resources.)
>
> Now you want to tell maven to also copy the tml and properties files from
> the java side. One way to do this is to alter your pom.xml: add this inside
> the build tag: (This is not tested, just something I typed on the fly.
> There
> are better ways to do it.)
>
>        <resources>
>            <resource>
>                <directory>src/main/java</directory>
>                <filtering>false</filtering>
>                <includes>
>                        <indluce>**/*.*</indluce>
>                </includes>
>                <excludes>
>                    <exclude>**/*.java</exclude>
>                    <exclude>**/*.class</exclude>
>                </excludes>
>            </resource>
>        </resources>
>
> On the other hand, there is support for IDE:s. We are using Netbeans
> support, which let's users change (and open if not already open) between
> .tml, .java and .properties files.
>
> https://nbtapestrysupport.dev.java.net/
>
>  - Ville
>
> Tapestry 5 actually
>
> Patrick Moore-6 wrote:
> >
> > Hi there --
> >
> > I am working to move our project from T4 to T5. In T4 we are using the
> > tacos
> > component resolver that allows the templates and properties files to be
> in
> > the same directory.  In T5 how can we do the same thing?
> >
> > In T4, I have found that having all 3 files .java, .properties, .tml in
> > the
> > same directory makes editing enormously easier. So this is really, really
> > important to me. Switching between template and .java when the files are
> > scattered is a pain.
> >
> > If there is no existing way, does anyone have some suggestions on how to
> > gracefully add this in. In T4 it wasn't that hard and it seems like it
> > should be even easier in T5.
> >
> > -Pat
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/T5%3A-How-to-have-.tml-.properties-files-in-the-same-directory-as-the--.java-files-tp29377569p29379502.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to