How can I find deployment date of war file, deployed at weblogic server

4.3k views Asked by At

I have to show deployment date of application in report generated by application for that I have to fetch deployment date of war file using java code. How can I fetch the deployment date of application(.war) using Java code. Any suggestion will be appreciated.

1

There are 1 answers

3
KDP On

using JDK 7 you can read the file attributes like the creation date,so reading the file attributes of the war file should serve the purpose.

Please,refer Determine file creation date in Java