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

Problem with loading a project which has 2 different project files

    XMLWordPrintableJSON

Details

    Description

      Most of the comments are inside of the external ticket, but I will summerize it:

      When I have a project, with 2 different project related files like pom.xml and package.json. One is always winning. In my case, pom is winning.

      I had a html5 project, where NetBeans found package.json and everything was fine, because it is a HTML5 project. After some infrastucture changes in my company, using nexus to put artifacts on the repo, we had to add pom.xml files for nexus. Now, after opening NetBeans, the project turns into a maven based project, which is not correct. Only this one file and some infrastructure files, which are not project sourcecode related are needed for nexus.

      Now, because NetBeans things this is a maven project, I can't set the sass compilation anymore or the folder structure is wrong.

      This always happen, if the project loader finds a project specific file and will change the project for that. This happens for pom.xml for example and for this plugin here: https://github.com/tropyx/NetBeansPuppet

      It turns a project into a puppet project and this is even more worse. Here is another discussion about the problem: https://github.com/tropyx/NetBeansPuppet/issues/27

      I know, that NetBeans acts like it was designed but this isn't nice and created problems. I only have one solution which could be ok. Give the user a notification that a project type were found, like for node support and let the user choose whether I want to change the project type or not.

      So for me, I have a HTML5 Project with a package.json file and it should be as it is. If NetBeans found the pom file it should give me the hint whether I want to change it or not.

      If you open NetBeans with a project with two files, I want to choose as what I want to treat the project and it should be saved. Like a project switcher.

      I added a sample project to it to make it clear.

      We can set it back to Major, but I think this is a big problem for multiple project files.

      Cheers

      Chris

      Attachments

        1. dasaa.7z
          2 kB
          Christian Lenz

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              chrizzly Christian Lenz
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m