Menu

New feature: Ability to pass options to javac

2002-09-19
2002-09-20
  • Andrew Marrington

    JMake should allow the user to pass options to javac.

     
    • Jason Weathered

      Jason Weathered - 2002-09-20

      Or, we could just add a command line parameter (such as the industry standard "-" (that's a single dash)) to indicate that everything following the dash on the command line signifies parameters to be passed directly to the sub-processes without modification.

       
    • Andrew Marrington

      I don't know about using a - since the options being passed to javac will be using a -, and we want to differentiate JMake options from javac options.... maybe another character... maybe -- (two dashes)?

       
      • Jason Weathered

        Jason Weathered - 2002-09-20

        Maybe I should have provided an example. Usage would be like:

        jmake all - -deprecation

        So anything before the - goes to jmake, anything after gets passed to the relevant subprocess (javac, javadoc, jar, etc). Many apps on linux use a syntax like this (although I cannot think of a specific example at this time).

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.