Hi Jasintha,

With regards to $subject in Jira [1], I figured that we are importing the
project descriptor from the cloned project, and try to create the project
in the workspace with the project descriptor, on importing the cloned
resource to workspace (find source at [2] line 1296).

Is there any specific reason as to why we are creating it with the project
descriptor?

Because the java doc of the method says that if we create a project without
a descriptor, and if the descriptor is there in the project it will not
overwrite it. I tested by removing this section and verified that the
.project file is not overwritten on import.

Because of this with the later changes to change the project name with a
suffix (main or forked from repo), we cannot clone the project into the
workspace and import from it. It gives "Invalid Project Descriptor" error,
on import.

[1] https://wso2.org/jira/browse/TOOLS-2650

[2]
https://github.com/tikaa/developer-studio/blob/master/appfactory/org.wso2.developerstudio.appfactory.ui/src/org/wso2/developerstudio/appfactory/ui/views/AppfactoryApplicationListView.java#L1296

thanks and regards
-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to