Guest User

Untitled

a guest
Nov 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # This code creates an alies, "javacdj", that will:
  2. #
  3. # - Compile your Java project that is in the CWD (all .java files)
  4. # - Generate documentation for it using javadoc
  5. # - Package it into a JAR (name is the CWD's basename, JAR is stored in CWD)
  6.  
  7. 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'
  8.  
  9. # Place the above line into .bashrc or .bash_profile to use it
Add Comment
Please, Sign In to add comment