When I create a new Tapestry Project from an existing directory with a Tapestry Project already in it, my existing Home.html and Home.page files are deleted without notice and replaced by empty ones. Not nice. Good thing I was copying an existing project into a new one and have the originals.
Select…
File, New, Project
On next window select …
MyEclipse, J2EE Projects, Web Project
On next window, enter a Project Name for an existing Tapestry Project folder (that’s not currently a project in Eclipse) in the Eclipse default directory and let Eclipse use the default name.
Once the project is listed select…
MyEclipse, Add Tapestry Capabilities…
Note: you will need to remove the <servlet>…</servlet> from WEB.XML if it exists and remove/rename the XXXXX.application file (where XXXXX is the name of the application/project/folder) in order to get the Add Tapestry Capabiliites to work.
Now, if you had a Home.html or a Home.page, they are gone and replaced by empty templates.
To set this up – delete an existing Tapestry Project without deleting the contents on disk. Then in that folder – remove all of the control files and folders (.xxxxx files and .xxxxx folders those without a name to the left of the dot). Now try to add it back in as a project.
Todd.