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.

115 lines
4.6 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_udpservermulti, create_run_jar_udptimecounterserver, create_run_jar_tcpperfserver, create_run_jar_rmiechoserver, create_run_jar_rmimandelbrotcalculationsserver, create_run_jar_tcptimecounterserver, create_run_jar_tcptimecounterrestserver">
  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_udpservermulti">
  39. <jar destfile="${dir.jarfile}/UDPServerMulti.jar" filesetmanifest="mergewithoutmain">
  40. <manifest>
  41. <attribute name="Main-Class" value="verteiltesysteme.socket.multithread.UDPServerMulti" />
  42. <attribute name="Class-Path" value="." />
  43. </manifest>
  44. <fileset dir="${dir.buildfile}/bin" />
  45. </jar>
  46. </target>
  47. <target name="create_run_jar_udptimecounterserver">
  48. <jar destfile="${dir.jarfile}/UDPTimeCounterServer.jar" filesetmanifest="mergewithoutmain">
  49. <manifest>
  50. <attribute name="Main-Class" value="verteiltesysteme.socket.timecounter.UDPTimeCounterServer" />
  51. <attribute name="Class-Path" value="." />
  52. </manifest>
  53. <fileset dir="${dir.buildfile}/bin" />
  54. </jar>
  55. </target>
  56. <target name="create_run_jar_tcpperfserver">
  57. <jar destfile="${dir.jarfile}/TCPPerfServer.jar" filesetmanifest="mergewithoutmain">
  58. <manifest>
  59. <attribute name="Main-Class" value="verteiltesysteme.socket.perf.TCPPerfServer" />
  60. <attribute name="Class-Path" value="." />
  61. </manifest>
  62. <fileset dir="${dir.buildfile}/bin" />
  63. </jar>
  64. </target>
  65. <target name="create_run_jar_rmiechoserver">
  66. <jar destfile="${dir.jarfile}/RMIEchoServer.jar" filesetmanifest="mergewithoutmain">
  67. <manifest>
  68. <attribute name="Main-Class" value="verteiltesysteme.rmi.RMIEchoServer" />
  69. <attribute name="Class-Path" value="." />
  70. </manifest>
  71. <fileset dir="${dir.buildfile}/bin" />
  72. </jar>
  73. </target>
  74. <target name="create_run_jar_rmimandelbrotcalculationsserver">
  75. <jar destfile="${dir.jarfile}/RMIMandelbrotCalculationsServer.jar" filesetmanifest="mergewithoutmain">
  76. <manifest>
  77. <attribute name="Main-Class" value="verteiltesysteme.mandelbrot.rmi.RMIMandelbrotCalculationsServer" />
  78. <attribute name="Class-Path" value="." />
  79. </manifest>
  80. <fileset dir="${dir.buildfile}/bin" />
  81. </jar>
  82. </target>
  83. <target name="create_run_jar_tcptimecounterserver">
  84. <jar destfile="${dir.jarfile}/TCPTimeCounterServer.jar" filesetmanifest="mergewithoutmain">
  85. <manifest>
  86. <attribute name="Main-Class" value="verteiltesysteme.aws.TCPTimeCounterServer" />
  87. </manifest>
  88. <fileset dir="${dir.buildfile}/bin" />
  89. <zipgroupfileset dir="${dir.buildfile}/lib-aws" includes="*.jar" />
  90. </jar>
  91. </target>
  92. <target name="create_run_jar_tcptimecounterrestserver">
  93. <jar destfile="${dir.jarfile}/TCPTimeCounterRESTServer.jar" filesetmanifest="mergewithoutmain">
  94. <manifest>
  95. <attribute name="Main-Class" value="verteiltesysteme.aws.TCPTimeCounterRESTServer" />
  96. </manifest>
  97. <fileset dir="${dir.buildfile}/bin" />
  98. <zipgroupfileset dir="${dir.buildfile}/lib-aws" includes="*.jar" />
  99. <zipgroupfileset dir="${dir.buildfile}/lib" includes="*.jar" />
  100. </jar>
  101. </target>
  102. </project>