Jump to content
  • Advertisement
Sign in to follow this  

[java] Eclipse's JarRsrcLoader and Implementation-Version attribute in manifest files

This topic is 2607 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For my project I need to use the jarinjar loader of eclipse for deployment because some of the third party jars I am using need to keep their signature (namely the bouncycastle encryption library).

Now I want to add package versioning information. But after adding the "Implementation-Version" attribute to my ant file
still returns null.

I have the feeling that since my main-class is the JarRsrcLoader instead of my actual main-class the Implementation-Version is not passed through to my actual package. Does anybody have an idea how to solve this, or what I am doing wrong?

Here's the excerpt of my ant build file (slightly changed for NDA reasons and for brevity ):

<jar destfile="mytool${rmversion}${buildtime}.jar">
<attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
<attribute name="Rsrc-Main-Class" value="com.fs.Server"/>
<attribute name="Class-Path" value="."/>
<attribute name="Rsrc-Class-Path" value="./ bcprov-jdk16-145.jar"/>
<attribute name="Implementation-Version" value="${rmversion}${buildtime}"/>
<zipfileset src="jar-in-jar-loader.zip"/>
<fileset dir="work" />
<fileset dir="WEB-INF/classes" />
<fileset dir="WEB-INF/lib" />

The properties rmversion and buildtime are set correctly. I also tried to embed the Implementation-Version attribute inside a section with the name of the package I want to add the information to.

Any help is highly appreciated.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!