Re: [sbt] war overlay

39 views
Skip to first unread message

Mark Harrah

unread,
Sep 27, 2012, 10:28:10 PM9/27/12
to simple-b...@googlegroups.com
On Tue, 25 Sep 2012 15:44:29 -0700 (PDT)
cdow <chris...@gmail.com> wrote:

> I'm trying to construct a war overlay task that would operate something
> like this <http://maven.apache.org/plugins/maven-war-plugin/overlays.html>.
> I'm having some difficulty getting to the contents of a war file declared
> as a managed dependency. The 'managedClasspath' key does not seem to
> include war files. I can get to the 'ModuleID' for the declared dependency
> but I can't figure out how to use this to resolve the war file. Does
> anybody know how I might be able to get to the contents of a war file
> declared as a managed dependency?

The classpathTypes setting (with type Set[String]) controls what types end up on the classpath. It sounds like you want to explode the war and include the contents on the classpath. For this, you would process the UpdateReport[1] from the `update` task to grab the war files in configuration of interest. Then, add them to the managedClasspath in that configuration. You can see the default definition[2] and implementation[3] for normal managed dependencies.

-Mark


[1] https://github.com/harrah/xsbt/wiki/Update-Report
[2] https://github.com/harrah/xsbt/blob/0.13/main/Defaults.scala#L730
[3] https://github.com/harrah/xsbt/blob/0.13/main/Defaults.scala#L1171

> Thanks
>
> --
> 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/-/MX1mczig5RAJ.
> 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.
>

Reply all
Reply to author
Forward
0 new messages