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

I want to rename the folder ‘VAADIN’ inside the vaadin webapps folder.
When a vaadin application user rightclick the page and view page-source there it shows this folder name.

How can i rename that folder name to something else?

Thanks
Mahmood

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,
like
./documentation/advanced/advanced-embedding.asciidoc:92: src=“[replaceable]
#./#VAADIN/vaadinBootstrap.js”>
./documentation/advanced/advanced-embedding.asciidoc:243: src=“VAADIN/vaadinBootstrap.js”>

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 : ) :slight_smile: so there’s nothing to hide when people find out!

Best Regards,
Enver