Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.6k views
in Java FTP by (600 points)
Is there a way to retrieve the Version/Date of the edtFTPj/SSL library at runtime?

Thanks,
Steve

3 Answers

0 votes
by
No, but it would be very useful. I'll request that this feature be added - e.g. a method such as getVersion(). We'll try to get this added to 1.1.0 which is due out soon - if you have bought 1.0.x when you see the announcement ask for a free upgrade.

If you must have it now, there is information in the jar's manifest which could be what you need - it is possible to open a manifest and read the properties at runtime.

See for example
http://coding.derkeiler.com/Archive/Jav ... /1324.html


Is there a way to retrieve the Version/Date of the edtFTPj/SSL library at runtime?

Thanks,
Steve
0 votes
by
I can confirm that

public static int[] getVersion()

will be available in edtFTPj 1.4.0 (the next release)

and also in edtFTPj/SSL 1.1.0 (next release, due out next week.

The array returned is {major, middle, minor} version numbers.


No, but it would be very useful. I'll request that this feature be added - e.g. a method such as getVersion(). We'll try to get this added to 1.1.0 which is due out soon - if you have bought 1.0.x when you see the announcement ask for a free upgrade.
0 votes
by
Oh, and there's also

public static String getBuildTimestamp()

which returns the build timestamp as a string in d-MMM-yyyy HH:mm:ss z format

Categories

...