Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Q: ANT and Manifests

Options
  • 06-12-2001 10:27am
    #1
    Registered Users Posts: 21,264 ✭✭✭✭


    Does ANT have an option to create a manifest file with the files that are actually put into jar using the <jar/> command?


Comments

  • Registered Users Posts: 15,443 ✭✭✭✭bonkey


    Not really.

    Ant will build a "simple" manifest file if none is supplied in the command. Otherwise, you build your own manifest file, and include it with the <manifest> tag (and NOT as part of the <includes> stuff.

    You rbest bet (if you need something better than the simple manifest file ANT will build for you) is to find some other way of guilding your manifest file (an external app perhaps?) and have a 2-step target which builds this file, then runs a <jar> command with this pre-built file specified in <manifest>

    jc


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    I'm writing up an ANT plugin to do it. =/

    I would prefer an external tool that didn't involve having to extract the jars after building them though. =\


Advertisement