PDA

View Full Version : Any way to make "Local" (unshared) plugin?


cncb
06-05-2010, 01:32 PM
I want to make some tweaks to the base STV but don't want to publish/share the STVi since it would only be useful for me. But, I would like it to be be loaded on top of all other plugins and not have to manually import it every time the base STV gets updated (much like the previous import system worked). Is there any way to make a plugin that could be selected on the local computer?

GKusnick
06-05-2010, 01:47 PM
Yes. See the last page of the plugin developer's guide (http://download.sagetv.com/DevelopingSageTVPlugins.doc).

cncb
06-05-2010, 02:03 PM
Thanks.

cncb
06-06-2010, 10:50 AM
Is there a way to have the "Location" be a local drive? I have tried:

c:\temp\myfile.zip
c:\\temp\\myfile.zip
file://c:/temp/myfile.zip

None seem to work (the plugin manager can't locate the file). I can upload it to the web somewhere but it would be more convenient to just have it local. Thanks.

GKusnick
06-06-2010, 11:36 AM
It has to be an HTTP or FTP server, but you can easily set one of those up locally. Your Java IDE (if you have one) may come bundled with a simple web server. Or if you have Jetty installed in Sage, you can set up a local download server like so:


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.handler.ContextHandler">
<Set name="contextPath">/plugins</Set>
<Set name="resourceBase"><SystemProperty name="jetty.home" default="."/>/plugins</Set>
<Call name="addHandler">
<Arg>
<New class="org.mortbay.jetty.handler.ResourceHandler"/>
</Arg>
</Call>
</Configure>


Save that as an XML file in jetty/contexts, and it will serve files from the directory jetty/plugins on the URL http://server:port/plugins/.

JREkiwi
06-06-2010, 04:40 PM
Or if you have Jetty installed in Sage, you can set up a local download server like so:Thanks Greg, I didn't even think of using jetty. I'd been using dropbox.

John