This question is answered.


Permlink Replies: 2 - Pages: 1 - Last Post: 14-Oct-2020 20:52 Last Post By: AndreWolff Threads: [ Previous | Next ]
AndreWolff

Posts: 1,883
Registered: 14-Dec-2007
How to fetch the skin creation date and date last modified
Posted: 14-Oct-2020 19:27
 
  Click to reply to this thread Reply
I tried to fetch the Skin creation date and date last modifiede in a simular way as I used in my old onload.bsh code:
    public FancyBox(AlbumBean engine) {
        super(engine);
// Skin properties
        SkinProperties skinProps = new SkinProperties(skinDirectory);
        String skinVersion = skinProps.getProperty(SkinProperties.VERSION);
        String skinAuthor = skinProps.getProperty(SkinProperties.AUTHOR);
        String skinCreation_date = skinProps.getProperty(SkinProperties.creationDate);
        String skinLast_modified_date = skinProps.getProperty(SkinProperties.lastModifiedDate);
The version and author is OK, but not the two dates.

Which code should I use to fetch these data?
RobM

Posts: 3,378
Registered: 4-Aug-2006
Re: How to fetch the skin creation date and date last modified
Posted: 14-Oct-2020 19:46   in response to: AndreWolff in response to: AndreWolff
Correct
  Click to reply to this thread Reply
AndreWolff

Posts: 1,883
Registered: 14-Dec-2007
Re: How to fetch the skin creation date and date last modified
Posted: 14-Oct-2020 20:52   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Yes, this works:
        String skinCreation_date = skinProps.getProperty(SkinProperties.CREATION_DATE);
        String skinLast_modified_date = skinProps.getProperty(SkinProperties.LAST_MODIFIED_DATE);

Very strange that BeanShell and NetBeans requires different keywords, while the contents of the properties file is lastModifiedDate=2020-10-14

Anyhow thanks for your help!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums