DEWD: Groovy Implementation on Windows

An Implementation of DEWD in Groovy for Windows.

STEP 1: Install Groovy

First you will need to get , be sure your installation path is C:\Groovy\

STEP 2: Download DEWD Groovy Scripts

Download each of the files below and copy them into the C:\Groovy\Scripts directory. (you may need to create the Scripts directory)

STEP 3: Register the DEWD Protocol in Windows

Download and run DEWDProtocol.reg - this is the DEWD registry entry that will register the dewd:\\ protocol in Windows so clicking a DEWD URI sends the request to the DEWDClient.groovy script for processing.

STEP 4: Create TMP Directory

Create the directory C:\tmp if it does not already exist.

STEP 5: Run DEWD Server

The DEWD server must be running to listen for file changes and upload the changes back to the server. To start the server go to the Windows command prompt, and run this command: (you may want to create a shortcut to this file)


You should see this response:

groovy is listening on port 4544

STEP 5: Define Application Mapping

This is optional - but by default the DEWD Client will open all files for editing with notepad. To change the mapping open the script at c:\groovy\scripts\DEWDClient.groovy in a text editor and look for this code:

def extensionMap = [

To change the editor for htm and html file types to (a great free editor) modify the code to look like this:

def extensionMap = [
'htm':'C:\\Program Files\\Intype\\intype.exe',
'html':'C:\\Program Files\\Intype\\intype.exe',

STEP 6: Test!

To test, click here.

This should open a simple html file in the application you have mapped to the htm file type in step 5 above. Any changes you make will be posted to http://localhost/dewd.php, so you can monitor file saves on your own dev environment.

More: Integrating DEWD into your web-based application