Posted By

abstraktor on 07/03/11


Tagged

java c code indentation source beautify uncrustify


Versions (?)

uncrustify c-like sourcecode


 / Published in: Bash
 

URL: https://github.com/bengardner/uncrustify.git

you may not want to use the buggy apt version. just compile it yourself

  1. #use this for an ant task:
  2. # <exec executable="bash">
  3. # <arg value="-i" />
  4. # <arg value="-c" />
  5. # <arg value="uncrustify --no-backup $(find ${src} -name &quot;*.java&quot;)" />
  6. # </exec>
  7.  
  8.  
  9. #make sure to configure like this
  10. cp /usr/share/uncrustify/ben.cfg ~/.uncrustify.cfg
  11.  
  12. #uncrustify all java files in this folder
  13. uncrustify --no-backup $(find -name "*.java")

Report this snippet  

You need to login to post a comment.