The implementation version is defined in the manifest; since we're going from the StyleSheetDocumentParser's Package object, that should be the trinidad-impl.jar's MANIFEST.MF file.
-- Adam On 1/19/07, Jeanne Waldman <[EMAIL PROTECTED]> wrote:
Hi, I see that when I run a demo jspx file, the generated css file has "unknown-version" in the name. The reason, I believe, is that the 'implPkg.getImplementationVersion()' in the below code is returning null. Why is this? Where are we setting (or supposed to be setting) the implementation version exactly? Does anyone else see this problem? I think this code was added in this JIRA issue: http://issues.apache.org/jira/browse/ADFFACES-147. Thanks, Jeanne // If the document version is ${trinidad-version}, replace it // with the version number right out of our manifest if ("${trinidad-version}".equals(_documentVersion)) { Class<StyleSheetDocumentParser> implClass = StyleSheetDocumentParser.class; Package implPkg = implClass.getPackage(); if ((implPkg != null) && (implPkg.getImplementationVersion() != null)) { _documentVersion = implPkg.getImplementationVersion().replace('.','_'); } else { _documentVersion = "unknown-version"; } }
