Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Output directory for Javascript
Output directory for Javascript [message #816283] Thu, 08 March 2012 16:47 Go to next message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
I am new to Javascript development and am struggling to establish a nice workflow whereby I can edit Javascript code, hit refresh, and see the changes in my browser.

The wrinkle in my set up is that I am developing for a Java servlet based web-app that uses Maven. Currently, our team has Maven configured to run the servlet via Tomcat in an exploded WAR format. This is nice because with different commands I run against different databases and everything is automatically configured correctly.

I'd really like to get Eclipse to, whenever I make a changes to Javascript files, copy the files to the webapp directory within the running Tomcat instance that I have.

Is this possible?
Re: Output directory for Javascript [message #817189 is a reply to message #816283] Fri, 09 March 2012 19:20 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

On 3/8/2012 11:47 AM, David Vree wrote:
> I am new to Javascript development and am struggling to establish a nice
> workflow whereby I can edit Javascript code, hit refresh, and see the
> changes in my browser.
>
> The wrinkle in my set up is that I am developing for a Java servlet
> based web-app that uses Maven. Currently, our team has Maven configured
> to run the servlet via Tomcat in an exploded WAR format. This is nice
> because with different commands I run against different databases and
> everything is automatically configured correctly.
>
> I'd really like to get Eclipse to, whenever I make a changes to
> Javascript files, copy the files to the webapp directory within the
> running Tomcat instance that I have.
>
> Is this possible?

This would be automatic if you're using WTP's publishing support, but
additionally this doesn't sound like a problem specific to JavaScript
files. How do your other non-Servlet resources get published?

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Output directory for Javascript [message #817287 is a reply to message #817189] Fri, 09 March 2012 22:21 Go to previous messageGo to next message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
Nitin Dahyabhai wrote on Fri, 09 March 2012 14:20

This would be automatic if you're using WTP's publishing support, but
additionally this doesn't sound like a problem specific to JavaScript
files. How do your other non-Servlet resources get published?


You are correct that it's not just the Javascript, but I am 90% concerned with the Javascript, the other 10% is HTML and graphics, etc.

I guess, put another way my question really is: can WTP publish modified Javascript to an external (already running) Tomcat server if I give it the directory?
Re: Output directory for Javascript [automatically publishing to Tomcat] [message #819275 is a reply to message #817287] Mon, 12 March 2012 17:52 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

On 3/9/2012 5:21 PM, David Vree wrote:
> Nitin Dahyabhai wrote on Fri, 09 March 2012 14:20
>> This would be automatic if you're using WTP's publishing support, but
>> additionally this doesn't sound like a problem specific to JavaScript
>> files. How do your other non-Servlet resources get published?
>
> You are correct that it's not just the Javascript, but I am 90%
> concerned with the Javascript, the other 10% is HTML and graphics, etc.
>
> I guess, put another way my question really is: can WTP publish modified
> Javascript to an external (already running) Tomcat server if I give it
> the directory?
>
I think someone who works in or more regularly uses that area would have
to answer. Typically in involves letting WTP launch the server, but my
knowledge is far from complete about those things.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Output directory for Javascript [automatically publishing to Tomcat] [message #819566 is a reply to message #819275] Tue, 13 March 2012 03:48 Go to previous message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
I just found out about the Eclipse file system sync plugin which allows me to do what I want. More details here:

http://stackoverflow.com/questions/9493081/eclipse-is-it-possible-to-publish-javascript-edits-to-an-external-tomcat-instan#comment12281814_9493081
Previous Topic:I Still Need Help with my Web edtiors
Next Topic:Why are web editors read-only?
Goto Forum:
  


Current Time: Fri Mar 29 12:31:20 GMT 2024

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

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

Back to the top