Main repository for the WebDSL domain-specific language for web applications.
Either follow the installation instructions, or build from source. See also how to get WebDSL in Eclipse.
brew install wget autoconf automake maven ant nailgun
On modern macOS, the bundled 32-bit Stratego tools require Python 3 and a
running Docker installation with support for linux/386 containers. The first
build creates a local Docker image and downloads its base image and packages.
The build script looks for an ecj script on the path to replace javac.
You can download the ECJ jar from
https://mvnrepository.com/artifact/org.eclipse.jdt.core.compiler/ecj/4.6.1
Then create an ecj file and put it on your path:
#!/bin/sh -e
ECJJAR=ecj-4.6.1.jar
java -Xmx1g -Xms100m -server -XX:+UseParallelGC -cp $ECJJAR org.eclipse.jdt.internal.compiler.batch.Main "$@"
Verify it:
which ecj
Note: If you get a
GC overhead limit exceedederror when runningecjormake, increase the amount of heap memory-Xmxin theecjscript.
Invoke the following commands from the root of the repository:
./bootstrap
./configure --prefix=/usr/local
make
make install
You can check the current version of your WebDSL installation:
webdsl version
It will report the hash of the commit from which WebDSL was built.
Maven dependencies are refreshed in separate target/dependency directories
when their POMs change. Bundled JARs live in bundled and bundled-test, and
the build assembles both sets into generated/lib and generated/lib-test.
WebDSL's generated JARs are added to the assembled libraries.
When an installation or application library directory contains JARs absent
from its current inputs, WebDSL lists them and asks whether to remove them.
The first build also asks about JARs left in the former source library
directories; those files are no longer used by the build.
Application JARs supplied by the project's lib directories are preserved.
Answer n to keep the listed files and continue, or y to remove them. With
no response, the listed files are removed after 15 seconds, including in
unattended builds. This also applies to unrecognized JARs in existing
installations and .servletapp/WEB-INF/lib.
Note: If you get this error when invoking
make:Making all in src make[1]: *** No rule to make target `libwebdsl-front.rtree', needed by `src-gen/org/webdsl/webdsl_generator/Main.java'. Stop. make: *** [all-recursive] Error 1Clean the temporary files from the repository, e.g.:
git clean -fXdThen reissue the commands for building WebDSL.
Example application: https://github.com/webdsl/elib-example
- Download latest WebDSL compiler jar: https://buildfarm.metaborg.org/job/webdsl-compiler/lastSuccessfulBuild/artifact/webdsl.zip
- Extract the zip file.
- Add the webdsl/bin directory to your path, or use the full path, and run in the project directory:
webdsl run elib-example
- Get an Eclipse with latest WebDSL pluging pre-installed at http://buildfarm.metaborg.org/view/WebDSL/job/webdsl-eclipsegen/lastSuccessfulBuild/artifact/dist/eclipse/ or use updatesite http://update.webdsl.org/update to install plugin.
- Import the project into your Eclipse workspace.
- Right-click the project and select 'Convert to a WebDSL Project', click 'Finish' to use default settings.
- Build the project with ctrl+alt+b or cmd+alt+b, this will also deploy and run the application on Tomcat.
- Open the 'Servers' view to manage the Tomcat instance.
There is a separate Eclipse updatesite for getting the webdsl editor with dark mode friendly colors:
https://update.webdsl.org/update-dark
Additionally, install the DarkestDark theme plugin from eclipse marketplace.
Due to a restriction in the current editor framework this cannot be switched dynamically.