Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse Webtools servers.xml file
Eclipse Webtools servers.xml file [message #233341] Tue, 07 July 2009 00:26 Go to next message
Eclipse User
Originally posted by: ssullivan.aravo.com

I am using Eclipse 3.4.2 (Ganymede SR2) with Eclipse Webtools 3.0.4

When I add a server (File --> New --> Server), the new server is added
to the servers.xml file.

The servers.xml file is located in
$WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core

Since the servers.xml file is treated as workspace metadata, I don't
have an easy way to store the file in version control.

Is there a way to store servers.xml in an Eclipse project (in the
Servers project?) and store the file under version control?

Thanks in advance.
Re: Eclipse Webtools servers.xml file [message #233349 is a reply to message #233341] Tue, 07 July 2009 03:13 Go to previous messageGo to next message
Eclipse User
Originally posted by: dcarver.starstandard.org

If you look in your Workspace in the Project Explorer, you should see a
Servers project. You should be able to share that project as it
contains the server.xml file that is copied during deployment to the
location you mentioned in your .metadata hidden folder.

Dave

ssullivan wrote:
>
>
> I am using Eclipse 3.4.2 (Ganymede SR2) with Eclipse Webtools 3.0.4
>
> When I add a server (File --> New --> Server), the new server is added
> to the servers.xml file.
>
> The servers.xml file is located in
> $WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core
>
> Since the servers.xml file is treated as workspace metadata, I don't
> have an easy way to store the file in version control.
>
> Is there a way to store servers.xml in an Eclipse project (in the
> Servers project?) and store the file under version control?
>
> Thanks in advance.
>
Re: Eclipse Webtools servers.xml file [message #233376 is a reply to message #233341] Tue, 07 July 2009 13:44 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
ssullivan wrote:
>
>
> I am using Eclipse 3.4.2 (Ganymede SR2) with Eclipse Webtools 3.0.4
>
> When I add a server (File --> New --> Server), the new server is added
> to the servers.xml file.
>
> The servers.xml file is located in
> $WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core
>
> Since the servers.xml file is treated as workspace metadata, I don't
> have an easy way to store the file in version control.
>
> Is there a way to store servers.xml in an Eclipse project (in the
> Servers project?) and store the file under version control?
>
> Thanks in advance.
>

Right-click on the server in the Servers view and select Properties. In
the dialog that appears, click Switch Location. This will move the
definition of that server to a file under the Servers project in your
workspace.

Cheers,
Larry
Previous Topic:Ganamede, Galileo, and Tomcat 6
Next Topic:Internal error when launching XSLT
Goto Forum:
  


Current Time: Fri Oct 24 10:39:09 GMT 2014

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

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