PageRenderTime 6ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/archetypes/scalate-archetype-guice/src/main/resources/META-INF/maven/archetype-metadata.xml

http://github.com/scalate/scalate
XML | 100 lines | 65 code | 8 blank | 27 comment | 0 complexity | 66d3e002b26c1eec3eaf6b5469878e75 MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2009-2011 the original author or authors.
  4. See the notice.md file distributed with this work for additional
  5. information regarding copyright ownership.
  6. Licensed under the Apache License, Version 2.0 (the "License");
  7. you may not use this file except in compliance with the License.
  8. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <archetype-descriptor name="scalate-archetype-guice">
  17. <fileSets>
  18. <!-- place resources -->
  19. <fileSet encoding="UTF-8" filtered="true" packaged="false">
  20. <directory>src/main/resources</directory>
  21. <includes>
  22. <include>**/*</include>
  23. </includes>
  24. <excludes>
  25. <exclude>*.xml</exclude>
  26. </excludes>
  27. </fileSet>
  28. <fileSet encoding="UTF-8" filtered="false" packaged="false">
  29. <directory>src/main/resources</directory>
  30. <includes>
  31. <include>*.xml</include>
  32. </includes>
  33. </fileSet>
  34. <!-- place test sources -->
  35. <fileSet encoding="UTF-8" filtered="true" packaged="true">
  36. <directory>src/test/scala</directory>
  37. <includes>
  38. <include>*.scala</include>
  39. <include>**/*.scala</include>
  40. </includes>
  41. </fileSet>
  42. <!-- sbt build -->
  43. <fileSet encoding="UTF-8" filtered="true" packaged="false">
  44. <directory>project</directory>
  45. <includes>
  46. <include>**/*</include>
  47. </includes>
  48. </fileSet>
  49. <!-- place main sources -->
  50. <fileSet encoding="UTF-8" filtered="true" packaged="true">
  51. <directory>src/main/scala</directory>
  52. <includes>
  53. <include>*.scala</include>
  54. <include>**/*.scala</include>
  55. </includes>
  56. </fileSet>
  57. <!-- place templates -->
  58. <!-- we need to filter the web.xml to add the package -->
  59. <fileSet encoding="UTF-8" filtered="true" packaged="false">
  60. <directory>src/main/webapp</directory>
  61. <includes>
  62. <include>WEB-INF/web.xml</include>
  63. </includes>
  64. </fileSet>
  65. <!-- the WEB-INF/resources need to be put into the package -->
  66. <fileSet encoding="UTF-8" filtered="false" packaged="true">
  67. <directory>src/main/webapp/WEB-INF</directory>
  68. <includes>
  69. <include>resources</include>
  70. <include>resources/*</include>
  71. </includes>
  72. </fileSet>
  73. <!-- everything else lets not package or filter to avoid borking images -->
  74. <fileSet encoding="UTF-8" filtered="false" packaged="false">
  75. <directory>src/main/webapp</directory>
  76. <includes>
  77. <include>**/*</include>
  78. </includes>
  79. <excludes>
  80. <exclude>WEB-INF/resources</exclude>
  81. <exclude>WEB-INF/resources/**</exclude>
  82. <exclude>WEB-INF/resources/**/*</exclude>
  83. <exclude>WEB-INF/web.xml</exclude>
  84. </excludes>
  85. </fileSet>
  86. </fileSets>
  87. </archetype-descriptor>