Skip to content

Commit

Permalink
Close #54 by removing JAVA_HOME check
Browse files Browse the repository at this point in the history
  • Loading branch information
krampstudio committed Sep 21, 2013
1 parent 85996c2 commit 2ca0c42
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tasks/jsdoc-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module.exports = function jsDocTask(grunt) {
options = grunt.task.current.options({'private': true}),
done = grunt.task.current.async(),
srcs = grunt.task.current.filesSrc,
javaHome = process.env.JAVA_HOME,
jsDocPath = grunt.task.current.data.jsdoc,
jsDocNpmPath = 'node_modules/jsdoc/jsdoc',
timeout = 60000, //todo implement and move in options
Expand Down Expand Up @@ -61,7 +60,6 @@ module.exports = function jsDocTask(grunt) {

grunt.log.debug(util.inspect(options));


if(jsDocPath && grunt.file.exists(jsDocPath) && grunt.file.isFile(jsDocPath)){
//use the given jsdoc path if set
jsDoc = jsDocPath;
Expand All @@ -73,13 +71,6 @@ module.exports = function jsDocTask(grunt) {
// convert jsdoc path to relative path
jsDoc = path.relative('.', jsDoc);//, path.resolve('.'));

//check if java is set
if(!javaHome){
grunt.log.error("JAVA_HOME is not set. Jsdoc requires Java to run.");
} else {
grunt.log.debug("JAVA_HOME : " + javaHome);
}

//check if jsdoc npm module is installedz
if(jsDoc === undefined){
grunt.log.error('Unable to locate jsdoc');
Expand Down

0 comments on commit 2ca0c42

Please sign in to comment.