Hi Bryan, Bryan Atsatt wrote:
I believe that ModuleArchiveInfo.getFileName() would only get you a reference to the metadata file, not the content, and it is allowed to be null as currently defined.
This method will give you a reference to the actual content. For example, in the local repository case, this will return a filename of the actual file in the repository interchange directory. That said, this method is allowed to return null because the repository implementations may not always make the content available as a physical file.
Since Repository implementations should be free to store in whatever format they choose, assuming that a deployment module can be re-constructed from the various apis seems like a very weak alternative to an explicit, well specified "export" method.
Fair enough. I will look into adding an API to do this in the next revision of the API specification draft.
- Stanley