ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject properties, path with trailing \\
Date Thu, 03 Feb 2005 08:24:22 GMT

Hi,

yesterday when writing a property file i discovered
some strange behaviour, i didn't saw before.

(Ant 1.6.2 / Win2k / j2sdk 1.4.2_05)

normally i write my properties like that :

jarpath.test= /libs/test/deploy
statics.test=./Global_Files/statics.txt

But now i had to put a serverpath in and i wrote it like that
(don't ask why, have to switch between win and unix over the day)

# target for buildartifacts
ear.target=\\testserver\deploy_test\web\test\foo\bar

and it didn't work, the path was not parsed correctly

so i masked the \ as usually in java :

# target for buildartifacts
ear.target=\\\\testserver\\deploy_test\\web\\test\\foo\\bar

and it worked.

When writing :

# target for buildartifacts
ear.target=//testserver/deploy_test/web/test/foo/bar

it works also !

Should be mentioned in the manual if not already.

Gilbert










---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message