Skip to content
Kota Mizushima edited this page Jan 22, 2014 · 3 revisions

onionc

 onionc [-options] <source files>

onionc compiles Onion's source file and generate .class files. Generated class files can be executable by java command in J2SE.

Available options:

  • -d
    • Specify base directory on class files are generated. If this option is specified, directories are automatically created corresponding package and class files are stored into it. Otherwise, base directory is current working directory.
  • -encoding
    • Specify encoding of Onion's source file.
  • -classpath
    • Specify class path needed to compile source files. class path format is almost same as Java.
  • -maxErrorReport
    • Specify the max number of compilation error reported by compilers.

##onion

 onion [-options] <source file> <command line arguments>

onion compiles Onion's source file and execute it. Currently, the number of source file specified is one. <command line arguments> are passed as the compiler' command line arguments.

Available Options:

  • -encoding

    • Specify encoding of Onion's source file.
  • -classpath

    • Specify class path needed to compile and execute source files. class path format is almost same as Java.
  • -maxErrorReport

    • Specify the max number of compilation error reported by compilers.
Clone this wiki locally