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.

build.xml 2.0 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <project name="embed" default="main" basedir=".">
  2. <property file="${user.home}/build.properties" />
  3. <property name="base.path" location="/usr/share/java"/>
  4. <property name="ant.src" location="../.."/>
  5. <property name="commons.src" location="${ant.src}/../jakarta-commons"/>
  6. <property name="sandbox.src" location="${ant.src}/../jakarta-commons-sandbox"/>
  7. <property name="embed.build" location="build"/>
  8. <property name="debug" value="true"/>
  9. <!-- Those 2 should be moved to JXPath and velocity. -->
  10. <property name="commons-logging.jar" location="${commons.src}/logging/dist/commons-logging.jar" />
  11. <property name="jxpath.jar" location="${commons.src}/jxpath/dist/commons-jxpath.jar" />
  12. <property name="velocity.jar" location="${base.path}/velocity/velocity-20020220.jar" />
  13. <property name="velocity-dep.jar" location="${base.path}/velocity/velocity-dep-20020220.jar" />
  14. <property name="discovery.jar" location="${commons.src}/discovery/dist/commons-discovery.jar" />
  15. <property name="jexl.jar" location="${sandbox.src}/jexl/dist/commons-jexl.jar" />
  16. <property name="commons-discovery.jar" location="${commons.src}/discovery/commons-discovery.jar" />
  17. <target name="main">
  18. <mkdir dir="build/classes" />
  19. <javac srcdir="src/java"
  20. debug="${debug}"
  21. destdir="${embed.build}/classes" >
  22. <include name="**" />
  23. <classpath>
  24. <!-- all this will move to their package -->
  25. <pathelement location="${jxpath.jar}" />
  26. <pathelement location="${velocity.jar}" />
  27. <pathelement location="${jexl.jar}" />
  28. <pathelement location="${discovery.jar}" />
  29. </classpath>
  30. </javac>
  31. <copy toDir="${embed.build}/classes">
  32. <fileset dir="src/java" includes="META-INF/**" />
  33. </copy>
  34. <jar file="${embed.build}/ant-sax2.jar" basedir="${embed.build}/classes" >
  35. <include name="**" />
  36. </jar>
  37. <copy file="${embed.build}/ant-sax2.jar" toDir="${ant.home}/lib"/>
  38. </target>
  39. </project>