You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2020/03/02 19:41:37 UTC

[GitHub] [netbeans] matthiasblaesing commented on a change in pull request #1980: [NETBEANS-2446] Use *parent* of saved projectFolder as projectLocation

matthiasblaesing commented on a change in pull request #1980: [NETBEANS-2446] Use *parent* of saved projectFolder as projectLocation
URL: https://github.com/apache/netbeans/pull/1980#discussion_r386608745
 
 

 ##########
 File path: java/maven/src/org/netbeans/modules/maven/newproject/BasicPanelVisual.java
 ##########
 @@ -562,7 +562,9 @@ void read(WizardDescriptor settings) {
         File projectLocation = (File) settings.getProperty(CommonProjectActions.PROJECT_PARENT_FOLDER); //NOI18N
         if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
             projectLocation = ProjectChooser.getProjectsFolder();
-        } 
+        } else {
+            projectLocation = projectLocation.getParentFile();
 
 Review comment:
   This looks like a contradiction to the name of the property in line 562. Could it be, that the property is set to the wrong value?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists