RP English
 
www.ilpiola.it
Roberto Piola
Work
Freebies
  • Java brewer

  •  
     

    Versione Italiana

     

    My Java brewer


    While working with the javac compiler, I felt the need for some sort of Makefile... this script for the bash shell is very similar to a Makefile: it scans the current directory for files that were modified after the last .class (i.e.: after the last compilation), and then runs javac on them.

    Click to download file brew
    In order to install it, copy it into somewhere in your path, and set the execution permits.

    Usage: cd to the directory where your project resides and type

    brew
    
    Known bug: it does not recompile some classes if you manually delete the .class files and you do not touch the corresponding .java sources; it is good for routine work, not for strange things.

     


    Impostazioni cookies