Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat web files, Eclipse editing, SVN repo(Editing static Tomcat web files with Eclipse and storing them in SVN)
Tomcat web files, Eclipse editing, SVN repo [message #1402964] Fri, 18 July 2014 20:08 Go to next message
Eric Liscinsky is currently offline Eric LiscinskyFriend
Messages: 1
Registered: July 2014
Junior Member
My target is this: I want to edit static web files (html, js, css) which reside on my (local workstation) Tomcat root, and also have them under version control with SVN.

My problem: I'm not sure how to accomplish this.

Current attempts include:
1) I've set up a project "A" with a folder link to the tomcat root. This works fine. I can edit the files and the changes are immediately available. I also have a SVN repo set up, and project A is connected to the repo. Problem is the folder link and all the files are not visible to the SVN repo. I understand why since the link(s) are just pointers to the actual files.

2) I've tried to import the file structure into both eclipse and SVN, on separate attempts. Commiting or checking out the files. However they are now actual files in my project workspace (not the tomcat root), so when I edit them the Tomcat root files remain untouched. I then need to either copy and paste them, or create a war file and deploy the changes.

Either way it's to many steps to get what I want. There should be an easy way to do this.

I've tried various project types, static, dynamic, java. I've also tried digging into the project properties, facets etc., but I seem to keep missing what I need to do to achieve the desired results.

Thank you in advance for your help,
Eric
Re: Tomcat web files, Eclipse editing, SVN repo [message #1403273 is a reply to message #1402964] Mon, 21 July 2014 13:32 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1325
Registered: July 2009
Senior Member
On 7/19/2014 1:44 PM, Eric Liscinsky wrote:
> My target is this: I want to edit static web files (html, js, css) which
> reside on my (local workstation) Tomcat root, and also have them under
> version control with SVN.
>
> My problem: I'm not sure how to accomplish this.
>
> Current attempts include: 1) I've set up a project "A" with a folder
> link to the tomcat root. This works fine. I can edit the files and the
> changes are immediately available. I also have a SVN repo set up, and
> project A is connected to the repo. Problem is the folder link and all
> the files are not visible to the SVN repo. I understand why since the
> link(s) are just pointers to the actual files.
>
> 2) I've tried to import the file structure into both eclipse and SVN, on
> separate attempts. Commiting or checking out the files. However they
> are now actual files in my project workspace (not the tomcat root), so
> when I edit them the Tomcat root files remain untouched. I then need to
> either copy and paste them, or create a war file and deploy the changes.
>
> Either way it's to many steps to get what I want. There should be an
> easy way to do this.
>
> I've tried various project types, static, dynamic, java. I've also tried
> digging into the project properties, facets etc., but I seem to keep
> missing what I need to do to achieve the desired results.
>
> Thank you in advance for your help,
> Eric
>

I'm not sure if it will help, but one option is to double-click on the
Tomcat server in the Servers view. This will open the server editor.
In the Server Locations section you can use the "Use custom location"
option to place the Tomcat instance location under your Eclipse
workspace. This should allow it to be put under SVN control.

Cheers,
Larry
Previous Topic:Kepler Service Release 2 and IBM WebSphere v6.0
Next Topic:Details on paths in .settings/org.eclipse.wst.common.component
Goto Forum:
  


Current Time: Mon Apr 27 00:19:35 GMT 2015

Powered by FUDForum. Page generated in 0.01637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software