tags:

views:

47

answers:

2

Because I am not using the English edition of Windows XP,I'll need to type:

javadoc -locale en_US -version -author xxx.java

to produce what I want.The question is how to avoid typing these switch the next time I run javadoc?

thanks.

+2  A: 

My usual answer is to write a batch script:

@echo off
javadoc -locale en_US -version -author %*

...and then use that instead of javadoc. (The %* passes through all of the command-line options given to the batch file.)

T.J. Crowder
+1  A: 

Put it in a batch file, and call the batch instead?

$ type myjavadoc.cmd

@"%JAVA_HOME%\bin\javadoc.exe" -locale en_US -version -author %*
Ronald Blaschke