I do it like this. I create a websphere classpath and then use it in the
<taskdef> This example, which I use, sets up things for the websphere end
point enabler for use with web services.
was.install.root is the folder where websphere is installed. In my case that
is c:\Program Files\IBM\WebSphere\AppServer but it just serves to get me to
the jars I need. I figures out the list by trial and error, adding jars when
a class wasn't found.
<path id="was.classpath">
<fileset dir="${was.install.root}/lib">
<include name="wsanttasks.jar" />
<include name="webservices.jar" />
<include name="j2ee.jar" />
<include name="ffdc.jar" />
<include name="wsdl4j.jar" />
<include name="bootstrap.jar" />
<include name="commons-logging-api.jar" />
<include name="commons-discovery.jar" />
<include name="ras.jar" />
<include name="wsexception.jar" />
<include name="emf.jar" />
<include name="classloader.jar" />
<include name="*.jar" />
</fileset>
<fileset dir="${was.install.root}/java/jre/lib">
<include name="xml.jar" />
</fileset>
</path>
<taskdef name="EndpointEnablerTask" classname="
com.ibm.websphere.ant.tasks.endptEnabler">
<classpath refid="was.classpath" />
</taskdef>
-- Lee
On 8/7/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
Maven does not invoke Ant from Ant's installed directory. Instead it
downloads the Ant libs to the Maven repo and uses them directly.
You will need to install your WS lib in the Maven repo and specify it
as a <dep> on the Ant plugin, so that Maven includes it when running
your Ant commands.
Wayne
On 8/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
>
> <property name="was6.home" value="C:\Program
> Files\IBM\WebSphere\AppServer" />
>
> <taskdef name="wsejbdeploy"
> classname="com.ibm.websphere.ant.tasks.WsEjbDeploy" />
>
> I have a problem defining the ant run. I have copied the Ant tasks to
> the
> ANT_1.6.5\lib directory, but Ant does not seem to know where the
> external ant task? How is M2 invoking Ant?
>
> --
> Peter Pilgrim
> UBS Investment Bank,
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named. If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses. The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version. This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]