This note illustrates how to setup JetBrains IntelliJ IDEA for JOSM development.
- Get the source
- Add project from existing source
- Project Settings / Project:
git checkout --orphan new-framework | |
# completely rewrite your application in new framework | |
git merge --strategy=ours --allow-unrelated-histories master | |
git commit-tree -p HEAD^2 -p HEAD^1 -m "Merge branch 'new-framework'" "HEAD^{tree}" | |
git reset --hard $OUTPUT_FROM_PREVIOUS_COMMAND | |
git checkout master | |
git merge --ff-only new-framework |
--- | |
navbar: | |
homepage: 'Navigate to the homepage' | |
user: 'Logged in as {{user}}' | |
load: 'Load {{smart_count}} item |||| Load {{smart_count}} items' |
dist/ | |
node_modules/ |
This note illustrates how to setup JetBrains IntelliJ IDEA for JOSM development.
package root; | |
import root.resources.HelloResource; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.servlet.ServletContextHandler; | |
import org.eclipse.jetty.servlet.ServletHolder; | |
import org.glassfish.jersey.server.ResourceConfig; | |
import org.glassfish.jersey.servlet.ServletContainer; | |
public class Application { |
The goal is to server Swagger UI via http://localhost:8080/swagger-ui/
Add Maven/Gradle dependency org.webjars:swagger-ui
– https://search.maven.org/artifact/org.webjars/swagger-ui/3.26.1/jar
Configure the Jetty DefaultServlet
:
package at.tbbm.manual_input;
import org.eclipse.jetty.server.Server;
> neofetch
.',;::::;,'. simon@simon-ssd
.';:cccccccccccc:;,. ---------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 39 (Workstation Edition) x86_64
.:cccccccccccccccccccccccccc:. Kernel: 6.5.11-300.fc39.x86_64
.;ccccccccccccc;.:dddl:.;ccccccc;. Uptime: 10 days, 9 hours, 40 mins
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Packages: 2938 (rpm)
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:. Shell: fish 3.6.1
,cccccccccccccc;MMM.;cc;;WW::cccccccc, Terminal: /dev/pts/0
var i18nMessages = {}; | |
["en", "de", "it"].forEach(function (lang) { | |
jQuery.ajax({ | |
url: "./i18n/" + lang + ".json", | |
dataType: 'json', | |
async: false, | |
success: function (data) { | |
i18nMessages[lang] = data; | |
} | |
}) |
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data |
Using the URI copy constructor on an URI where the userinfo part contains a percent-escaped colon (U+003A as %3A
) produces a different result.