On Thu, Mar 20, 2014 at 12:56 PM, Allan Brighton <[email protected]>wrote:

> Hi Patrik,
>
> It turns out that this line was the problem:
>
>     unmanagedSourceDirectories in Test <+= baseDirectory { _ / "src" /
> "multi-jvm" / "scala" },
>
> I added it to fix a problem in the generated Idea-13.1 projects, which are
> always missing the multi-jvm source directory in the settings.
>

Ah, yes that is annoying.


> For some reason that causes a problem when running the "test" target.
> Any suggestions for a fix?
>

I don't know. Might be a question for the sbt
folks<http://stackoverflow.com/tags/sbt>?
Please report back if you find a solution.

/Patrik


>
> Thanks,
> Allan
>
>
> On Thursday, March 20, 2014 9:30:08 AM UTC+1, Patrik Nordwall wrote:
>
>> Hi Allan,
>>
>> Take a look at this Typesafe Activator template: https://typesafe.
>> com/activator/template/akka-sample-multi-node-scala
>>
>> Let us know if that solves your problem or not.
>>
>> /Patrik
>>
>>
>> On Wed, Mar 19, 2014 at 10:55 PM, Allan Brighton <[email protected]>wrote:
>>
>>> Correction: The *multinode.max-nodes *property does not need to be set
>>> if "sbt multi-jvm:test" is run, but if I run "sbt test", I get:
>>>
>>>     java.lang.IllegalStateException: need system property
>>>> multinode.max-nodes to be set
>>>
>>>
>>> On Wednesday, March 19, 2014 10:29:13 PM UTC+1, Allan Brighton wrote:
>>>>
>>>> Hi,
>>>>
>>>> I'm using the settings below for a multi-jvm test. After upgrading to
>>>> Akka-2.3.0,
>>>> I got an error stating that I needed to define the *multinode.max-nodes
>>>> *system property.
>>>> I added that below and now it works when I run "sbt multi-jvm:test",
>>>> but I can't figure out how to add the setting
>>>> so that it is used with "sbt test" as well. Any tips?
>>>>
>>>>
>>>>>   lazy val multiJvmSettings = SbtMultiJvm.multiJvmSettings ++ Seq(
>>>>>     // make sure that MultiJvm test are compiled by the default test
>>>>> compilation
>>>>>     compile in MultiJvm <<= (compile in MultiJvm) triggeredBy (compile
>>>>> in Test),
>>>>>     // Required system property
>>>>>     jvmOptions in MultiJvm += "-Dmultinode.max-nodes=2",
>>>>>     // Next line fixes missing source folder in idea project
>>>>>     unmanagedSourceDirectories in Test <+= baseDirectory { _ / "src" /
>>>>> "multi-jvm" / "scala" },
>>>>>     parallelExecution in Global := false,
>>>>>     executeTests in Test <<=
>>>>>       (executeTests in Test, executeTests in MultiJvm) map {
>>>>>         case ((testResults), (multiJvmResults)) =>
>>>>>           val overall =
>>>>>             if (testResults.overall.id < multiJvmResults.overall.id)
>>>>> multiJvmResults.overall
>>>>>             else testResults.overall
>>>>>           Tests.Output(overall,
>>>>>             testResults.events ++ multiJvmResults.events,
>>>>>             testResults.summaries ++ multiJvmResults.summaries)
>>>>>       }
>>>>>   )
>>>>
>>>>
>>>> Thanks,
>>>> Allan
>>>>
>>>>  --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
>>> current/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/
>>> group/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> Patrik Nordwall
>> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
>> Twitter: @patriknw
>>
>>   --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to