This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scalac --optimised and maven buidl

1 reply
edmondo1984
Joined: 2011-09-14,
User offline. Last seen 28 weeks 3 days ago.
Dear all,I am building a maven project containing both Scala and Java classes. Which setting should I add to make the scalac optimise java bytecode?
Best RegardsEdmondo
Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Scalac --optimised and maven buidl
scalac only generates bytecode for SClaa files.   You can set the arguments to scalac using the "args" setting of the plugin:
http://scala-tools.org/mvnsites/maven-scala-plugin/compile-mojo.html#args
Something like:  
      <plugin>
        <groupId>org.scala-tools</groupId>
        <artifactId>maven-scala-plugin</artifactId>
        <configuration>
          <args>
            <arg>-optimise</arg>
          </args>
        </configuration>
      </plugin>

On Mon, Jan 23, 2012 at 3:04 AM, Edmondo Porcu <edmondo.porcu@gmail.com> wrote:
Dear all,I am building a maven project containing both Scala and Java classes. Which setting should I add to make the scalac optimise java bytecode?
Best Regards Edmondo

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland