Hi,
Did you try with normal Java way: System.getProperty("
os.name"); ?
On Tue, Jul 3, 2012 at 12:53 PM, brett <
br...@jemstep.com> wrote:
> hi,
>
> I have an os-specific dependency for a project, and would like to use
> classifiers to determine which dependency to pull down.
>
> e.g, i have 2 artifacts in my repo, artifact-3.0.0-SNAPSHOT-linux.jar and
> artifact-3.0.0-SNAPSHOT-mac.jar:
>
> // os should be "linux" or "mac"
> os = determineOS()
>
> libraryDependencies ++= Seq(
> "com.company.grp" % "artifact" % " 3.0.0-SNAPSHOT" classifier os
> )
>
> Any guidance on how to get this in sbt?
>
> Thanks, brett
>
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/simple-build-tool/-/Mu_Qjp5PoJkJ.
> To post to this group, send email to
simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
>
simple-build-t...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/simple-build-tool?hl=en.