Invertability Of Local Publication And Resolution
2012-05-01 18:13:48 GMT
Hi, been away for a long time.
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/-/D3sTOLKCezAJ.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Re: Resolver.ssh using ssk keyfile + password prompt does not work
2012-05-01 18:23:42 GMT
I think what you are looking to do here is use "ssh-agent". There is plenty of googleage on it. In essence, you add your key to ssh-agent, for which you will prompted the key decrypt password, after that ssh-agent will provide the key as needed without the continued prompting. This is completely an ssh suite behavior and is outside of SBT's control.
Hi,At work we have something like this on a build file:val cloudRepo = Resolver.ssh("work repo", ivyRepo,22)(Resolver.ivyStylePatterns) as ("ivy", Path.userHome / ".ssh" / "id_rsa") withPermissions("0755")the idea is to connect using ssh on port 22 to the server in val ivyRepo using the username ivy , my ssh key file.The problem is that if my ssh key requires a password, I get a popup asking for it, no problem, I enter my password for the key, but the popup comes back again.I think the problem is that my real user on my laptop is diego.medina, but to ssh to my server I use ivy, like:that works fine, but the ivy popup asks for user and password, but then I think it tries to ssh likewhich of curse fails.Does anyone have any solutions?ThanksDiego--
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/-/80KRwNoMv-UJ.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
[sbteclipse] Native libraries in classpath
2012-05-01 20:39:00 GMT
So a couple of the libraries in our unmanaged lib directory have native libraries that need to be linked to them. Easy enough to do in the eclipse project, but we're regenerating our eclipse projects fairly frequently as we add/remove dependencies or make changes to our build setup. So it would be great to have the ability to associate a native library path with a library in the sbteclipse configuration so we don't have to manually add that each time we regenerate the project. In the eclipse .classpath file it looks like:
<classpathentry kind="lib" path="../project/lib/zmq.jar">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="project/src/libOther/native/linux/x64"/>
</attributes>
</classpathentry>
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Re: Resolver.ssh using ssk keyfile + password prompt does not work
2012-05-01 21:44:58 GMT
On Tuesday, 1 May 2012 19:23:42 UTC+1, Ray Racine wrote:
I think what you are looking to do here is use "ssh-agent". There is plenty of googleage on it. In essence, you add your key to ssh-agent, for which you will prompted the key decrypt password, after that ssh-agent will provide the key as needed without the continued prompting. This is completely an ssh suite behavior and is outside of SBT's control.
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/-/9_9s8IBd-VEJ.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Re: Resolver.ssh using ssk keyfile + password prompt does not work
2012-05-01 21:48:56 GMT
On Monday, 30 April 2012 18:30:28 UTC+1, fmpwizard wrote:
that works fine, but the ivy popup asks for user and password, but then I think it tries to ssh like
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/-/gpktMCvIkyMJ.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Conditionally including a source directory
2012-05-01 22:03:00 GMT
Hi folks, What's the simplest way of arranging for a source directory to be included in the build conditional on the value of a setting? Specifically I want to include a 2.9.x specific source directory iff the project's scalaVersion <= 2.10. Cheers, Miles -- -- Miles Sabin tel: +44 7813 944 528 gtalk: miles <at> milessabin.com skype: milessabin g+: http://www.milessabin.com http://twitter.com/milessabin http://underscoreconsulting.com http://www.chuusai.com
Re: Invertability Of Local Publication And Resolution
2012-05-01 23:14:50 GMT
would using "ray" %% "hello" % "1.0" help?
Hi, been away for a long time.publish-local and update (which attempts to resolve from the local repository) don't seem to share the same default pattern. I've always worked around this by manually setting patterns but it seems a bit inefficient.Example.Create a tiny project Hello with build.sbt as follows:name := "hello"version := "1.0"organization := "ray"Publish said project via publish-local.sbt> publish-local...[info] published hello_2.9.1 to /home/ray/.ivy2/local/ray/hello_2.9.1/1.0/jars/hello_2.9.1.jar
[info] published ivy to /home/ray/.ivy2/local/ray/hello_2.9.1/1.0/ivys/ivy.xml
...Now lets pretend we want to use the above published local artifact as a standard sbt dependency.An equally simple sbt.build of a project which uses hello.jarname := "main"
version := "1.0"organization := "ray"libraryDependencies += "ray" % "hello" % "1.0"
sbt> updateResolving ray#hello;1.0 ...[warn] module not found: ray#hello;1.0[warn] ==== local: tried[warn] /home/ray/.ivy2/local/ray/hello/1.0/ivys/ivy.xml...[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::[warn] ::::::::::::::::::::::::::::::::::::::::::::::[warn] :: ray#hello;1.0: not found[warn] ::::::::::::::::::::::::::::::::::::::::::::::[error] {file:/tmp/p1/}default-df7991/*:update: sbt.ResolveException: unresolved dependency: ray#hello;1.0: not foundThe out-of-the-box sbt local publish pattern does not match the out-of-box sbt local resolution pattern.[info] published ivy to /home/ray/.ivy2/local/ray/hello_2.9.1/1.0/ivys/ivy.xml
[warn] (resolving from) /home/ray/.ivy2/local/ray/hello/1.0/ivys/ivy.xml
Can we bring the "default" local pattern for publish/resolution into alignment?
Thanks,Ray--
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/-/D3sTOLKCezAJ.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Re: Conditionally including a source directory
2012-05-01 23:29:27 GMT
Well, I don't know if it's the "simplest" way, but as I've had to do
this before, here's how I segregated some 2.10 only source such that
2.9 would still build.
unmanagedSourceDirectories in Compile <++= (baseDirectory,
scalaVersion)((bd, sv) =>
if (sv startsWith "2.10.") Seq(bd / "src" / "main" /
"scala-2.10") else Nil
),
On Tue, May 1, 2012 at 3:03 PM, Miles Sabin <miles <at> milessabin.com> wrote:
> Hi folks,
>
> What's the simplest way of arranging for a source directory to be
> included in the build conditional on the value of a setting?
> Specifically I want to include a 2.9.x specific source directory iff
> the project's scalaVersion <= 2.10.
>
> Cheers,
>
>
> Miles
>
> --
> Miles Sabin
> tel: +44 7813 944 528
> gtalk: miles <at> milessabin.com
> skype: milessabin
> g+: http://www.milessabin.com
> http://twitter.com/milessabin
> http://underscoreconsulting.com
> http://www.chuusai.com
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To post to this group, send email to simple-build-tool <at> googlegroups.com.
> To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>
[sbtosgi] Help to build a basic bundle. Working Examples? Documentations or tutorials?
2012-05-02 01:40:19 GMT
(Working on Mac OS X Lion, with JDK 1.7 from Oracle, sbt 0.11.2)
After I issue
$ sbt osgi-bundle
I keep getting a wrong MANIFEST.MF:
------->
Manifest-Version: 1.0
Bnd-LastModified: 1335919650936
Bundle-Activator: mx.umich.fie.dep.simple.gui.Activator
Bundle-ManifestVersion: 2
Bundle-Name: UMSNH.simple
Bundle-SymbolicName: UMSNH.simple
Bundle-Version: 1.0
Created-By: 1.7.0_04 (Oracle Corporation)
Import-Package: mx.umich.fie.dep.simple.gui
Include-Resource: /Users/oscarvarto/programacion/osgi/felix-simple/modul
es/first/src/main/resources,/Users/oscarvarto/programacion/osgi/felix-s
imple/modules/first/target/scala-2.9.1/resource_managed/main
Tool: Bnd-1.50.0
<------------
I want to export mx.umich.fie.dep.simple.gui, but cannot configure the project properly.
- My project's base directory is /Users/oscarvarto/programacion/osgi/felix-simple/modules/first/
- I tried to configure sbtosgi in build.sbt with this contents:
-------------->
organization := "UMSNH"
name := "simple"
version := "1.0"
scalaVersion := "2.9.2"
libraryDependencies <+= scalaVersion { "org.scala-lang" % "scala-swing" % _ }
seq(osgiSettings: _*)
OsgiKeys.bundleActivator := Some("mx.umich.fie.dep.simple.gui.Activator")
OsgiKeys.exportPackage := Seq("mx.umich.fie.dep.simple.gui;version=\"1.0\"")
OsgiKeys.importPackage := Nil
OsgiKeys.privatePackage := Nil
<-------------------------
However, if I unjar the bundle, I get the wrong MANIFEST.MF
I also tried to write a Build.scala configuring the same options, following this post https://groups.google.com/forum/#!searchin/simple-build-tool/sbtosgi/simple-build-tool/Qfdbr2Af120/wlmHXAFPBvw, but couldn't write something that compiled properly.
Heiko Seeberger has done a great job but I need more documentation
(or sadly, have to reluctantly work with java only)!! Does anybody
knows a tutorial for sbtosgi? Has anyone some basic (working) example to
share?
ScalaModules has a repo with examples, however, those are outdated (sbt 0.7, scala 2.8, so different sintax, etc.)...
HELP PLEASE!!! --You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-build-tool <at> googlegroups.com.
To unsubscribe from this group, send email to simple-build-tool+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
RSS Feed