sbt dist error

32 views
Skip to first unread message

Martin Krasser

unread,
Mar 15, 2010, 5:21:44 AM3/15/10
to akka...@googlegroups.com
Hi guys,

when running 'sbt dist' (on Windows) with the latest master I'm getting
exceptions like

[info] Deploying
C:\dev\akka\deploy\akka-samples\akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar
java.lang.IllegalArgumentException: requirement failed: Source file
'C:\dev\akka\akka-samples\akka-sample-lift\target\scala_2.7.7\akka-samples\akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar'
does not exist.
at scala.Predef$.require(Predef.scala:112)
at sbt.FileUtilities$.copyFile(FileUtilities.scala:529)
at sbt.FileUtilities$.copyFile(FileUtilities.scala:523)
at AkkaParent$$anonfun$deployTask$1.apply(AkkaProject.scala:369)
at AkkaParent$$anonfun$deployTask$1.apply(AkkaProject.scala:359)
at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
at sbt.impl.RunTask.doRun$1(RunTask.scala:77)
at sbt.impl.RunTask.runTask(RunTask.scala:85)
at sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:60)
at
sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
at
sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)
at
sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
at
sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)
at sbt.Control$.trapUnit(Control.scala:19)
at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131)

The jar file actually does exist under
.../target/scala_2.7.7/akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar but it is
expected under
.../target/scala_2.7.7/akka-samples/akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar
(i.e. the diff is the 'akka-samples')

Does anybody have the same problem?

This problem is reported for all projects that are part of a
multi-module parent project i.e. akka-persistence, akka-samples and
akka-cluster.

Regards,
Martin

--
Martin Krasser

Blog: http://krasserm.blogspot.com
Twitter: http://twitter.com/mrt1nz

Martin Krasser

unread,
Mar 15, 2010, 5:55:55 AM3/15/10
to Akka User List
Just found the reason: AkkaProject.scala uses a hard-coded '/' path
separator in its deployTask method. This must be replaced by an OS-
specific path separator. I'll fix that and push it to master.

Jonas Bonér

unread,
Mar 15, 2010, 6:59:26 AM3/15/10
to akka...@googlegroups.com
Argh. My bad.
Didn't even think about that. But the build file is Scala so it's
natural when you think about it.
Thank you.

----
Jonas Bonér

twitter: @jboner
blog: http://jonasboner.com
work: http://scalablesolutions.se
code: http://github.com/jboner
code: http://akkasource.org
also: http://letitcrash.com

On Mar 15, 2010, at 10:55, Martin Krasser <kras...@googlemail.com>
wrote:

> --
> You received this message because you are subscribed to the Google
> Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en
> .
>

Jason Zaugg

unread,
Mar 15, 2010, 7:04:31 AM3/15/10
to akka...@googlegroups.com
Best is to use "a" / "b" with the Path DSL in SBT:

Details here: http://code.google.com/p/simple-build-tool/wiki/Paths

-jason

On Mon, Mar 15, 2010 at 11:59 AM, Jonas Bonér <jo...@jonasboner.com> wrote:
> Argh. My bad.
> Didn't even think about that. But the build file is Scala so it's natural
> when you think about it.
> Thank you.
>
> ----
> Jonas Bonér
>
> twitter: @jboner
> blog: http://jonasboner.com
> work: http://scalablesolutions.se
> code: http://github.com/jboner
> code: http://akkasource.org
> also:  http://letitcrash.com
>
> On Mar 15, 2010, at 10:55, Martin Krasser <kras...@googlemail.com> wrote:
>
>> Just found the reason: AkkaProject.scala uses a hard-coded '/' path
>> separator in its deployTask method. This must be replaced by an OS-
>> specific path separator. I'll fix that and push it to master.
>>
>> On Mar 15, 10:21 am, Martin Krasser <krass...@googlemail.com> wrote:
>>>
>>> Hi guys,
>>>
>>> when running 'sbt dist' (on Windows) with the latest master I'm getting
>>> exceptions like
>>>
>>> [info] Deploying
>>> C:\dev\akka\deploy\akka-samples\akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar
>>> java.lang.IllegalArgumentException: requirement failed: Source file
>>>

>>> 'C:\dev\akka\akka-samples\akka-sample-lift\target\scala_2.7.7\akka-samples\akka-sample-lift_2.7.7-0.7-SNAPSHOT.jar'


>>> does not exist.
>>>        at scala.Predef$.require(Predef.scala:112)
>>>        at sbt.FileUtilities$.copyFile(FileUtilities.scala:529)
>>>        at sbt.FileUtilities$.copyFile(FileUtilities.scala:523)
>>>        at AkkaParent$$anonfun$deployTask$1.apply(AkkaProject.scala:369)
>>>        at AkkaParent$$anonfun$deployTask$1.apply(AkkaProject.scala:359)
>>>        at sbt.TaskManager$Task.invoke(TaskManager.scala:62)
>>>        at sbt.impl.RunTask.doRun$1(RunTask.scala:77)
>>>        at sbt.impl.RunTask.runTask(RunTask.scala:85)
>>>        at

>>> sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:60)

Jonas Bonér

unread,
Mar 15, 2010, 7:07:24 AM3/15/10
to akka...@googlegroups.com
On 15 March 2010 12:04, Jason Zaugg <jza...@gmail.com> wrote:
Best is to use "a" / "b" with the Path DSL in SBT:

Details here: http://code.google.com/p/simple-build-tool/wiki/Paths

Right. Thanks.
Reply all
Reply to author
Forward
0 new messages