build: tasks: Add quicker cleanup of tasks

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: module: config: Add better file handling

From this commit on, we explicitly close our files. I don't trust java
on this one.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
Merge https://github.com/schoentoon/build into schoentoon

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>

Conflicts:
	src/eu/orionos/build/Config.java
	src/eu/orionos/build/Module.java
build: help: Pretty up the help message

The previous changes to the help messages were lost somewhere. Those
changes have been put back in.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: Add travis config file

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: Add maven setup

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: mvn: Change name of output jar file

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: Generator: Add module generator mockup

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Connect the data structures

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: get the questions going

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Redo most of it

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Add a start to the questions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Add json code and more questions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Add compiler flag support

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: generator: Add dependency and file writing

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: tasks: make thread protection scale better

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: Fix infinite loop bug

The application would fall into an infinite loop if no commands would
have to be ran. In order to prevent this from happening, I added a count
of the total number of commands issued.

The counter, while not necessarily having to be atomic (only one thread
actually writes to it) was indeed implemented as atomic. This is because
if the parsing ever were to be done by multiple threads, this wouldn't
break the build in some opaque way.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
build: command: hide number of threads from user

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>
Merge branch 'master' of git://github.com/schoentoon/build into schoentoon
build: copyright: Credit a good friend for his work

Our dear friend Toon Schoenmakers forgot to credit himself in the
copyright headers of the source files. I added his name for him.

Thanks for what you did Toon, we appreciate it.

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>