Allow adding classpath prefix to manifest Classpath [patch included]
--------------------------------------------------------------------

         Key: MNG-551
         URL: http://jira.codehaus.org/browse/MNG-551
     Project: Maven 2
        Type: Improvement
  Components: maven-archiver  
    Reporter: Kenney Westerhof
    Priority: Minor
 Attachments: archiver-classpath.patch

Attached patch adds a 'classpathPrefix' property to the ManifestConfiguration
so you can specify a prefix for each classpath element.

Example:
... 
  <configuration>
    <archive>
      <manifest>
        <addClasspath>true</addClasspath>
        <classpathPrefix>lib</classpathPrefix>
......

Now you can build an assembly where your dependent jars are not in the same 
directory as the
executable jar.

Use case: a program that is distributed as an self-executable jar (no startup 
scripts) in the program root
can now have it's dependant jars in a lib/ directory, so there's no confusion 
to the user about which
jar to start. It also eliminates the need for platform specific startup scripts.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to