Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This code creates an alies, "javacdj", that will:
- #
- # - Compile your Java project that is in the CWD (all .java files)
- # - Generate documentation for it using javadoc
- # - Package it into a JAR (name is the CWD's basename, JAR is stored in CWD)
- alias javacdj='javac *.java; find . -type f -name "*.java" | xargs javadoc -d doc -use -version -author -windowtitle "Docs - $(basename $(pwd))" -doctitle "$(basename $(pwd))" -linksource -keywords; jar cfm "$(basename $(pwd)).jar" "manifest.txt" *.class'
- # Place the above line into .bashrc or .bash_profile to use it
Add Comment
Please, Sign In to add comment