Changes between Version 372 and Version 373 of WikiStart
- Timestamp:
- 01/26/21 14:45:24 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v372 v373 865 865 866 866 = Stand-alone Running = 867 For stand-alone running you need to have the following available in your project space (this includes the maven dependencies you have set for your project) 868 * The parties you want to run (in compiled form) must be in your classpath 867 For stand-alone running you need to 868 * download the stand-alone runner, eg download from [http://artifactory.ewi.tudelft.nl/artifactory/libs-release/geniusweb/simplerunner/ geniusweb artifactory] select latest version simplerunner-<latestversion>-jar-with-dependencies.jar. Easiest is to clone the project with {{{svn co https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWeb/simplerunner}}} 869 * The parties you want to run (in compiled form) must be in your classpath. Typically by adding them to the pom of the stand-alone runner. 869 870 * The profiles you want to provide to the parties (alternatively you can refer to a profile on a running profile server) 870 871 * A settings.json file containing the [source:/protocol/src/main/java/geniusweb/protocol/session SessionSettings] eg SAOP Settings. [source:/simplerunner/src/test/resources/settings.json view example file]. 871 * a simple stand-alone runner, eg download from [http://artifactory.ewi.tudelft.nl/artifactory/libs-release/geniusweb/simplerunner/ geniusweb artifactory] select latest version simplerunner-<latestversion>-jar-with-dependencies.jar.872 872 873 873 A complete example is available of [source:/simplerunner simplerunner here] … … 876 876 877 877 == Running == 878 Make sure your parties are in the java classpath. 879 880 A stand-alone runner can now be started as follows (using the example, set your working directory to the root of the simplerunner project ) 878 879 880 A stand-alone runner can now be started as follows 881 882 run {{{geniusweb.simplerunner.NegoRunner}}} in Eclipse 883 with {{{src/test/resources/settings.json}}} as argument. 884 885 or from the command line which is a bit more complicated: 881 886 {{{ 882 887 java -jar simplerunner...with-dependencies.jar src/test/resources/settings.json … … 909 914 == Debugging with stand-alone runner 910 915 * Using a stand-alone runner (normal Eclipse for Java developers, no EE needed) 911 * Have your party's source code in the Eclipse workspace 912 * Clone the simplerunner into your workspace {{{svn co https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWeb/simplerunner}}} 913 * Edit the src/test/resource/settings.json file in the simplerunner to match your party 916 * Set up a stand-alone run as described in #Stand-aloneRunning 914 917 * Place a breakpoint in your party where you want to debug. 915 * Create a debug configuration for NegoRunner with some customized settings:916 * Add <dependency> for party to the standalone pom. Something like917 {{{918 <dependency>919 <groupId>collabai.team3</groupId>920 <artifactId>teamXXXparty</artifactId>921 <version>X.Y.Z</version> <!--Fill in correct version -->922 </dependency>923 924 }}}925 * Set {{{src/test/resources/settings.json}}} as program argument926 918 * Run the debug configuration 927 919 * Eclipse will halt server execution and switch to debugging when it hits your breakpoint