|
There are a couple of things I change in idea.bat
every time I install a new version of IDEA, so I thought I'd throw this out
there and see if others do the same thing and if there's enough interest to
have the standard build changed:
1) Identical to the JAVA_HOME check, add an
IDEA_HOME check so that I can just set up an environment variable and never have
to change the batch file again:
IF EXIST "%IDEA_HOME%" goto
idea_home_exists
SET IDEA_HOME=..
:idea_home_exists
1a) Alternatively, the way ANT does this is that it
sets ANT_HOME to %~dp0, which is the directory of the currently running batch
file for NT. Does anybody really develop on Windows 95 and
98 anymore? (I realize I'll get a lot of backlash from the Win9x community
for that one...). Actually, they have other ways of dealing with win9x,
and one could be as mentioned above.
2) Make the DOS window go away when launching IDEA
(maybe someone has a better suggestion for how to do this). I set JAVA_EXE
to use javaw.exe rather than java.exe and add 'start "IDEA"' to the execution
line:
SET
JAVA_EXE=%JAVA_HOME%\bin\javaw.exe
... start "IDEA" "%JAVA_EXE%" %JVM_ARGS%
....
Thanks,
-- Michael
|
