cancel
Showing results for 
Search instead for 
Did you mean: 

Properties file not deploys the path correctly

Former Member
0 Kudos

Hello,

I am deploying a Web dynpro application with properties file.

One of the properties contains a path that I am later using in my app, something like this:

PATH =
myserver
folder1
folder2

The problem is that after deployment I see this property in the config tool with one backwards slash like this:

PATH = \myserver
older1\folder2\

And I need it with
in my app.

Even after applying a custom value: "
myserver
folder1
folder2
" and clearing the cache it doesn't seem to work.

I know that in java \ states that the char afterwards is special so
realy means \ so I even tried to deploy this : PATH =

myserver

folder1

folder2

but got the same behaviour.

Any idea why is this happening?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185029
Active Contributor
0 Kudos

Hi,

Have you tried using forward slash / instead of backslash \

Ashu

Former Member
0 Kudos

Hi Ashu,

a path with / is not valid in Windows.

It has to be a valid path, I am using it later in my code to get some file from the Network.

Roy

former_member185029
Active Contributor
0 Kudos

Hi,

Try this solution..

PATH =

myserver

folder1

folder2

Later on while reading path in application, simply trim the space or use replace function to remove it.

Ashu

Former Member
0 Kudos

Hi Ashu,

i haven't tried it yet but I prefer not to manipulate the path in my code, it's a basic requirement, it should work as it is. Why do you think your one will work?

Roy

former_member185029
Active Contributor
0 Kudos

Hi,

Since you have already tried using four slashes and it didnt work.

I thot putting space in between will give different result.

For me, the four slash option shud have worked.

Ashu