I personally keep all my resource config files in a separate directory
off a drive on the CVP server, e.g. C:\Resources. I'd be concerned keeping
config files in the deployment path just in case they get overwritten on a
deploy thus wiping out any changes you've made to them.
I have a utility element I use to read the key=value pairs in my properties
files, pretty simple and reliable, just pass the file name and key and it
returns the value and keeps it safe in an isolated folder. Sorry it
doesn't answer your question but just recommending a different approach.
BW.
On Fri, Feb 22, 2013 at 9:21 AM, Cisco Developer Community Forums <
cdicuser@developer.cisco.com> wrote:
> Asher Schweigart has created a new message in the forum "CVP - All
> Versions": -------------------------------------------------------------- I
> am in the process of writing a custom app that will read in variables from
> a config file. I'd like to do this to make changing small things about the
> application easy to do without redeploying the application.
> I was planning on using the deploy/data/misc folder for this in each
> application that I use the element. I can't figure out how to reference
> that from java though. I thought maybe I could use current directoty or a
> system variable, but that will not work the way I want, as they are
> different in the CVP VXML server and in the studio debugger.
> On my CS box, %CVP_HOME% is
> C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime_9.0.1-SNAPSHOT
> On the CVP Server, %CVP_HOME% is C:\Cisco\CVP
> From there, to get to the deployed applications, the path is different
> (AUDIUM_HOME\applications\<appname> for CS, VXMLServer\applications for the
> CVP server).
> The current directory in java [System.getProperty("user.dir")] points to
> Tomcat, so that won't help either.
>
> Does anyone know of a way to access the current application's Data folder
> within Java?
>
> --
> To respond to this post, please click the following link:
> http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/1226614

r simply reply to this email.