This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Different name for project and directory name



Hi CCS Team,

is it possible to create a project which has different name than the directory which is created for the project? I am using the latest CCS v5.2.1. When i tried to use other location besides the default one, it always give error

  • So, i guess i found a workaround. I can't make the new project with different name on the folder which resides directly in the workspace folder, but i need to make it one folder under the workspace folder.

    So:

    <WORKSPACE_FOLDER>\MyProject -> will not work

    <WORKSPACE_FOLDER>\Intermediate_Folder\MyProject -> work

    However it would be nice if someone gives additional comment to explain this problem.

    Thanks

  • Hi Leo,

    can you please explain a bit further?  I just created a project and was able to set the project directory to a folder of my choosing (that I created).   Although this behaviour likely comes from Eclipse, I would like to see if I can reproduce it to see what you are experiencing.

    Could you send the steps/more details.

    Best Regards,
    Lisa

  • Hi Lisa,

    so what i was trying to do is basically this:  let's say i want to create a project named as "MyProject". Per default ("using default location" option is unchecked), CCS will create this project under <WORKSPACE_PATH>/MyProject -> basically the project folder is named as the Project name.

    However if i want to have a different name for the project folder, let's say MyFolder, i can't make the folder directly under <WORKSPACE_PATH>/MyFolder (at least this is the result from my test). I need to specify the folder one level under the workspace folder, which mean something like this: <WORKSPACE_PATH>/Intermediate_Folder/MyFolder.

    Are you able to reproduce the problem?

  • Hi Leo,

    have you unchecked "use default location".  I use this unchecked and can not reproduce this behaviour ......

    Best Regards,
    Lisa

  • Hi Leo,

    ok, this is definitely eclipse behaviour.  However the project and folder having different names is definitely supported.  I think the problem is if you try to use the root workspace folder or a folder already having a project.  If you simply uncheck the box and give the project and folder a different name, you should not see an issue.

    Hope this helps clarify.

    Best Regards,
    Lisa

  • Hi Lisa,

    sorry, it was a type, i did uncheck the "use default location". I made a screenshot for this. The workspace location is at C:\A_TEST (you can see the .metadata folder created by CCS below):

    and then these are the screenshots from the CCS create project:

    as you can see above:

    (1) the default project folder is C:\A_TEST\MYPROJECT

    (2) if i put C:\A_TEST\MYFOLDER as the project folder path, it will be rejected

    (3) putting C:\A_TEST\INTERMEDIATE_FOLDER\MYFOLDER will be accepted.

    Can you confirm this again?

  • Hi Leo,

    yes we see the same thing and this is eclipse behaviour as mentioned.  For whatever reason eclipse cdt does not like using the workspace folder.  You do not need the intermediate if you go outside the workspace folder.

    Hope this clears things up.

    Best Regards,
    Lisa