| Summary: | [Import/Export] Project name with segment warning unclear | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Bhagirath Patel <bhagirathuk> |
| Component: | IDE | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | RESOLVED NOT_ECLIPSE | QA Contact: | Prakash Rangaraj <prakash> |
| Severity: | normal | ||
| Priority: | P5 | CC: | bhagirathuk |
| Version: | 3.2 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Bhagirath Patel
Can you give more detail? I am not sure what you are asking. (In reply to comment #1) > Can you give more detail? I am not sure what you are asking. Tod, first of all thanx to consider this. I tried to create a project using GWT and created project structure under ECLIPSE's workspace. Open Eclipse and tried to import project using "Existing project into workspace". But it gives "Creation Erro" and detail says "Path for Project must have only one segment". Also, I tried to create project out of workspace(say somewhere c:\myfolder\MyProject), but still getting same error when try to import into workspace. Please let me have a way out of this. I will appreciate it... Thanks again Tod... -Bhagirath Could you attach the .project file for the project you are trying to import? (In reply to comment #3) > Could you attach the .project file for the project you are trying to import? Tod, this is Bhagirath... Answer to your question is I don't know as it does not tell me explicitly. Only gives pops up with ERROR window saying "Problem in Creation of Project" and detail says "Path for project must have only one segment". But Structure I created using GWT's projectCreator and appliationCreator commands worked fine and has .project file in my project folder under workspace. Is this answer you are expecting because what I saw had only this information. Help me Tod it is taking a lot of time and even googling for THIS ERROR did not show me solutions on Google search. Please... So there is no folder for the project you were trying to create at all then? And if not is there anything in the .log file of your workspace? (In reply to comment #5) > So there is no folder for the project you were trying to create at all then? > And if not is there anything in the .log file of your workspace? Tod, I will attache the .project file in my next reply...But Yes I have my project folder named MyProject that I have tried to create in different locations such as workspace of our eclipse, and other places like c:, d: but at the time of importing Project into eclipse gives me error that we have been discussing. GWT creates whole project structur using two Commands from DOS at the destination Project Directory with all necessary files like .project, .classpath and others. Will attache .project file so till then you may want not to reply. Stay tuned then... Thanks.... Tod, this is Bhagirath
Following is the .project file simply copied and pasted
----------------.project file------------------
<?xml version="1.0" encoding="utf-8" ?>
<projectDescription>
<name>d:\Proj1</name>
<comment>d:\Proj1</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
-----------------.classpath file---------------------
<?xml version="1.0" encoding="utf-8" ?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/gwt-windows-1.4.10/gwt-user.jar"/>
<classpathentry kind="var" path="JUNIT_HOME/junit.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
------------------------------------------------------
Let me know what is the problem with this files and Eclipse giving me error, I am just curious to know and to solve this...
Thanks & Regards...
-Bhagirath
So this is the .project file of the failed project correct? The problem is that you named it d:\Proj1 - the segement it is complaining about is the seperator in the name. Had you named it proj1 you would have been fine We should give a better message but there is nothing more for us to do here. (In reply to comment #8) > So this is the .project file of the failed project correct? > The problem is that you named it d:\Proj1 - the segement it is complaining > about is the seperator in the name. Had you named it proj1 you would have been > fine > We should give a better message but there is nothing more for us to do here. Tod, Bhagirath here... Meaning, in .project file, I have to put Proj1 instead of d:\Proj1 ? that is what you mean ? Because, I want to create a project to particular destination (in this case d:\Proj1)... So removing seperator remains as <name>Proj1</name> right ? Right. The name should have no seperators, but the path should. They cannot be the same thing. (In reply to comment #10) > Right. The name should have no seperators, but the path should. They cannot be > the same thing. Thanks Tod for your constant flow of info. It would help me and I will try it today. Meanwhile, this implies GWT commands those create Project Directory Structure should not created this way...What do you think ?? Because .project has <name>d:\Proj1</name> by default and eclipse gave me hard time... Anyways, I really appreciate your help... thanks, thank you very much Tod.. -Bhagirath Eclipse doesn't create projects names like "D:\proj". Its the external tools that create projects like that. You should be raising bugs against those products. |