Last commit for build.xml: df1734922a89ef34951ccb87733b35c0e5be878b

Bugfix so ED builds with latest Ant, Java

janak [2003-12-09 05:16:10]
Bugfix so ED builds with latest Ant, Java
  1. <project name="XUES" default="all">
  2. <!-- This is very, very weird. I can't figure out why I need three sets
  3. of dots... -->
  4. <property name="rootdir" value="{$basedir}/../../.." />
  5. <!-- Which jars does xues require? -->
  6. <patternset id="xues.jars">
  7. <include name="tools/siena-1.4.2/siena-1.4.2.jar" />
  8. <include name="tools/hsqldb-1.61/lib/hsqldb.jar" />
  9. <include name="tools/log4j-1.2.4/dist/lib/log4j-1.2.4.jar" />
  10. <!-- Only needed for Java 1.3.x, which we no longer support -->
  11. <!--<include name="tools/crimson-1.1.3/crimson.jar" />-->
  12. </patternset>
  13. <!-- Now build our classpath and tell Ant to ignore the environment
  14. classpath -->
  15. <path id="xues.classpath">
  16. <fileset dir="${rootdir}">
  17. <patternset refid="xues.jars" />
  18. </fileset>
  19. <pathelement path="${rootdir}" />
  20. </path>
  21. <property name="classpath" refid="xues.classpath"/>
  22. <property name="build.sysclasspath" value="ignore" />
  23. <!-- Target directory for built jars -->
  24. <property name="distdir" value="${basedir}/dist" />
  25. <property name="build.compiler" value="modern" />
  26. <property name="javac.debug" value="on" />
  27.  
  28. <target name="all" depends="ed, ep"/>
  29.  
  30. <target name="ed" depends="xues">
  31. <!-- XXX - Can't Java handle the dependencies? Did ant turn it off?
  32. If so, we should ultimately make these proper dependencies in ant. -->
  33. <javac debug="${javac.debug}" srcdir="${rootdir}/psl/kx"
  34. classpath="${classpath}" includes="KXNotification.java" />
  35. <javac debug="${javac.debug}" srcdir="${rootdir}/psl/events/siena/utils"
  36. classpath="${classpath}" />
  37.  
  38. <javac debug="${javac.debug}" srcdir="ed" classpath="${classpath}"
  39. excludes="acme/*" />
  40. </target>
  41.  
  42. <!-- ED with ACME Gauge Bus support - EXPERIMENTAL -->
  43. <target name="ed-acme" depends="xues">
  44. <javac debug="${javac.debug}" srcdir="ed" classpath="${classpath}" />
  45. <javac debug="${javac.debug}" srcdir="${rootdir}/psl/kx"
  46. classpath="${classpath}" includes="KXNotification.java" />
  47. </target>
  48.  
  49. <target name="ep" depends="xues">
  50. <javac debug="${javac.debug}" srcdir="ep" classpath="${classpath}" />
  51. </target>
  52.  
  53. <!-- Common XUES stuff -->
  54. <target name="xues">
  55. <!-- This is a little tricky: we need to compile one file separately -->
  56. <javac debug="${javac.debug}" srcdir="util" classpath="${classpath}"
  57. excludes="Siena13Utils.java" />
  58. <javac debug="${javac.debug}" srcdir="util" includes="Siena13Utils.java">
  59. <classpath>
  60. <pathelement location="${rootdir}/tools/siena-1.3.0/siena-1.3.0.jar" />
  61. <pathelement location="${rootdir}/tools/log4j-1.2.4/dist/lib/log4j-1.2.4.jar" />
  62. </classpath>
  63. </javac>
  64. </target>
  65.  
  66. <target name="ed-jar" depends="ed">
  67. <jar jarfile="${distdir}/EventDistiller.jar" basedir="${rootdir}/"
  68. includes="psl/kx/KXNotification*, psl/xues/ed/**, psl/xues/util/*"
  69. excludes="**/.nbattrs" />
  70. </target>
  71.  
  72. <target name="ep-jar" depends="ep">
  73. <jar jarfile="${distdir}/EventPackager.jar" basedir="${rootdir}/"
  74. includes="psl/xues/ep/**, psl/xues/util/*"
  75. excludes="**/.nbattrs" />
  76. </target>
  77.  
  78. <target name="xues-support-jar">
  79. <!-- The below complains - use filesetmanifest="skip" in 1.5.1 or later -->
  80. <jar jarfile="${distdir}/xues-support.jar" >
  81. <zipgroupfileset dir="${rootdir}">
  82. <patternset refid="xues.jars" />
  83. </zipgroupfileset>
  84. </jar>
  85. </target>
  86.  
  87. <target name="ed-docs" depends="ed">
  88. <javadoc sourcepath="${rootdir}" destdir="dist/ed-docs"
  89. packagenames="psl.xues.ed.*" access="public"
  90. classpath="${classpath}" />
  91. </target>
  92.  
  93. <target name="ep-docs" depends="ep">
  94. <javadoc sourcepath="${rootdir}" destdir="dist/ep-docs"
  95. packagenames="psl.xues.ep.*" access="public"
  96. classpath="${classpath}" />
  97. </target>
  98.  
  99. <target name="dist" depends="ed-dist, ep-dist" />
  100.  
  101. <target name="ed-dist" depends="ed-jar, xues-support-jar, ed-docs">
  102. <zip zipfile="dist/EventDistiller.zip">
  103. <zipfileset dir="${distdir}"
  104. includes="EventDistiller.jar, xues-support.jar" />
  105. <zipfileset dir="${basedir}"
  106. includes="LICENSE" />
  107. <zipfileset dir="${basedir}/ed/"
  108. includes="EventDistiller.html" />
  109. <zipfileset dir="${basedir}/ed/" prefix="samples/"
  110. includes="**/*.xml, **/*.xsd" />
  111. <zipfileset dir="${basedir}/dist/ed-docs/" prefix="docs/"
  112. includes="**/*.html" />
  113. </zip>
  114. </target>
  115.  
  116. <target name="ep-dist" depends="ep-jar, xues-support-jar, ep-docs">
  117. <zip zipfile="dist/EventPackager.zip">
  118. <zipfileset dir="${distdir}"
  119. includes="EventPackager.jar, xues-support.jar" />
  120. <zipfileset dir="${basedir}"
  121. includes="LICENSE" />
  122. <zipfileset dir="${basedir}/ep/"
  123. includes="EventPackager.html" />
  124. <zipfileset dir="${basedir}/ep/examples/" prefix="examples/"
  125. includes="**/*.xml, **/*.xsd, **/*.java" />
  126. <zipfileset dir="${basedir}/dist/ep-docs/" prefix="javadoc/"
  127. includes="**/*.html" />
  128. </zip>
  129. </target>
  130.  
  131. <target name="clean">
  132. <delete>
  133. <fileset dir="dist" includes="*.jar, *.zip" casesensitive="false" />
  134. <fileset dir="." includes="**/*.class, **/*~, **/#*#, **/.#*, **/%*%"
  135. casesensitive="false" defaultexcludes="no" />
  136. </delete>
  137. <delete dir="dist/ed-docs" includeEmptyDirs="true" />
  138. <delete dir="dist/ep-docs" includeEmptyDirs="true" />
  139. <delete dir="dist/ed-classes" includeEmptyDirs="true" />
  140. <delete dir="dist/ep-classes" includeEmptyDirs="true" />
  141. </target>
  142. </project>