PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

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