avatar
Ant and Netbeans help# Java - 爪哇娇娃
c*t
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
avatar
m*c
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

avatar
c*t
3
Great. Thanks so much.
BTW, is it possible to show it in an About dialog box somehow?
Thanks again.

【在 m**c 的大作中提到】
:
: For example:
:
:
:
:

:
:
: ...
:

avatar
m*c
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.

avatar
c*t
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 :-)

avatar
m*c
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。