Skip to content

Commit

Permalink
Updated build scripts to generate javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Fiscaletti committed Feb 2, 2018
1 parent 83798d9 commit c4b2237
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -12,3 +12,4 @@ lib/nblibraries.properties
manifest.mf
nbproject/
/build/
docs/
9 changes: 9 additions & 0 deletions build.bat
Expand Up @@ -52,5 +52,14 @@ REM Clean up.
@echo Cleaning up...
rmdir /S /Q tmp

REM Generate JavDocs
WHERE javadoc > nul
IF %ERRORLEVEL% NEQ 0 (
ECHO Could not generate javadocs, Error: command 'javadoc' not in path.
) ELSE (
ECHO Generating JavaDocs^.^.^. ^(^.^/docs^)
javadoc -sourcepath ./src/ -d ./docs -subpackages jtwod -exclude jtwod.examples > nul
)

@echo Done.
echo Output: %file%
8 changes: 8 additions & 0 deletions build.sh
Expand Up @@ -56,5 +56,13 @@ jar -cvf $file -C tmp . >/dev/null
echo "Cleaning up..."
rm -rf tmp

# Documentation
if ! [ -x "$(command -v javadoc)" ]; then
echo "Could not generate javadocs, Error: command 'javadoc' not in path."
else
echo "Generating JavaDocs... (./docs)"
javadoc -sourcepath ./src/ -d ./docs -subpackages jtwod -exclude jtwod.examples >/dev/null 2>&1
fi

echo "Done."
echo "Output: $file"

0 comments on commit c4b2237

Please sign in to comment.