Re: OutputStreamPath

2007-03-02 Thread Laurie Harper
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: --- Laurie Harper <[EMAIL PROTECTED]> wrote: URL res = Thread.currentThread() .getContextClassLoader() .getResource(pathToConfigurationFile); // Save the properties

Re: OutputStreamPath

2007-03-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Dave Newton wrote: > --- Laurie Harper <[EMAIL PROTECTED]> wrote: >> URL res = Thread.currentThread() >> .getContextClassLoader() >> .getResource(pathToConfigurationFile); >> // Save the properties >> OutputStrea

Re: OutputStreamPath

2007-03-01 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > URL res = Thread.currentThread() > .getContextClassLoader() > .getResource(pathToConfigurationFile); > // Save the properties > OutputStream out = new FileOutputStream(res); > properties.store(out, ""); Ooo, I did

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Yes you are right, but what i have in the properties file is the database to which the user wants to connect, for example oracle or sql. Thanks 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set th

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
I just see your answer, thanks!!! In fact is the same that the solution i Found, Thanls 2007/3/1, Laurie Harper <[EMAIL PROTECTED]>: Dave Newton wrote: > --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> >> I have a question, how I can set the path for the >> OutputStream like i get it for the

Re: OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Got it: String path= Thread.currentThread().getContextClassLoader(). getResource(pathToConfigurationFile).getPath(); OutputStream out = new FileOutputStream(path); properties.store(out, ""); 2007/3/1, Daniel Chacón Sánchez <[EMAIL PROTECTED]>: S

Re: OutputStreamPath

2007-03-01 Thread Laurie Harper
Dave Newton wrote: --- Daniel Chacón Sánchez <[EMAIL PROTECTED]> I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? I'm not sure you can do that, particularly since a resource might be inside a JAR file or be located in a

Re: OutputStreamPath

2007-03-01 Thread Dave Newton
--- Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: > Someone? Sorry it took me so long. > I have a question, how I can set the path for the > OutputStream like i get it for the InputStream with > getResourceAsStream? I'm not sure you can do that, particularly since a resource might be inside

OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Someone? Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion

OutputStreamPath

2007-03-01 Thread Daniel Chacón Sánchez
Hi all I have a question, how I can set the path for the OutputStream like i get it for the InputStream with getResourceAsStream? This is my code: Properties properties = new Properties(); String pathToConfigurationFile = "common/properties/Configuracion.propertie