Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » quick question on workspace :-)(workspace)
quick question on workspace :-) [message #1239973] Wed, 05 February 2014 12:28 Go to next message
barclay ravenscroft is currently offline barclay ravenscroftFriend
Messages: 2
Registered: February 2014
Junior Member
hi all,

new here so hello Smile

ive just finished my first android game and its on playstore,
however i need to modify it for amazon so.....

should i create a new workspace then import my project but copy it into workspace then modify it for amazon. is this the best way to keep 2 slightly different copies of the same project ? i take it anything i change in the new workspace wont affect the other workspace.

bit of a noob question probably but not had to deal with more than 1 project/ workspace before...

thanks

barks
Re: quick question on workspace :-) [message #1240239 is a reply to message #1239973] Thu, 06 February 2014 02:21 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/05/2014 08:11 AM, barclay ravenscroft wrote:
> hi all,
>
> new here so hello :)
>
> ive just finished my first android game and its on playstore,
> however i need to modify it for amazon so.....
>
> should i create a new workspace then import my project but copy it into
> workspace then modify it for amazon. is this the best way to keep 2
> slightly different copies of the same project ? i take it anything i
> change in the new workspace wont affect the other workspace.
>
> bit of a noob question probably but not had to deal with more than 1
> project/ workspace before...
>
> thanks
>
> barks

This really isn't an Eclipse question. It's really more a question about
how best to do application configuration or version control.

If it's not to be heavily modified, then you don't want to copy it, but
make the modifications configurable. As I don't know what you're doing,
I couldn't possibly make concrete suggestions.

Another approach would be to branch your git repository, in other words,
handle it at the version-control level.

Last, if you create a new workspace, which isn't completely necessary,
but for your peace of mind..., you can import the old project and tell
the wizard to copy its contents into the new workspace.

Hope this helps.
Re: quick question on workspace :-) [message #1241754 is a reply to message #1240239] Sat, 08 February 2014 13:07 Go to previous messageGo to next message
barclay ravenscroft is currently offline barclay ravenscroftFriend
Messages: 2
Registered: February 2014
Junior Member
thanks for the reply,

i want to organise my projects, ive decided the best way for me is to use workspaces for the different versions of my game for different stores, ie i need to remove google license check ect if im publishing on amazon.

so it seams that the workspace is just a directory where the files are stored.

im not sure how i did it but my game isnt in my workspace its in a different folder,

for me to organise how i want to i need to rename my workspace and move the files back into it,

under linked resourses>path variables the edit button is greyed out? i need to edit the paths so i can move the folders where i want them, ie back into a renamed workspace,

hopefully then i can store all my new games/ apps in there relative named worspaces..

any ideas why the edit button is greyed out??

thanks

barclay
Re: quick question on workspace :-) [message #1242419 is a reply to message #1241754] Sun, 09 February 2014 14:28 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02/08/2014 06:07 AM, barclay ravenscroft wrote:
> thanks for the reply,
>
> i want to organise my projects, ive decided the best way for me is to
> use workspaces for the different versions of my game for different
> stores, ie i need to remove google license check ect if im publishing on
> amazon.
>
> so it seams that the workspace is just a directory where the files are
> stored.
>
> im not sure how i did it but my game isnt in my workspace its in a
> different folder,
>
> for me to organise how i want to i need to rename my workspace and move
> the files back into it,
> under linked resourses>path variables the edit button is greyed out? i
> need to edit the paths so i can move the folders where i want them, ie
> back into a renamed workspace,
> hopefully then i can store all my new games/ apps in there relative
> named worspaces..
>
> any ideas why the edit button is greyed out??
>
> thanks
>
> barclay

Barclay,

Eclipse workspaces aren't about files, but about greater (higher-level)
configuration. Projects are all about files. Also, projects are
portable; workspaces are not.

You can if you like keep the two different projects of what was
originally the same source code in the same workspace. This is what I
would do in order to have quick access to both source bases. Changing
workspaces in the Eclipse workbench is only a few seconds, but it's
annoying and unnecessary.

Be very careful you've separated your cloned source. I think you're
over-thinking this based on your longer paragraph. Here's my advice:

1. Use the filesystem (Linux, Windows, Mac, etc.) to clone the entire
project folder to a different name. Be sure you have two complete copies
with nothing relating them.

2. Edit the new copy's .project file (it's XML). Near the top of that
file is the project name--it's very obvious. For clarity sake, simply
change that name to your new folder's name.

3. Launch Eclipse using the same workspace as your original project.

4. Do Files -> Import... -> General -> Import Existing Projects into
Workspace. Click Next and then browse to the new project folder. Click
Finish.

You should now have both projects in your workspace. Depending on how
messy your first project was, in particular where and how you set up the
Java Build Path (third-party library JARs, etc.), you may need to do
some work the get the new project going.

My last piece of advice is that you be careful not to cross-contaminate
the projects. In particular, unless you're using Maven or Ivy, I would
advise you to keep separate copies of your third-party base libraries
inside a lib subdirectory in your project. This will keep the .classpath
file clean and independent of your host filesystem in both projects.
It's just plain good practice.

I hope this helps.

Russ
Previous Topic:reverse engineering javascript into flow chart
Next Topic:"assertEquals" failing intermittently
Goto Forum:
  


Current Time: Thu Mar 28 12:20:46 GMT 2024

Powered by FUDForum. Page generated in 0.04517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top