This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
3 Replies Last post: Nov 30, 2011 5:22 PM by Timo Meinen  
Timo Meinen Newbie 78 posts since
Sep 15, 2010
Currently Being Moderated

Nov 29, 2011 4:59 PM

How can I invoke MainConfigProcesser writeTo on my Class?

I want to store settings from within my controller. The controller has a refrence to my Configuration-Class which implements MainConfigProcessor.

 

How can I invoke writeTo() programmatically? Where do I get the "serverConfigRoot" Element from?

 

When clicking on save on the general settings page, my Configuration-Classes callback is called. However, I want to explicitely store the preferences from within my controller.configurations plugins

Pavel Sher JetBrains 2,148 posts since
Mar 6, 2008
Currently Being Moderated
Nov 30, 2011 4:45 PM in response to: Timo Meinen
Re: How can I invoke MainConfigProcesser writeTo on my Class?

The simplest way currently is to store your plugin settings in separate file. You can use ServerPaths object to obtain path to configuration directory. Then you can create a file there for your plugin settings.

At the moment TeamCity does not have special API for custom settings.

More Like This

  • Retrieving data ...