You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

web.xml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.4"
  3. xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  5. <!-- The base folder is used to specify the root location of your Gitblit data.
  6. ${baseFolder}/gitblit.properties
  7. ${baseFolder}/users.conf
  8. ${baseFolder}/projects.conf
  9. ${baseFolder}/robots.txt
  10. ${baseFolder}/git
  11. ${baseFolder}/groovy
  12. ${baseFolder}/groovy/grape
  13. ${baseFolder}/proposals
  14. By default, this location is WEB-INF/data. It is recommended to set this
  15. path to a location outside your webapps folder that is writable by your
  16. servlet container. Gitblit will copy the WEB-INF/data files to that
  17. location for you when it restarts. This approach makes upgrading simpler.
  18. All you have to do is set this parameter for the new release and then
  19. review the defaults for any new settings. Settings are always versioned
  20. with a SINCE x.y.z attribute and also noted in the release changelog.
  21. -->
  22. <env-entry>
  23. <description>The base folder is used to specify the root location of your Gitblit data.</description>
  24. <env-entry-name>baseFolder</env-entry-name>
  25. <env-entry-type>java.lang.String</env-entry-type>
  26. <env-entry-value>${contextFolder}/WEB-INF/data</env-entry-value>
  27. </env-entry>
  28. <!-- Gitblit Displayname -->
  29. <display-name>Gitblit - @gb.version@</display-name>
  30. <listener>
  31. <listener-class>com.gitblit.servlet.GitblitContext</listener-class>
  32. </listener>
  33. <filter>
  34. <filter-name>guiceFilter</filter-name>
  35. <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
  36. </filter>
  37. <filter-mapping>
  38. <filter-name>guiceFilter</filter-name>
  39. <url-pattern>/*</url-pattern>
  40. </filter-mapping>
  41. </web-app>