Is it possible to read / edit standard project properties?

"sbobrov85" <[email protected]> Sun, 16 Apr 2017 13:14:19 +0000
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Many thanks to geertjan for his help.

This is what I need, with small corrections.
Private properties are perfectly modified in this way.


geertjan wrote:
> Maybe this helps: 
> https://blogs.oracle.com/geertjan/entry/setting_netbeans_properties_programatically
> 
> Gj
> 
> 
> On 16-4-2017 9:39, Oliver Rettig wrote:
> 
> > Hallo,
> > 
> > if you have the "Project"  you can locate the private.properties file and you
> > can access the file with plain java. This what I do in these cases. I think
> > there is no specific api to access this file. The problem is that if you want to
> > resolve templates/variables you have to do it on your own. Some years ago i
> > have tried to access programmatically project files via ant but it looks to
> > complex. If you find a better solution I am interested in.
> > 
> > best regards
> > Oliver
> > 
> > 
> > > Hello.
> > > 
> > > I am newbie to programming plugins for netbeans and I can not solve one
> > > problem. Is it possible to read / edit standard project properties like
> > > remote connection or etc (Project -> Properties)?
> > > 
> > > I tried to use:
> > > 
> > > * ProjectUtils.getPreferences
> > > * NbProperties
> > > 
> > > But all this works only for modules...
> > > 
> > > I want to change what's in the file nbproject/private/private.properties
> > > 
> > > Help me, please.
> > > 
> > 
>