scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Support .jar files in -d option

Open Florian3k opened this issue 1 year ago • 3 comments

scalac allows putting .jar files in -d option. Invokingscalac file.scala -d foo.jar creates foo.jar file. scala-cli compile file.scala -d foo.jar creates foo.jar folder instead. I'd expect the same behavior of those two commands.

Florian3k avatar Mar 15 '24 19:03 Florian3k

@Florian3k @Gedochao Hi Fornal/Piotr, I worked on this issue last weekend, could you please assign the issue to me and help review the PR for it- https://github.com/VirtusLab/scala-cli/pull/2943

kannupriyakalra avatar May 26 '24 10:05 kannupriyakalra

Fixing this properly is rather tricky, so I'm removing the spree label.

Gedochao avatar May 06 '25 10:05 Gedochao

-O -d -O out.jar doesn't help, scala-cli still intercepts it

lrytz avatar Sep 26 '25 07:09 lrytz