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

antlib.xml 2.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0"?>
  2. <!--
  3. ==============================================================================
  4. Ant build file
  5. Authors:
  6. Peter Donald <peter@apache.org>
  7. Legal:
  8. Copyright (c) 2000 The Apache Software Foundation. All Rights Reserved.
  9. ==============================================================================
  10. -->
  11. <project default="main" basedir=".">
  12. <property name="build.dir" value="build"/>
  13. <property name="build.lib" value="${build.dir}/lib"/>
  14. <property name="build.custom-tasks" value="${build.dir}/tasks"/>
  15. <property name="src.base" value="src"/>
  16. <property name="java.dir" value="${src.base}/java"/>
  17. <property name="lib.dir" value="lib"/>
  18. <!-- directory where you place generated code -->
  19. <property name="gen.dir" value="${build.dir}/gen"/>
  20. <property name="antlib.name" value="NONAME"/>
  21. <property name="antlib.descriptor" value="${antlib.name}-ant-descriptor.xml"/>
  22. <property name="antlib.role.descriptor" value="${antlib.name}-ant-roles.xml"/>
  23. <path id="project.class.path">
  24. <pathelement path="${java.class.path}" />
  25. <fileset dir="${lib.dir}">
  26. <include name="*.jar" />
  27. </fileset>
  28. <pathelement path="${build.classes}" />
  29. <pathelement path="${build.custom-tasks}" />
  30. </path>
  31. <!-- Main target -->
  32. <target name="main" depends="antlib-jar" />
  33. <!-- Define the pattern which specifies file to include/exclude
  34. in this antlib. -->
  35. <target name="antlib-definition">
  36. <patternset id="antlib.include">
  37. <include name="org/apache/antlib/${antlib.name}/**"/>
  38. </patternset>
  39. </target>
  40. <!-- runs xdoclet if need be -->
  41. <target name="antlib-descriptors"
  42. depends="antlib-definition"
  43. unless="antlib-descriptors.omit">
  44. <antlib-descriptor libName="${antlib.name}"
  45. destdir="${gen.dir}"
  46. classpathref="project.class.path">
  47. <fileset dir="${java.dir}">
  48. <patternset refid="antlib.include"/>
  49. </fileset>
  50. <!-- antdoc docsDestDir="${gen.dir}/docs"/-->
  51. </antlib-descriptor>
  52. </target>
  53. <!-- Generate an "atl" jar file for this antlib. -->
  54. <target name="antlib-jar" depends="antlib-descriptors">
  55. <antlib-jar jarfile="${build.lib}/${antlib.name}.atl"
  56. descriptor="${gen.dir}/${antlib.descriptor}"
  57. rolesDescriptor="${gen.dir}/${antlib.role.descriptor}">
  58. <fileset dir="${build.classes}">
  59. <patternset refid="antlib.include"/>
  60. </fileset>
  61. </antlib-jar>
  62. </target>
  63. </project>