jcabi / jcabi-manifests

Java library for convenient reading of MANIFEST.MF files available in classpath
https://manifests.jcabi.com
Other
60 stars 22 forks source link

Failed to fetch value #28

Open ieiayaobb opened 9 years ago

ieiayaobb commented 9 years ago

Hi guys, I've got to say it's a good idea to keep configuration in MANIFEST.MF I've tried to follow your instruction but didn't run well on my environment. I'm going to describe the structure of my project and what problems I met.

root-app
| -- pom.xml
| -- core-app
|     | -- src
|     |     ` -- main
|     |           ` -- java
|     |                 ` -- Configuration.java
|     ` -- pom.xml
` -- web-app
      | -- src
      |     ` -- main
      |           | -- java
      |           ` -- resources
      |                 ` -- META-INF
      |                       ` -- MANIFEST.MF
      ` -- pom.xml

As you see, I have 2 projects : core-app and web-app. What I want to do is quite simple:

  1. Set configuration(Key-Value) into web-app's MANIFEST.MF while packaging phase.
  2. Read configuration in core-app's Configuration class.

I'm not sure whether it's clear for you. Willing to discuss with you, thank you.

dmarkov commented 9 years ago

@yegor256 please do something about this issue

yegor256 commented 9 years ago

@ieiayaobb what exactly doesn't work? I'm actually surprised that you're including web-app into core-app. Usually, it's done the other way around.