[ http://jira.codehaus.org/browse/MJAR-55?page=all ]
Lukas Theussl moved MPJAR-55 to MJAR-55:
----------------------------------------
Workflow: Maven New (was: jira)
Key: MJAR-55 (was: MPJAR-55)
Project: Maven 2.x Jar Plugin (was: maven-jar-plugin)
> possibility to add arbitrary elements to the manifest classpath
> ---------------------------------------------------------------
>
> Key: MJAR-55
> URL: http://jira.codehaus.org/browse/MJAR-55
> Project: Maven 2.x Jar Plugin
> Issue Type: Improvement
> Reporter: Michel Verbist
> Priority: Minor
>
> I want to add '.' (the current directory) to the classpath.
> The main reason for this is to be able to access files like
> log4j.properties
> hibernate.cfg.xml
> ...
> outside the jar, so I don't have to rebuild my jar if, e.g., I want to
> increase the log4j level for a particular class.
> Or ask my client over the phone to increase the level and send me the log
> file.
> The only thing I came up with was this possible improvement:
> current config of the manifest:
> <configuration>
> <archive>
> <manifest>
> <addClasspath>true</addClasspath>
>
> <mainClass>be.brail.b38c.loadtester.AppLoadTester</mainClass>
> </manifest>
> </archive>
> </configuration>
> possible extension of manifest config
> <configuration>
> <archive>
> <manifest>
> <addClasspath>true</addClasspath>
> <additionalClasspathEntries>
> <classpathEntry>./</classpathEntry>
> <classpathEntry>help/</classpathEntry>
> <classpathEntry>resources/</classpathEntry>
> </additionalClasspathEntries>
>
> <mainClass>be.brail.b38c.loadtester.AppLoadTester</mainClass>
> </manifest>
> </archive>
> </configuration>
> By adding
> public List
> org.apache.maven.archiver.ManifestConfiguration.getAdditionalClasspathEntries()
> people could be allowed to add not only the dependent jars to the classpath
> but also any arbitrary directory.
--
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