Hi all:

I have an Ant-based project that I created many years ago with NetBeans. I have 
been upgrading it together with NetBeans. I am using NetBeans version 12.0 now.

I recently added a command-line argument for my application at this location:

Right-click on the project, "Properties", "Run", "Parameters", "Edit"

I ran the application and the command-line argument was showing the desired 
effect.

Then I decided to remove that command-line argument. But, instead of removing 
it in the same way, I reverted the changes to file project.properties with Git 
(with Git Gui, menu "Commit", option "Revert Changes").

NetBeans had automatically done other changes to that file, like adding 
"jlink.launcher=false", and I saw no reason to commit those changes now that I 
had decided to undo my actual change.

But alas, the command-line argument was still being used when running the 
application under the NetBeans debugger.

"Clean and Build" did not help. Restarting NetBeans did not help either.

After some head scratching, I grepped all files, and my command-line option was 
still present in file nbproject/private/private.properties .

I never bothered to learn much about those private files. Many years ago, I 
read somewhere that such files do not belong in Git, so I had added 
/nbproject/private/ to .gitignore . That is why the remaining change was not 
immediately visible in Git Gui.

I guess that the project private files had become out of sync with the normal 
project, because NetBeans did not realise that the normal project file had 
changed behind its back.

Is this a known problem or limitation? I am guessing that checking the 
timestamps would be enough for NetBeans to realise that the private files have 
become outdated and need to be regenerated.

Thanks in advance,
  rdiez

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to