4 Replies Latest reply on Oct 5, 2005 2:48 PM by Ruel Loehr

    javac -source and -targets

    Ruel Loehr Novice

      In looking at the outputs of a buildmagic build versus a jbossbuild build I have noticed an inconsistency that I would like to get clarification on.

      When using buildmagic, depending on the module, we build to different source and targets.

      Example: Cluster or JMS

      [javac] '-target'
       [javac] '1.2'
       [javac] '-g'
       [javac] '-source'
       [javac] '1.3'


      Example: J2SE:

      [javac] '-target'
       [javac] '1.4'
       [javac] '-g'
       [javac] '-source'
       [javac] '1.4'


      Basically, if the module defines compilation instructions in it's build.xml it will be 1.2, 1.3 pair. Otherwise if the module uses the compile targets in the buildmagic.ent file it will be a 1.4, 1.4 pairing. Or, some modules explicitly define their source, targets pair (e.g. aop or aspects).

      Should there be more consistency among the modules as to their compilations or is this by design and or insignificant?

      Should 1.4 target be the mininum allowed for a jboss-head?