ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Websphere 6 Ant Tasks can't be found....
Date Thu, 08 Nov 2007 19:32:54 GMT
On Nov 8, 2007 6:11 PM, Christopher Styles <styles706@gmail.com> wrote:
> Hi,
>
> I'm using Cruise Control and Websphere 6 to build and deploy my application
> to a remote server, but when I execute the build/deploy, I get and *Ant
> Error Message*... My websphere ant tasks can't seem to be found.... If I
> comment out the taskdefs, the build portion works fine, but I need the
> websphere ant tasks for my deployment... Here's the error message: *Ant
> Error Message:*C:\CruiseControl\projects\mib\MIB_2.X_FWD_DEV_AIX-WAS-DB2\EP_US_PSO_2.X\build\build.xml:72:
> taskdef class com.ibm.websphere.ant.tasks.StopServer cannot be found....
> Below, is how I my have my Websphere Home and taskdefs defined in my
> build.xml... Is my Websphere Home defined correctly in order for the
> websphere ant tasks to be found...??? I'd appreciate it if someone could
> point me in the right direction...
>
> Thanks
>
>
> <property name="ws.home" value="C:/Progra~1/IBM/WebSph~/AppServer"/>
>
>
> <path id="lib.path">
>     <pathelement location="${ws.home}/lib/*.jar"/>
> </path>
>
This is incorrect.
the location attribute does not do a glob expand on *.
You need something like.
<path id="lib.path">
   <fileset dir="${ws.home}/lib" includes="*.jar"/>
</path>

Peter

> <taskdef name="wsStopServer"
>         classname="com.ibm.websphere.ant.tasks.StopServer">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsStartServer"
>         classname="com.ibm.websphere.ant.tasks.StartServer">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsUninstallApp"
>         classname="com.ibm.websphere.ant.tasks.UninstallApplication">
>     <classpath refid="lib.path"/>
> </taskdef>
>
> <taskdef name="wsInstallApp"
>         classname="com.ibm.websphere.ant.tasks.InstallApplication">
>     <classpath refid="lib.path"/>
> </taskdef>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message