Applied - tah. At 12:33 AM 6/10/2002 -0700, you wrote: >Folks, >The manifest entry Implementation-Version >is represented as a Deweydecimal although I guess >its not mandatory to be one UNLike >Specification-Version entry. >(ref: >http://java.sun.com/j2se/1.3/docs/guide/versioning/spec/VersioningSpecification.html#JARManifestFormat >) > >Patch Attached . > >Regards, >V i n a y > > >__________________________________________________ >Do You Yahoo!? >Yahoo! - Official partner of 2002 FIFA World Cup >http://fifaworldcup.yahoo.comIndex: Extension.java >=================================================================== >RCS file: >/home/cvspublic/jakarta-avalon-excalibur/extension/src/java/org/apache/avalon/excalibur/extension/Extension.java,v >retrieving revision 1.20 >diff -r1.20 Extension.java >170c170 >< private DeweyDecimal m_implementationVersion; >--- > > private String m_implementationVersion; >353c353 >< final DeweyDecimal implementationVersion = >extension.getImplementationVersion(); >--- > > final String implementationVersion = > extension.getImplementationVersion(); >409,423c409,410 >< >< if( null != implementationVersion ) >< { >< try >< { >< m_implementationVersion = new DeweyDecimal( >implementationVersion ); >< } >< catch( final NumberFormatException nfe ) >< { >< final String error = "Bad implementation version format >'" + implementationVersion + >< "' in '" + extensionName + "'. (Reason: " + nfe + ")"; >< throw new IllegalArgumentException( error ); >< } >< } >< >--- > > m_implementationVersion=implementationVersion; > > >495c482 >< public DeweyDecimal getImplementationVersion() >--- > > public String getImplementationVersion() >538,548c525 >< // Implementation version must be >= required >< final DeweyDecimal implementationVersion = >required.getImplementationVersion(); >< if( null != implementationVersion ) >< { >< if( null == m_implementationVersion || >< !isCompatible( m_implementationVersion, >implementationVersion ) ) >< { >< return REQUIRE_IMPLEMENTATION_UPGRADE; >< } >< } >< >--- > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
Cheers, Peter Donald ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Faced with the choice between changing one's mind, and proving that there is no need to do so - almost everyone gets busy on the proof." - John Kenneth Galbraith ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>