SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-19-2010, 11:41 AM
chrishallowell chrishallowell is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 169
Plugin File management

I've got a database file that I need to install with a plugin to this directory: plugins/myplugin/. But if the database file already exists, I don't want the plugin to overwrite it. Can the plugin system handle this or do I need to manually code for this?

My plug will have a package for the STVi and a package for the JAR.

STVi.zip will have the XML file
JAR.zip will have the JAR file

If I put the database file in the JAR.zip and specify Overwrite=false in the plugin manifest, then the JAR file won't get overwritten. Right?

Do I have to put it in the JAR.zip file and write code to move it to plugins/myplugin/ if it doesn't exist and if it already exists, then just delete the file out of the JAR directory?
Reply With Quote
  #2  
Old 08-19-2010, 11:53 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Just put your configuration/database (ie files that you don't want to overwrite) in another .zip file and use overwrite=false for that zip only.
Reply With Quote
  #3  
Old 08-19-2010, 11:53 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Why put it in the JARs directory in the first place? Your plugin can have as many packages as you need. In this case a System package seems like the appropriate vehicle for extracting the file to where you want it to be.
__________________
-- Greg
Reply With Quote
  #4  
Old 08-19-2010, 12:05 PM
chrishallowell chrishallowell is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 169
Ok, I guess I wasn't thinking about a new package as an option . Thanks for pointing that out. So I can have a 3rd package of type system with overwrite=false and in the zip file have: plugins/myplugin/databasefile.db
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
Plugin: SageRecordings XML file generator (v1.3 8/Aug/2007) nielm SageTV Customizations 36 07-23-2011 03:55 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Plugin / Utility request: shutdown SageTV and execute a batch file korben_dallas SageTV Customizations 13 05-03-2010 05:44 AM


All times are GMT -6. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.