xp-framework/xp-runners — pull request #4 by ohinckel (2012-07-18 08:50:16+00:00)
Title: Make runner work with xp.ini without NL at EOL

The XP runners currently retrieve the class path by analyzing the xp.ini configuration file. This file usually have a content like this:
```ini
use=/the/path/to/xp:/some/other/path/to/include\n
```
Usually these files have a newline at the end of the this line. Since the configuration is read by using shell commands (for example `while` and `read`) the configuration lines should always be terminated with a newline character!

This patch adds support to configuration lines without having a newline character. This situation happens if some editor is not saving the file with a trailing newline character in the last line of code:
```ini
use=/the/path/to/xp:/some/other/path/to/include
```
In this case the reading of the configuration file will just skip this line and the `use=...` is simply ignored. That's because the implementation is like this:
```bash
whlie read $line ; do
...
done < "$i/xp.ini"
```
In case the line read from the configuration file **has a newline character** the variable `$line` will get the content and read will **exit with an successfull exit status**. But in case the line will **not have a trailing newline character** the variable `$line` will get the content but read will **exit with an error status**!

This patch will change the while read loop not only checking the read exit status, instead it additionally check the content of the line:
```bash
while read line || [ -n "$line" ] ; do
...
done < "$i/xp.ini"
```