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
-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
--- 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
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
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
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
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
--- 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
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
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
10 matches
Mail list logo