Hi,
A cleaner place would be to put it into bin/forehead.conf. For instance
one of my projects uses ejbjar which depends on the BCEL Jar so I've added
${maven.home}/lib/bcel-5.0.jar to the root section.
A possible long-term solution would be to create a directory within the
lib directory that had an associated entry added to forehead.conf to load
all .jar files from this directory into the root classloader. That way if
the user needs to use an optional Ant task that depends on a Jar that isn't
shipped with Maven, they can just place it in this directory.
Regards,
Tom
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: 26 September 2002 13:23
> To: Turbine Maven Users List
> Subject: Optional Ant tasks
>
>
>
> Hi all,
>
> I'm having trouble using the optional ant tasks from my
> maven.xml file.
> The only way round it I've found is to explicitly place all
> the ant libs
> onto the maven classpath in maven.bat like so:
>
> SET
> MAVEN_CLASSPATH="%MAVEN_HOME%\lib\forehead-1.0-beta-4.jar;%MAVEN_HOME%
> \lib\ant-1.5.jar;%MAVEN_HOME%\lib\ant-optional-1.5.jar;%MAVEN_HOME%
> \lib\NetComponents.jar"
>
> Is there a nicer way to do this?
>
> Mike
>
> PS NetComponents is required but not distributed with Maven...
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>