2009/12/22 David Bernard <david.bernard...@gmail.com>

> Dirty solutions (If you already have maven installed and be able to build
> lift with maven) :
>
> 0. replace
> $HOME/.m2/repository/org/scala-lang/scala-compiler/2.8.0-SNAPSHOT/scala-compiler-2.8.0-SNAPSHOT.jar
> by symlink to the directory with classes result from scalac scalac
> compilation
>
> 1. Or at the end of scalac scalac compilation create a jar and copy
> (override) t in place of
> .m2/..../scala-compiler/2.8.0-SNAPSHOT/scala-compiler-2.8.0-SNAPSHOT.jar
>
> 2. Or you could run maven with the -Dmaven.scala.displayCmd=true then the
> command line used to build will be displayed.
> Copy the line into a .sh/.cmd
> Modifie the location scala .jar to use the output of your scalac scalac
> compilation.
>


The catch here is if there's a line-length limit in your OS - the classpath
gets truncated and then it all goes pear-shaped...



> Notes :
> * the call of scalac is wrapped into a main able to handle a long list of
> arguments from file (working with any version of scala).
> * maven-scala-plugin was created to used classes (scalac) packaged into jar
>
> Sorry to not provide a better solution.
>
> /davidB
>
> On Tue, Dec 22, 2009 at 15:16, martin odersky <martin.oder...@epfl.ch>wrote:
>
>> On Tue, Dec 22, 2009 at 2:35 PM, Josh Suereth <joshua.suer...@gmail.com>
>> wrote:
>> > For curiousities sake, if you're building using fsc, are you running
>> scalac
>> > via an exploded classpath (i.e. not a JAR file?).  If so, I'll try to
>> come
>> > up with a longer-term solution for this.
>>
>> Yes, exactly. My usual setup is that my output directory is the first
>> item on the classpath. So any files I recompile get chosen first.
>>
>> >
>> > If we allowed you to do the following:
>> >
>> > mvn reactor:make -Dmake.artifacts=net.liftweb:lift-mapper -P local-scala
>> > -Dscala.local.classpath=classfiledir
>> >
>> > would that be sufficient?  We could also have this do conditional
>> > computation in the future.
>>
>> Does that mean that the scala compiler would then be run out of
>> classfiledir? Yes, that could work.
>>
>> Cheers
>>
>>  -- Martin
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/liftweb?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>



-- 
Kevin Wright

mail/google talk: kev.lee.wri...@googlemail.com
wave: kev.lee.wri...@googlewave.com
skype: kev.lee.wright
twitter: @thecoda

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to