Separating source and build ouptut in Eclipse -


recently, work computer suffering hardware failures had pleasure of migrating data on new computer. project smaller generated output , significant portion of time spent moving generated output.

currently:

c:\workspace\project\src\... c:\workspace\project\bin\... 

ideally:

c:\workspace\project\src\... c:\workspace_output\project\bin\... 

note: me source linked don't exist within project.

i able change 1 particular project following directions here. however, have numerous projects , time-consuming apply change each project (create "output folder" point project folder).

is there better way define behavior within eclipse? couldn't find ${project_name} system variable use (e.g. this). i'm fine if answer no appears have manually set each project. maybe next best thing write script automatically create folders , modify .project , .classpath.

an alternative like:

  1. start eclipse on new machine, point old workspace
  2. clean projects
  3. then copy projects onto new machine
  4. use eclipse on new machine.

where can cut out work of "cleaning" projects because separate.

in general you'd want use kind of version control system or source code management, such cvs, svn, git, perforce, visual sourcesafe, etc. barring that, can use file > export (or right-click on projects) export project or group of projects eclipse , will, default, exclude derived content (such compiled code). can import projects eclipse workspace.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -