2 comments

Hello cbismuth,

Is there any way to generate InspectionGadgets reports from an Ant
script ?


Yes. You need to run inspect.bat from the IDEA bin directory.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Sounds really great, thank you Dmitry for this hint.

I'm a Mac user and I have some trouble to run inspect.sh because JDK can't be found event though .profile seems to be right.

Could please have a look to these lines below?

Thank you,
Chris

========== .profile ==========

JDK_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/


IDEA_JDK=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
IDEA_HOME=/Applications/Maia-IC-95.4.app/


PATH=$JAVA_HOME/bin/:$PATH



========== inspect.sh output ==========
imac-de-chris:bin chris$ pwd
/Applications/Maia-IC-95.4.app/bin


imac-de-chris:bin chris$ java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)


imac-de-chris:bin chris$ javac -version
javac 1.6.0_17


imac-de-chris:bin chris$ ./inspect.sh
ERROR: cannot start IntelliJ IDEA.
No JDK found to run IDEA. Please validate either IDEA_JDK or JDK_HOME points to valid JDK installation
./idea.sh: line 49: ./../bin/idea.vmoptions: No such file or directory
./idea.sh: line 67: /bin/java: No such file or directory
./idea.sh: line 67: exec: /bin/java: cannot execute: No such file or directory

0

Please sign in to leave a comment.