How do you create a MANIFEST.MF that's available when you're testing and running from a jar in production?

前端 未结 9 1037
失恋的感觉
失恋的感觉 2020-12-28 16:28

I\'ve spent far too much time trying to figure this out. This should be the simplest thing and everyone who distributes Java applications in jars must have to deal with it.

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 17:11

    Just don't use the manifest. Create a foo.properties.original file, with a content such as version=@VERSION@

    And in ther same task you are jaring you can do a copy to copu foo.properties.original and then

提交回复
热议问题