Bin folder in root of project

398 views
Skip to first unread message

Matko Mesar

unread,
Sep 23, 2017, 3:32:26 PM9/23/17
to Play Framework
Hi,
last few months I worked on three or four different projects and each was developed using Play. Most of the work was done by me, so I have a good comprehension of each one. 
There was a time gap something like month long since I haven't touched them (summer, vacation etc,). Last week I started to work again on one of them and noticed something I don't understand. I noticed this bin folder in root of my project. Since I don't know project structure by heart this bin folder obviously slipped under my radar at some point. I looked at documentation and it doesn't mentions anything on this bin folder. I found this bin folder in all 4 projects I have done. All have same structure, they consist of folders that are packages in play project and corresponding class files. 

Other facts:
- I think one of the projects was created using sbt with template (command sbt new playframework/play-java-seed.g8), because in this project .gitignore has line  .g8 but has also line /bin/. So I figure this template is somehow aware of this bin folder. But I cant confirm with 100% that this was indeed created with sbt and mentioned template.
- Based on before mentioned fact I think other projects were created with activator cos they don't have .g8 and /bin/ lines in .gitignore but still have bin folder
- Projects build and work normally if i delete this bin folder

I would really like to know what bin folder is used for and how did I created it in the first place. 
Thank you


Tim Moore

unread,
Sep 25, 2017, 2:23:12 AM9/25/17
to play-fr...@googlegroups.com
Hi Matko,

I think './bin' is the default build output directory used by Eclipse. If you opened the project in Eclipse without using sbteclipse, it would probably default to putting classes there. Could that explain it?

Cheers,
Tim

--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/bee8b89a-384a-4bb2-8716-03d45f1483f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Matko Mesar

unread,
Sep 25, 2017, 4:37:51 PM9/25/17
to Play Framework
Hi Tim,
can't really confirm this. I can't (or i don't know how) to import project into eclipse without eclipsefying it first.

Usually my first step is to add addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0") into plugins.sbt file, compile project, eclipsefy it and import into eclipse (File -> Import -> General (Existing Projects into Workspace) -> nextnextnext....).

Can you maybe give me some instructions how to import project that way so I can see if it triggers creation of bin folder?

Kind regards,
Matko



On Monday, September 25, 2017 at 8:23:12 AM UTC+2, Tim Moore wrote:
Hi Matko,

I think './bin' is the default build output directory used by Eclipse. If you opened the project in Eclipse without using sbteclipse, it would probably default to putting classes there. Could that explain it?

Cheers,
Tim
On Sun, Sep 24, 2017 at 2:39 AM, Matko Mesar <mesar...@gmail.com> wrote:
Hi,
last few months I worked on three or four different projects and each was developed using Play. Most of the work was done by me, so I have a good comprehension of each one. 
There was a time gap something like month long since I haven't touched them (summer, vacation etc,). Last week I started to work again on one of them and noticed something I don't understand. I noticed this bin folder in root of my project. Since I don't know project structure by heart this bin folder obviously slipped under my radar at some point. I looked at documentation and it doesn't mentions anything on this bin folder. I found this bin folder in all 4 projects I have done. All have same structure, they consist of folders that are packages in play project and corresponding class files. 

Other facts:
- I think one of the projects was created using sbt with template (command sbt new playframework/play-java-seed.g8), because in this project .gitignore has line  .g8 but has also line /bin/. So I figure this template is somehow aware of this bin folder. But I cant confirm with 100% that this was indeed created with sbt and mentioned template.
- Based on before mentioned fact I think other projects were created with activator cos they don't have .g8 and /bin/ lines in .gitignore but still have bin folder
- Projects build and work normally if i delete this bin folder

I would really like to know what bin folder is used for and how did I created it in the first place. 
Thank you


--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.

Tim Moore

unread,
Sep 25, 2017, 7:17:51 PM9/25/17
to play-fr...@googlegroups.com
I think it would be if you did Import > General > Existing Projects into Workspace directly after creating the project from the template, without using sbteclipse first. Then it would use the default output directory, and probably mess a bunch of other things up, too!

I'm just taking a guess, though. I'd suggest deleting the bin directory and moving on, since it sounds like it was created accidentally. :)

Cheers,
Tim

To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/5b26828b-2472-424e-b789-9ee04f0d297d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Matko Mesar

unread,
Oct 3, 2017, 8:17:23 AM10/3/17
to Play Framework
Nop, I can't import project into eclipse without eclipsefying it first. Last finish button in import process is disabled when I select Play project that isnt eclipsefied.
I deleted the folder and moved on. Thanks for trying.

Cheers
Matko
Reply all
Reply to author
Forward
0 new messages