[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #RFI-741950]: how to add ancillary file in a plugin

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #RFI-741950]: how to add ancillary file in a plugin
  • Date: Thu, 31 May 2012 05:02:37 -0600

Hi Ghansham,

> >
> No it is an ancillary information containing the some the information
> related to my product which I want to use when reading the product.
> Actually I tried to read by using:
> getClass().getResourceAsStream(fileName);
> But it does not work. It seems such files get stripped off when the
> plugin jar gets loaded with IDV.
> 
> 

You can try:
     IOUtil.readContents(String path, Class someClass);
                      

-Jeff


Ticket Details
===================
Ticket ID: RFI-741950
Department: Support IDV
Priority: Normal
Status: Open