Changes between Version 372 and Version 373 of WikiStart


Ignore:
Timestamp:
01/26/21 14:45:24 (3 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v372 v373  
    865865
    866866= 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
     867For 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.
    869870* The profiles you want to provide to the parties (alternatively you can refer to a profile on a running profile server)
    870871* 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.
    872872
    873873A complete example is available of [source:/simplerunner simplerunner here]
     
    876876
    877877== 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
     880A stand-alone runner can now be started as follows
     881
     882run {{{geniusweb.simplerunner.NegoRunner}}}  in  Eclipse
     883with {{{src/test/resources/settings.json}}} as argument.
     884
     885or from the command line which is a bit more complicated:
    881886{{{
    882887java -jar simplerunner...with-dependencies.jar src/test/resources/settings.json
     
    909914== Debugging with stand-alone runner
    910915 * 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
    914917 * 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 like
    917     {{{
    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 argument
    926918 * Run the debug configuration
    927919 * Eclipse will halt server execution and switch to debugging when it hits your breakpoint