Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4085

New Gradle project wizard allows to create project with same name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0
    • Fix Version/s: 12.0
    • Labels:
    • Environment:
      Product Version: Apache NetBeans IDE 12.0-beta2
      Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+9
      Runtime: OpenJDK Runtime Environment 11.0.2+9
      System: Mac OS X version 10.15.3 running on x86_64; UTF-8; en_IN (nb)

      Description

      Steps to reproduce

      1. Started with clean user dir and cache dir
      2. New Project |Java with Gradle|Java application
      3. Provide the name - `duplicate-project`
      4. Provide a project location; example <userhome>/Netcat12/NBprojects
      5. Provide Description - Originally created project
      6. Click finish
      7. You will notice in the project explorer the new project node as Originally created project
      8. New Project |Java with Gradle|Java application
      9. Provide name `duplicate-project`
      10. Use the same above project location; example <userhome>/Netcat12/NBprojects
      11. Provide Description - I am a duplicate

      Expected behaviour

      Error banner describing that the project already exists

      Finish/Next buttons are disabled

      Actual Behaviour

      No error banner

      Finish is enabled

      Clicking Finish over-writes the existing project(directories are retained, but build.gradle, settings.gradle and gradle.properties are over-written)

      In project explorer we see the project node "I am a duplicate"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lkishalmi Laszlo Kishalmi
                Reporter:
                manikantannaren Manikantan Narender Nath
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: