# Launching recorder from source repo (sbt?)

**URL:** <https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158>\
**Category:** Gatling (Open-Source)\
**Created:** [July 10, 2014, 4:01pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158 "2014-07-10T16:01:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.gatling.io/u/Alex)\
**Post date:** [July 10, 2014, 4:01pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/1 "2014-07-10T16:01:51Z")

</div>

Apologies if this is a stupid question - I’ve been reading the project wiki and reading about sbt for an hour or so, and also experimenting in sbt. So far, no luck.

Is there a simple way of launching gatling-recorder from a cloned git repo?

I was expecting something like:

git clone [https://github.com/excilys/gatling.git](https://github.com/excilys/gatling.git)  
cd gatling  
sbt runMain gatling-recorder

Thanks for any pointers.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [July 10, 2014, 4:05pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/2 "2014-07-10T16:05:45Z")

</div>

Hi Alex,

If you want to try out Gatling with SBT, your best guess would be the SBT plugin : [https://github.com/gatling/gatling-sbt](https://github.com/gatling/gatling-sbt).

Even if SBT allows to run main classes like App and Recorder, those classes are not intended to be run as-is, as some configuration is needed to make them work properly.

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [July 10, 2014, 4:06pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/3 "2014-07-10T16:06:23Z")

</div>

@Pierre: What about this idea of a git clone template?

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.gatling.io/u/Alex)\
**Post date:** [July 10, 2014, 4:16pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/4 "2014-07-10T16:16:55Z")

</div>

@Pierre I guess I thought the build system might be able to configure  
classpath etc. I am looking to make some changes to recorder, but I'd  
need to build and run from my local source to do this.

---

<div class="post-metadata">

**Author:** ![Alex](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Alex](https://community.gatling.io/u/Alex)\
**Post date:** [July 10, 2014, 4:31pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/5 "2014-07-10T16:31:53Z")

</div>

This seems to do what I'm after:

&nbsp;&nbsp;&nbsp;&nbsp;sbt gatling-recorder/run

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [July 10, 2014, 4:49pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/6 "2014-07-10T16:49:42Z")

</div>

Trouble is, this only "kinda" works : Logback is not configured properly and you'll have no configurable recorder.conf.  
The same goes for Gatling's engine main class.  
What I'm suggesting is to have the main classes, preconfigured by SBT tasks, which would allow to run them easily.  
With that done, you could run both the Engine and the Recorder from the Gatling's sources, without using the bundle or an external project with either the Maven or SBT plugin to run Gatling or the Recorder to test your changes.  
WDYT ?

Envoyé de mon iPhone

---

<div class="post-metadata">

**Author:** ![Chris\_Price](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@Chris\_Price](https://community.gatling.io/u/Chris_Price)\
**Post date:** [July 10, 2014, 11:43pm UTC](https://community.gatling.io/t/launching-recorder-from-source-repo-sbt/1158/7 "2014-07-10T23:43:32Z")

</div>

We have some (kind of janky, very custom) code to do this:

[https://github.com/puppetlabs/gatling-puppet-load-test/blob/master/proxy-recorder/build.sbt#L15](https://github.com/puppetlabs/gatling-puppet-load-test/blob/master/proxy-recorder/build.sbt#L15)  
[https://github.com/puppetlabs/gatling-puppet-load-test/blob/master/simulation-runner/build.sbt#L17](https://github.com/puppetlabs/gatling-puppet-load-test/blob/master/simulation-runner/build.sbt#L17)

These probably aren’t useful to you as-is, but might give you an example to build from if you haven’t gotten what you need.
