maven.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!--
  2. * ========================================================================
  3. *
  4. * Copyright 2004 Acegi Technology Pty Limited
  5. *
  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. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * ========================================================================
  19. -->
  20. <project
  21. xmlns:j="jelly:core"
  22. xmlns:ant="jelly:ant"
  23. xmlns:util="jelly:util"
  24. xmlns:maven="jelly:maven"
  25. >
  26. <!-- =========== Set root dir =========== -->
  27. <j:set var="rootdir">${basedir}</j:set>
  28. <j:while test="${true}">
  29. <util:available file="${rootdir}/core/project.xml">
  30. <j:break/>
  31. </util:available>
  32. <j:set var="rootdir">${rootdir}/..</j:set>
  33. </j:while>
  34. <ant:dirname property="rootdirname" file="${rootdir}/project.xml"/>
  35. <j:set var="rootdir">${rootdirname}</j:set>
  36. <echo>Using root dir: ${rootdir}</echo>
  37. <!--
  38. |
  39. | Override the default clover-setup task from the clover plugin
  40. |
  41. -->
  42. <postGoal name="clover:on">
  43. <ant:clover-setup
  44. initstring="${basedir}/target/clover/database/clover_coverage.db"
  45. flushpolicy="interval"
  46. flushinterval="500">
  47. <ant:fileset dir="${maven.src.dir}">
  48. <exclude name="**/*Exception.java"/>
  49. </ant:fileset>
  50. <!-- <statementContext id="nolog" regexp="^if \(logger.*\).*}"/>
  51. <statementContext id="nojbosslog" regexp="^if \(super.logger.*\).*}"/>
  52. -->
  53. </ant:clover-setup>
  54. </postGoal>
  55. </project>