Line break in a properties file

Sometimes it is necessary to carry a long text over to the next line in a property file. The solution is to use the backwards slash  “\”  and then press “Enter” (symbol “\n” for a new line). In this case the backwards slash is used to escape “\n” symbol :)

Example:


service=ApplicationInterface
service.exported.methods= \
 ApplicationInterface.readData, \
 ApplicationInterface.writeData, \
 ApplicationInterface.editData, \
 ApplicationInterface.printData

Advertisements

About tsvetanv

Friends, Books, Music, Math, Programming.
This entry was posted in Java and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s