Output Class Package

28 views
Skip to first unread message

Chee Seng Chua

unread,
Apr 20, 2013, 11:29:33 PM4/20/13
to scala-i...@googlegroups.com
Hi all, 

Following a discussion in scalatest-users:-


We found out that if com.test.ExampleSpec (package com.test is declared in source file) source file not put in the folder com/test/, the compiled class file will not be output to com/test folder, e.g. if com.test.ExampleSpec is put under 'another' folder, the ExampleSpec.class will be output to another/ExampleSpec.

That seems to be very different with scalac, isn't it?

Thanks.

Best Regards, 
Chee Seng

iulian dragos

unread,
Apr 22, 2013, 7:54:53 AM4/22/13
to scala-i...@googlegroups.com
This sounds wrong, but I don't see how this behavior could be IDE specific. I couldn't reproduce it with a simple project and one source file (in the wrong folder). Can you post a self-contained project that has the wrong behavior?


Chee Seng

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Chee Seng Chua

unread,
Apr 22, 2013, 11:04:28 AM4/22/13
to scala-i...@googlegroups.com
Hi Iulian, 

I tried hard to reproduce the problem again but failed, perhaps I was confused when moving the source file between packages (and I just found out that scala-ide actually auto-update the package declaration in the source file, which is cool!) and I did not clean the project (I have automatic build turned off), or may be I 'did clean' and thought that the package declaration stays same after moving into new folder.

Very sorry for the false alarm.

Thanks!

Best Regards, 
Chee Seng 
Reply all
Reply to author
Forward
0 new messages