You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/02/25 19:06:00 UTC

[jira] [Commented] (NETBEANS-3918) Maven new project wizard creates spurious directories

    [ https://issues.apache.org/jira/browse/NETBEANS-3918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044750#comment-17044750 ] 

Ernie Rael commented on NETBEANS-3918:
--------------------------------------

The spurious directory creation comes from
{code:java}
    changeset:   301468:76d9cafcee35
    branch:      ArchetypesUI268677
    parent:      299970:0c5aa5cdb86a
    user:        Jaroslav Tulach <jt...@netbeans.org>
    date:        Tue Oct 25 21:52:49 2016 +0200
    summary:     #268677: Recognizing .archetype template files and using them to instantiate projects via mvn archetype
{code}
The directory creation comes from java/maven/.../BasicPanelVisual.store(WizardDescriptor d)
{code:java}
    void store(WizardDescriptor d) {
        ...
        d.putProperty(CommonProjectActions.PROJECT_PARENT_FOLDER, parentFolder);
        if (d instanceof TemplateWizard) {
            parentFolder.mkdirs();
            ((TemplateWizard) d).setTargetFolder(DataFolder.findFolder(FileUtil.toFileObject(parentFolder)));
        }
{code}
The store method is called to save panel settings; it could be for cancel, back, next. Not just finish.

I don't know if this code is for convenience, to avoid later calculations, or if it's required, or ...

With some guidance I might...

> Maven new project wizard creates spurious directories
> -----------------------------------------------------
>
>                 Key: NETBEANS-3918
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3918
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Maven
>    Affects Versions: 11.3
>            Reporter: Ernie Rael
>            Priority: Major
>
> This derives from the 2nd part of NETBEANS-2446. Whenever the "Name and Location" panel for maven's NewProject action is exited, a directory is created for the indicated "Project Folder:". This could be after pressing "Back", "Next", "Cancel". 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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