Java

SCons provides Builder objects for creating various types of Java output files.

Building Class Files: the Java Builder

The Java builder takes one or more input .java files and turns them into one or more .class files Unlike most builders, however, the Java builder takes target and source directories, not files, as input.

        env = Environment()
        env.Java(target = 'classes', source = 'src')
      

The Java builder will then search the specified source directory tree for all .java files, and pass any out-of-date

        XXX
      

The Jar Builder

The Jar builder object XXX

        env = Environment()
        env.Java(target = 'classes', source = 'src')
        env.Jar(target = '', source = 'classes')
      

        XXX
      

Building C header and stub files: the JavaH Builder

XXX

        XXX
      

        XXX
      

Building RMI stub and skeleton class files: the RMIC Builder

XXX

        XXX
      

        XXX