Skip to content

Commit

Permalink
[scripts] Fixing the module names in the Javadoc generation script.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Aug 15, 2017
1 parent bc6f3b8 commit f05e39b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions build-tools/scripts/generate-aggregate-javadoc.sh
@@ -1,16 +1,23 @@
#!/usr/bin/env bash

PLUGIN_MODULES=("./eclipse-sarl/plugins/io.sarl.lang.core" "./eclipse-sarl/plugins/io.sarl.core" "./eclipse-sarl/plugins/io.sarl.util" "./sre/io.janusproject/io.janusproject.plugin")
PLUGIN_MODULES=("./main/coreplugins/io.sarl.lang.core" "./main/apiplugins/io.sarl.core" "./main/apiplugins/io.sarl.util" "./sre/io.janusproject/io.janusproject.plugin")

SOURCE_PATH=""
for module in "${PLUGIN_MODULES[@]}"
do
module_path="${module}/target/generated-sources/java"
if [ -z "${SOURCE_PATH}" ]
pom_path="${module}/pom.xml"
if [ -f "${pom_path}" ]
then
SOURCE_PATH="${module_path}"
module_path="${module}/target/generated-sources/java"
if [ -z "${SOURCE_PATH}" ]
then
SOURCE_PATH="${module_path}"
else
SOURCE_PATH="${SOURCE_PATH}:${module_path}"
fi
else
SOURCE_PATH="${SOURCE_PATH}:${module_path}"
echo "${module} no found." >&2
exit 255
fi
done

Expand Down

0 comments on commit f05e39b

Please sign in to comment.