Fix crash on product disabling.

Task-number: QBS-561
Change-Id: Ia56280cb26241c7fb9debd0d4ce1349b041405a6
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Doc: fix copy-paste error.

Change-Id: I7baa14d5b14a19b0240476584f91a47030f781a7
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Executor: Record only the first failing job's error message.

Otherwise we end up with irrelevant "Transformer canceled"
messages, while the actual error gets lost.

Change-Id: I81de84d75cdd94471c13012f23bca5bfd663ab96
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Now supports compiler name without path in setup-toolchains

setup-toolchains may now lookup compiler binary in PATH variable

Task-Number: QBS-540
Change-Id: I5ec1c3419dc2e0120bb309be3f0f612228a928e7
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
fix crash on Properties block in Export item

The merged Export item was lacking a file context.
Added a QBS_CHECK in instantiateModule to ensure a valid file context
of the module instance scope.

Task-number: QBS-550
Change-Id: I04368ba2e290a9af70f22e9c4c07324e295da4f0
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Merge remote-tracking branch 'origin/1.2'

Change-Id: I4a1b580c51119b1a740e86a289d867e6f3102a39
Autotests: Increase timeout for "infinite loop" tests.

This is a bit of a shot in the dark to fix a non-reproducible test
failure on our build machine.

Change-Id: I8923c8744e3f5febb55a508a88c46f0fc9543da5
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Give the whole SetupProjectParameters to the ModuleLoader.

Makes the load() function signature simpler, and we will need
additional data from the SetupProjectParameters object later.

Change-Id: If02f7510c00158da84994cc732e08361f2e491e2
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
fix PathProbe

We must push the probe's scope last, because otherwise the file scope
would shadow property names like fileName and filePath.

Task-number: QBS-383
Change-Id: I4c78b6ad65c2f3e9af5c5c4dda721f6bb6475324
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
use PathProbe in dynamicRuleOutputs test

That's more generic and adds a Probe usage to the test suite.

Change-Id: I022022f9c1d77d5508fbbe848ce56a73eb115185
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Executor: Check whether the output directory was created successfully.

Change-Id: Ic4b4c2b1362e1523ffa4020b9c4c157cd085fd40
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
build fix

Change-Id: Ifd81cdc3c29a5de32e15a056bec996ecf1f938b3
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
add simple blackbox test for Probe items

Change-Id: Ie0df664a2bec152ea7d537365df108a9da03d2ef
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
make product.sourceDirectory available in Probe item

Task-number: QBS-393
Change-Id: I33c588fd0c00231db2ca4fa4f9b70a5b1f5bc18f
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Introduce sensible build directory values.

Currently, all products share the same build directory,
and rules are responsible for making their artifact file
paths unique, which is annoying for module authors and
introduces lots of code duplication.
Instead, make the product build directories unique and let
these directories be the base directory of relative artifact
file paths.
Also export the top-level build dir as project.buildDirectory
to the JavaScript side so rules can refer to that one if necessary.

Task-number: QBS-567
Change-Id: I257d37cad01ec6dece3e214799b917149677d80c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Fix blackbox tests.

There were false negatives on Unix systems due to the use of
QFile::exists() on paths supposed to be executable files. We now
explicitly check whether the path refers to a file as to not
inadvertantly match directories anymore.

Change-Id: I3023fb0b9452f5cf3fbf1f2d678a4291cac75e42
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Fix MSVC working directory.

The directory for object files has changed.

Change-Id: I78109ccfd2a23aedb2cd5a57ef689099d621e485
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
remove superfluous property assignment

This buildDirectory assignment is overwritten some lines below.

Change-Id: I54c4b198c0f4efcb45ffc358ab349fc976cade00
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Expose project source directory to JavaScript side.

Task-number: QBS-567
Change-Id: If2b09c42760426bf9d22c77a2f33083a1f839c94
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
remove superfluous parameter from ModuleLoader::load

Change-Id: I0fe591139749f01a4dcaf97633b592c774b18918
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>