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

63 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <project default="all" name="Create Runnable Jar for Servers in Project VerteilteSysteme-Examples">
  3. <!--this file was created by Eclipse Runnable JAR Export Wizard-->
  4. <!--ANT 1.7 is required -->
  5. <!--define folder properties-->
  6. <property name="dir.buildfile" value=".." />
  7. <property name="dir.workspace" value=".." />
  8. <property name="dir.jarfile" value="." />
  9. <target name="all" depends="create_run_jar_tcpserver, create_run_jar_udpserver, create_run_jar_tcpservermulti, create_run_jar_udptimecounterserver, create_run_jar_tcpperfserver">
  10. </target>
  11. <target name="create_run_jar_tcpserver">
  12. <jar destfile="${dir.jarfile}/TCPServer.jar" filesetmanifest="mergewithoutmain">
  13. <manifest>
  14. <attribute name="Main-Class" value="verteiltesysteme.socket.simple.TCPServer" />
  15. <attribute name="Class-Path" value="." />
  16. </manifest>
  17. <fileset dir="${dir.buildfile}/bin" />
  18. </jar>
  19. </target>
  20. <target name="create_run_jar_udpserver">
  21. <jar destfile="${dir.jarfile}/UDPServer.jar" filesetmanifest="mergewithoutmain">
  22. <manifest>
  23. <attribute name="Main-Class" value="verteiltesysteme.socket.simple.UDPServer" />
  24. <attribute name="Class-Path" value="." />
  25. </manifest>
  26. <fileset dir="${dir.buildfile}/bin" />
  27. </jar>
  28. </target>
  29. <target name="create_run_jar_tcpservermulti">
  30. <jar destfile="${dir.jarfile}/TCPServerMulti.jar" filesetmanifest="mergewithoutmain">
  31. <manifest>
  32. <attribute name="Main-Class" value="verteiltesysteme.socket.multithread.TCPServerMulti" />
  33. <attribute name="Class-Path" value="." />
  34. </manifest>
  35. <fileset dir="${dir.buildfile}/bin" />
  36. </jar>
  37. </target>
  38. <target name="create_run_jar_udptimecounterserver">
  39. <jar destfile="${dir.jarfile}/UDPTimeCounterServer.jar" filesetmanifest="mergewithoutmain">
  40. <manifest>
  41. <attribute name="Main-Class" value="verteiltesysteme.socket.timecounter.UDPTimeCounterServer" />
  42. <attribute name="Class-Path" value="." />
  43. </manifest>
  44. <fileset dir="${dir.buildfile}/bin" />
  45. </jar>
  46. </target>
  47. <target name="create_run_jar_tcpperfserver">
  48. <jar destfile="${dir.jarfile}/TCPPerfServer.jar" filesetmanifest="mergewithoutmain">
  49. <manifest>
  50. <attribute name="Main-Class" value="verteiltesysteme.socket.perf.TCPPerfServer" />
  51. <attribute name="Class-Path" value="." />
  52. </manifest>
  53. <fileset dir="${dir.buildfile}/bin" />
  54. </jar>
  55. </target>
  56. </project>