c*****t 发帖数: 1879 | 1 How to insert a ${today} field in the manifest task? That is, I want
ant to produce a manifest file that contains today's date and build #
(which are generated automatically) in the manifest file. Any tiger
shrimps know how?
Thanks |
m**c 发帖数: 90 | 2
For example:
...
...
【在 c*****t 的大作中提到】 : How to insert a ${today} field in the manifest task? That is, I want : ant to produce a manifest file that contains today's date and build # : (which are generated automatically) in the manifest file. Any tiger : shrimps know how? : Thanks
|
c*****t 发帖数: 1879 | 3 Great. Thanks so much.
BTW, is it possible to show it in an About dialog box somehow?
Thanks again.
【在 m**c 的大作中提到】 : : For example: : : : : : : : ... :
|
m**c 发帖数: 90 | 4
Sorry, I don't use netbeans :-)
【在 c*****t 的大作中提到】 : Great. Thanks so much. : BTW, is it possible to show it in an About dialog box somehow? : Thanks again.
|
c*****t 发帖数: 1879 | 5 What I mean is how to display that Build-Number, Build-By in my
java program? java.lang.Package can handle attributes such as
Implementation-Version etc, but I just wonder how other information
can be displayed.
【在 m**c 的大作中提到】 : : Sorry, I don't use netbeans :-)
|
m**c 发帖数: 90 | 6
Can you access manifest file from your code? If not, why don't you write
those information to a property file and bundle it to the JAR so that you can
access it: create a property file:
1. build.properties
2. Add "replace" task (to update "build.properties") to your ant script before
"jar" task"
【在 c*****t 的大作中提到】 : What I mean is how to display that Build-Number, Build-By in my : java program? java.lang.Package can handle attributes such as : Implementation-Version etc, but I just wonder how other information : can be displayed.
|