PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/asl/asl-common.xml

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
XML | 84 lines | 33 code | 10 blank | 41 comment | 0 complexity | 41308fa3a5385ab7024053c3e7f4fc01 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ********************************************************************************
  4. * Ant Script Library - common targets module
  5. * Contains properties and targets
  6. * Module property prefix: "common"
  7. ********************************************************************************
  8. * Copyright 2009 Joe Schmetzer
  9. *
  10. * Licensed under the Apache License, Version 2.0 (the "License");
  11. * you may not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. ********************************************************************************
  22. -->
  23. <project name="asl-common">
  24. <dirname property="asl-common.basedir" file="${ant.file.asl-common}"/>
  25. <!-- User specific property overrides -->
  26. <property file="${user.home}/asl.properties"/>
  27. <!-- Project specific property overrides -->
  28. <property file="asl.properties"/>
  29. <!-- ***********************************************************************
  30. * Common properties.
  31. ************************************************************************ -->
  32. <property name="common.target-dir" location="target"/>
  33. <property name="common.dist-dir" location="${common.target-dir}/dist"/>
  34. <!-- ***********************************************************************
  35. * target: clean
  36. ************************************************************************ -->
  37. <target name="clean" description="Deletes files generated by the build">
  38. <delete dir="${common.target-dir}"/>
  39. </target>
  40. <!-- ***********************************************************************
  41. * target: -init-time
  42. ************************************************************************ -->
  43. <target name="-init-time">
  44. <!-- Initialise standard time and date properties (including DSTAMP and TSTAMP) -->
  45. <tstamp>
  46. <format property="common.timestamp" pattern="yyyy-MM-dd HH:mm"/>
  47. <format property="common.timestamp-long" pattern="d-MMMM-yyyy HH:mm"/>
  48. <format property="common.date-iso" pattern="yyyyMMdd"/>
  49. <format property="common.year" pattern="yyyy"/>
  50. </tstamp>
  51. </target>
  52. <!-- ***********************************************************************
  53. * target: -init-version
  54. * This is an empty target that allows users to override how the property
  55. * ${release.version} is set.
  56. ************************************************************************ -->
  57. <target name="-init-version"/>
  58. <!-- ***********************************************************************
  59. * macrodef: asl-check-libs
  60. ************************************************************************ -->
  61. <macrodef name="asl-check-libs"
  62. description="Checks to see if the libraries for an optional task are available">
  63. <attribute name="libname"/>
  64. <attribute name="jar"/>
  65. <sequential>
  66. <available file="@{jar}" property="asl-common.@{libname}-jar-present"/>
  67. <fail unless="asl-common.@{libname}-jar-present">Unable to intialise @{libname} task.
  68. The jar file "@{jar}"
  69. is missing. To install this jar, run the following command:
  70. ant -f ${java-report.basedir}/asl-tasklib-install.xml install-@{libname}
  71. </fail>
  72. </sequential>
  73. </macrodef>
  74. </project>