Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Is it possible to rename the folder 'VAADIN' inside 'webapps'?

Mahmood shaik
6 years ago Sep 24, 2016 5:01am
Enver Haase
6 years ago Sep 27, 2016 3:35pm

Hi Mahmood,

just don't do it.

Of course it can be done, and because Vaadin is all Open Source, yes it can be done.
./server/src/main/java/com/vaadin/server/Constants.java:136:    final String THEME_DIR_PATH = "VAADIN/themes";
./server/src/main/java/com/vaadin/server/Constants.java:140:    static final String WIDGETSET_DIR_PATH = "VAADIN/widgetsets";
are places where you'd go first but since Vaadin Framework has grown over many years and we don't live in a perfect world, there are other hard-coded places in the source code as well such as:
./server/src/main/java/com/vaadin/server/BootstrapHandler.java:538:                + "/VAADIN/";
./server/src/main/java/com/vaadin/server/BootstrapHandler.java:698:                + "/VAADIN/"

The name and location of the VAADIN folder is also a subject matter of many places of documentation,
./documentation/advanced/advanced-embedding.asciidoc:92:          src="[replaceable]#./#VAADIN/vaadinBootstrap.js"></script>
./documentation/advanced/advanced-embedding.asciidoc:243:          src="VAADIN/vaadinBootstrap.js"></script>

If you manage to change it everywhere and recompile the software yourself, then congratulations. It's quite some work,
and doesn't achieve that much in return.

In a nutshell, this is something we don't support - and it's not really worth it if you think about it.

Just be proud you're using state of the art web technology : ) :)  so there's nothing to hide when people find out!

Best Regards,