Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="module_authserver" default="compile.module.authserver">
  3. <dirname property="module.authserver.basedir" file="${ant.file.module_authserver}"/>
  4.  
  5. <property name="module.jdk.home.authserver" value="${project.jdk.home}"/>
  6. <property name="module.jdk.bin.authserver" value="${project.jdk.bin}"/>
  7. <property name="module.jdk.classpath.authserver" value="${project.jdk.classpath}"/>
  8.  
  9. <property name="compiler.args.authserver" value="-encoding windows-1251 -source 8 ${compiler.args}"/>
  10.  
  11. <property name="authserver.output.dir" value="${module.authserver.basedir}/../../out/production/authserver"/>
  12. <property name="authserver.testoutput.dir" value="${module.authserver.basedir}/../../out/test/authserver"/>
  13.  
  14. <path id="authserver.module.bootclasspath">
  15. <!-- Paths to be included in compilation bootclasspath -->
  16. </path>
  17.  
  18. <path id="authserver.module.production.classpath">
  19. <path refid="${module.jdk.classpath.authserver}"/>
  20. <path refid="library.lib.classpath"/>
  21. <pathelement location="${commons.output.dir}"/>
  22. </path>
  23.  
  24. <path id="authserver.runtime.production.module.classpath">
  25. <pathelement location="${authserver.output.dir}"/>
  26. <path refid="library.lib.classpath"/>
  27. <path refid="commons.runtime.production.module.classpath"/>
  28. </path>
  29.  
  30. <path id="authserver.module.classpath">
  31. <path refid="${module.jdk.classpath.authserver}"/>
  32. <pathelement location="${authserver.output.dir}"/>
  33. <path refid="library.lib.classpath"/>
  34. <pathelement location="${commons.testoutput.dir}"/>
  35. <pathelement location="${commons.output.dir}"/>
  36. </path>
  37.  
  38. <path id="authserver.runtime.module.classpath">
  39. <pathelement location="${authserver.testoutput.dir}"/>
  40. <pathelement location="${authserver.output.dir}"/>
  41. <path refid="library.lib.classpath"/>
  42. <path refid="commons.runtime.module.classpath"/>
  43. </path>
  44.  
  45.  
  46. <patternset id="excluded.from.module.authserver">
  47. <patternset refid="ignored.files"/>
  48. </patternset>
  49.  
  50. <patternset id="excluded.from.compilation.authserver">
  51. <patternset refid="excluded.from.module.authserver"/>
  52. </patternset>
  53.  
  54. <path id="authserver.module.sourcepath">
  55. <dirset dir="${module.authserver.basedir}">
  56. <include name="src"/>
  57. </dirset>
  58. </path>
  59.  
  60.  
  61. <target name="compile.module.authserver" depends="compile.module.authserver.production,compile.module.authserver.tests" description="Compile module authserver"/>
  62.  
  63. <target name="compile.module.authserver.production" depends="compile.module.commons" description="Compile module authserver; production classes">
  64. <mkdir dir="${authserver.output.dir}"/>
  65. <javac destdir="${authserver.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.authserver}/javac">
  66. <compilerarg line="${compiler.args.authserver}"/>
  67. <bootclasspath refid="authserver.module.bootclasspath"/>
  68. <classpath refid="authserver.module.production.classpath"/>
  69. <src refid="authserver.module.sourcepath"/>
  70. <patternset refid="excluded.from.compilation.authserver"/>
  71. </javac>
  72.  
  73. <copy todir="${authserver.output.dir}">
  74. <fileset dir="${module.authserver.basedir}/src">
  75. <patternset refid="compiler.resources"/>
  76. <type type="file"/>
  77. </fileset>
  78. </copy>
  79. </target>
  80.  
  81. <target name="compile.module.authserver.tests" depends="compile.module.authserver.production" description="compile module authserver; test classes" unless="skip.tests"/>
  82.  
  83. <target name="clean.module.authserver" description="cleanup module">
  84. <delete dir="${authserver.output.dir}"/>
  85. <delete dir="${authserver.testoutput.dir}"/>
  86. </target>
  87. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement