Creating build environment for Repast Simphony step by step

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating build environment for Repast Simphony step by step

Oskar Jan Jarczyk
Dear Repast developers,

I'm using RS in my simulations for already many years, but I'm having hard times understanding how to build the Repast Simphony framework by myself. I wish to make some changes to the `Remote batch run` functionality (e.g. name of the remote directory, disable obligatory mkdir for this name, upload to directory other than the user's home directory etc.). I'd like to modify Repast Simphony 2.2, because all my projects are built with this version of the framework.

I followed instructions from the page:
http://repast.sourceforge.net/download-extras.php

Which means I have a working copy of Eclipse Luna with installed GMF and Groovy addons.

At this exact point I'm stuck, because I'm not sure what kind of project to create in the Eclipse and how to attach sources. I'm using a snapshot of version 2.2 from master, which gives me lot of subdirectories (I put them to /src ?), and files: .classpath , build.properties , .gitignore

How I got the source code:
https://sourceforge.net/p/repast/repast-simphony/ci/v2.2/tree/

I tried creating a "new Java Application" and GMF "Graphical editor project", without success. I always end up with ~70k compile errors.

Can you please help by elaborating on how to set up the project in the Eclipse? Thank you very much.

Best Regards,
Oskar

--
Oskar Jarczyk, PhD student

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Repast-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-developer
Reply | Threaded
Open this post in threaded view
|

Re: Creating build environment for Repast Simphony step by step

srcnick
Oskar,

The version 2.2. snapshot pull should result in a directory structure that looks something like:

repast.simphony/
libs.bsf
repast.simphony.core

Each one of those subdirectories is an individual project. You need to import each project into eclipse. That results in a package explore pane that looks something like:


You won’t have the JZombies and the git info will be different of course.

If you want to compile /  run a model against this source, you can use one of the existing models — although you may need the 2.2 version of the source. You will need to change the classpath for the model’s project though. My JZombies that I use to test repast code while its being developed has the following run configuration.





Hope this helps,

Nick

On Sep 16, 2016, at 2:44 AM, Oskar Jan Jarczyk <[hidden email]> wrote:

Dear Repast developers,

I'm using RS in my simulations for already many years, but I'm having hard times understanding how to build the Repast Simphony framework by myself. I wish to make some changes to the `Remote batch run` functionality (e.g. name of the remote directory, disable obligatory mkdir for this name, upload to directory other than the user's home directory etc.). I'd like to modify Repast Simphony 2.2, because all my projects are built with this version of the framework.

I followed instructions from the page:
http://repast.sourceforge.net/download-extras.php

Which means I have a working copy of Eclipse Luna with installed GMF and Groovy addons.

At this exact point I'm stuck, because I'm not sure what kind of project to create in the Eclipse and how to attach sources. I'm using a snapshot of version 2.2 from master, which gives me lot of subdirectories (I put them to /src ?), and files: .classpath , build.properties , .gitignore

How I got the source code:
https://sourceforge.net/p/repast/repast-simphony/ci/v2.2/tree/

I tried creating a "new Java Application" and GMF "Graphical editor project", without success. I always end up with ~70k compile errors.

Can you please help by elaborating on how to set up the project in the Eclipse? Thank you very much.

Best Regards,
Oskar

--
Oskar Jarczyk, PhD student
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
Repast-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-developer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Repast-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/repast-developer