Multi-ligne properties value
bonjour à tous,
voila mon fichier properties autoreport.properties
Code:
1 2 3
|
project.path = C:\\workspace\\ProjetA \
C:\\workspace\\ProjetB |
voilà mon code java
Code:
1 2 3 4 5 6 7 8 9 10
|
final Properties properties = new Properties();
try
{
properties.load(new FileInputStream("autoreport.properties"));
}
catch (final IOException e)
{
e.printStackTrace();
} |
Le problème est: lorsque je fais properties.getProperty("project.path") j'ai que le premier ligne alors que je veux avoir les deux lignes. Notez que j'ai utilisé l'antislash pour séparer les deux lignes.
Où est le problème? c'est très urgent, merci d'avance pour votre aide ;)
bonne journée,
Ali