As a follow-up, if you're using the jetty:run maven plugin with the default configuration to launch your app from the command-line, you will need to:
mvn process-resources
after making changes to templates in order for them to show up. The command will copy the changed-templates from the src directory to the target directory.

Robert

On Jun 11, 2008, at 6/119:40 AM , Kristian Marinkovic wrote:

if you configure the jetty-plugin (in eclipse) it will use the compiled
classes from
the binary directory. it will do as if it where in your WEB-INF/ classes
directory.

because you can build your project with maven from the
command line the content of the target directory in eclipse then does
not reflect the changed content as eclipse has no way of knowing if
the files in your filesystem have changed. therefore you have to refresh the target directory in eclipse after you build your project using maven
from the command line. because this is a tedious and boring task that
is easy forgotten :) it is recommend to use a different output directory
for
the classes generated by eclipse (the latest m2 plugin uses target- eclipse
anyway).

the templates will be reloaded automatically if you have them in your
classpath. your eclipse project needs at least the src/main/java and
src/main/resources directory in its classpath. the src/main/resources
directory contains the template files in directories
corresponding with to the package structure of you classes. everything
in your classpath will be put virtually in you WEB-INF/classes directory
of your servlet container.

i hope this helps :)

g,
kris




maxthesecond <[EMAIL PROTECTED]>
11.06.2008 16:19
Bitte antworten an
"Tapestry users" <users@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
Re: T5 Automatic class reloading








After playing for hours I achieve to make my classes automatically
reloaded
with it a true joy.
But now my templates are not up to date.....


I need to understand the following, both jetty plugin and jettyrun show in
the console:

launching Jetty webapp: /compramaestra on address: 0.0.0.0:80 using dir:
[D:\MAX\prg\workspace\compramaestra\src\main\webapp]

So I guess jetty has no idea where target or target-eclipse or whatever
output directory is...thus it should be tapestry itself who makes some
assumptions in order to reload the classes and templates.

I might be completly wrong....

I also can't understend the role maven plays in the game.

I just wish to run the jetty-plugin change my templates and java classes
and
look at the browser.

At the moment my output file is target (after some strange changes from target-eclipse to target) and it contains both the class files and the tml
files

And for the classes everything goes smoth but the tml....

It seems like eclipse when building the app deploys automatically the
classes in the target directory but doesn't know what to do with the tml
files.

Thanks






--
View this message in context:
http://www.nabble.com/T5-Automatic-class-reloading-tp17749608p17778905.html

Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to