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 1.9 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="jexl.jar" location="${sandbox.src}/jexl/dist/commons-jexl.jar" />
  15. <property name="commons-discovery.jar" location="${commons.src}/discovery/dist/commons-discovery.jar" />
  16. <target name="main">
  17. <mkdir dir="build/classes" />
  18. <javac srcdir="src/java"
  19. debug="${debug}"
  20. destdir="${embed.build}/classes" >
  21. <include name="**" />
  22. <classpath>
  23. <!-- all this will move to their package -->
  24. <pathelement location="${jxpath.jar}" />
  25. <pathelement location="${velocity.jar}" />
  26. <pathelement location="${jexl.jar}" />
  27. <pathelement location="${commons-discovery.jar}" />
  28. </classpath>
  29. </javac>
  30. <copy toDir="${embed.build}/classes">
  31. <fileset dir="src/java" includes="META-INF/**" />
  32. </copy>
  33. <jar file="${embed.build}/ant-sax2.jar" basedir="${embed.build}/classes" >
  34. <include name="**" />
  35. </jar>
  36. <copy file="${embed.build}/ant-sax2.jar" toDir="${ant.home}/lib"/>
  37. </target>
  38. </project>