You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Xavier Hanin (JIRA)" <ji...@apache.org> on 2008/02/29 17:46:51 UTC

[jira] Resolved: (IVY-567) Update MANIFEST to make Ivy runnable with java -jar

     [ https://issues.apache.org/jira/browse/IVY-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Hanin resolved IVY-567.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0)
                   2.0-RC1

I've fixed this when I removed dependency on commons-cli

> Update MANIFEST to make Ivy runnable with java -jar
> ---------------------------------------------------
>
>                 Key: IVY-567
>                 URL: https://issues.apache.org/jira/browse/IVY-567
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-alpha-1
>         Environment: Development
>            Reporter: Tjeerd Verhagen
>            Assignee: Xavier Hanin
>            Priority: Trivial
>             Fix For: 2.0-RC1
>
>         Attachments: patch_build.xml_add_main_and_path_20070708.txt, patch_build.xml_correction_in_jar_readme.txt
>
>
> Update the MANIFEST.MF, in which the (main) key 'Class-Path' can be specified. The value of this key should hold the path's to the other requered jars. For Ivy this means, it should reference to the 'commons-cli.jar' (and maybe other / extra jars in the future).
> To make the jar runnable the key 'Main-Class' is needed, which makes it possible to just 'run the jar', as:
> java  -jar ivy-core.jar
> No additional path to the class 'org.apache.ivy.Main' is needed any more.
> WARNING: Check this patch 'patch_build.xml_add_main_and_path_20070708.txt' the key 'Class-Path' does (only) work if the created artifact is in it's build/articaft directory! I didn't check how ivy-core.jar is normally distributed (where it's dependencies lib is). Probalbly there should be a small change of the referenced path here.
> To read more about these keys, see paragraph 'Main Attributes':
> http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html
> http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Main%20Attributes

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.