You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by sjcorbett <gi...@git.apache.org> on 2015/01/05 16:01:06 UTC
[GitHub] incubator-brooklyn pull request: Fixes to make_javadoc.sh script
Github user sjcorbett commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/424#discussion_r22464553
--- Diff: docs/_build/make-javadoc.sh ---
@@ -19,16 +19,24 @@ export DATESTAMP=`date "+%Y-%m-%d"`
echo "building javadoc at $DATESTAMP from:
$SOURCE_PATHS"
+# BROOKLYN_VERSION_BELOW
+deps_jar=../../usage/all/target/brooklyn-all-0.7.0-SNAPSHOT-with-dependencies.jar
+if [ \! -f ${deps_jar} ]; then
+ echo "Expected to find ${deps_jar}"
+ echo "Please run a full Maven build in the project root"
+ exit 1
+fi
+
javadoc -sourcepath $SOURCE_PATHS \
-public \
-d target/apidocs/ \
-subpackages "org.apache.brooklyn:io.brooklyn:brooklyn" \
- -classpath ../../usage/all/target/brooklyn-all-0.7.0-SNAPSHOT-with-dependencies.jar \
+ -classpath "${deps_jar}" \
-doctitle "Apache Brooklyn" \
-windowtitle "Apache Brooklyn" \
-header "Apache Brooklyn" \
-footer '<b>Apache Brooklyn - Multi-Cloud Application Management</b> <br/> <a href="http://brooklyn.io/" target="_top">brooklyn.io</a>. Apache License. © '$DATESTAMP'.' \
- | tee target/javadoc.log
+2>&1 1>/dev/null | tee target/javadoc.log
--- End diff --
Can you also make sure `target` exists? If it doesn't the output isn't redirected as expected and the subsequent `grep` isn't grepping anything.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---