analysis.lami: check if command is executable, and support relative paths
authorPhilippe Proulx <pproulx@efficios.com>
Wed, 1 Jun 2016 21:54:10 +0000 (17:54 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 4 Aug 2016 06:23:33 +0000 (02:23 -0400)
commit5f7c6b8481145e598796b03a1cf1b9e5f839289c
treeb0d6e366e81368193a30806a10fedcb3ceccd9f0
parent9415b79946bde9a801d56d86f656053f69611900
analysis.lami: check if command is executable, and support relative paths

This patch makes LamiAnalysis check if a given executable name
is indeed executable, not just existing.

It also adds support for relative paths. For example, if your
current working directory is /tmp/hello, and there's an analysis
at /tmp/hello/my-analysis, then creating a custom external
analysis starting with `./my-analysis` finds the executable
file/link.

Change-Id: I7a6ba4bbd95a9c190296c07f0f04c87aca2ecf34
Signed-off-by: Philippe Proulx <pproulx@efficios.com>
Reviewed-on: https://git.eclipse.org/r/74334
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
analysis/org.eclipse.tracecompass.analysis.lami.core/src/org/eclipse/tracecompass/internal/provisional/analysis/lami/core/module/LamiAnalysis.java
This page took 0.026091 seconds and 5 git commands to generate.