Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » File paths in static web project (Can't get relative file paths working)
File paths in static web project [message #668247] Wed, 04 May 2011 12:05 Go to previous message
Al Roark is currently offline Al Roark
Messages: 2
Registered: May 2011
Junior Member
All:
I'm building my first web site and am using Eclipse + WTP to do so. One annoyance I have is that the only way I can view previews of my site (using the built-in Preview Server) while developing it is to use absolute file references to the resources on my local machine (e.g. D:\httpdocs\css\). This has become problematic because when I upload my files to the web server, all of the file references are invalid and I have to change them manually. I can't imagine this is how most people operate and am wondering how others get around this problem. Ideally, I'd like to use file paths during development that reflect the structure of my (DailyRazor's) web server. So, instead of coding links to css files using "D:\httpdocs\css" I'd like to have Eclipse recognize "/httpdocs/css". FYI: I'm using Helios on Windows 7.
Thanks Much!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Update Project Explorer with new contents of war file
Next Topic:IWAB0523E Error moving resource: ...... Could not read from source when writing file
Goto Forum:
  


Current Time: Thu May 23 11:24:24 EDT 2013

Powered by FUDForum. Page generated in 0.02292 seconds