« Return to Thread: "supplying JavaScript resources"

Re: "supplying JavaScript resources"

by Tamás Cservenák :: Rate this Message:

Reply to Author | View in Thread

Hi,

yes. You can stack all of yours "static" resources under
src/main/resources/static (the last part "static" is not mandatory):
http://scm.sonatype.org/repobrowser.svn?path=/trunk/nexus/nexus-core-plugins/nexus-lvo-plugin/src/main/resources/&revision=HEAD&name=Nexus

And then you need to create a NexusResourceBundle component with some
unique hint:
http://scm.sonatype.org/showfile.svn?path=/trunk/nexus/nexus-core-plugins/nexus-lvo-plugin/src/main/java/org/sonatype/nexus/plugins/lvo/LvoResourceBundle.java&revision=HEAD&name=Nexus

The getContributedResouces() will just "mount" it to the 2nd param path.

And you have a set of methods where to "contribute" to the index.xml
(if needed).

About actually extending the UI with JS code I can't tell too much :) Damian?

That's all.

~t~

On Tue, Feb 3, 2009 at 1:34 AM, Edelson, Justin
<Justin.Edelson@...> wrote:
>
> According to https://docs.sonatype.com/display/NX/Nexus+UI+Extension, plugins can extend the UI by "supplying JavaScript resources", but it's not yet obvious to me how one does this. Is there some Plexus magic I need to do?
>
> Thanks,
> Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: nexus-dev-unsubscribe@...
For additional commands, e-mail: nexus-dev-help@...

 « Return to Thread: "supplying JavaScript resources"