You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sr...@timeinc.com on 2006/02/03 17:20:03 UTC
How to do explicit path setting in ant
If I have weblogic.jar and jsafeFIPS.jar in the ant_home/lib dir and the
following build, I am successful.
If I also do this
BUILD SUCCESSFUL
Total time: 4 seconds
C:\antscripts>ant -lib .\lib -f weblogicdeploy.xml deploy
Buildfile: weblogicdeploy.xml
If I try to set it explicitly build fails .It is not finding the
weblogic classes. I want every task of mine to recognize it . How do I
do it ?
<project name="Enterprisedeployment" default="deploy" basedir=".">
<path id="base.path">
<fileset dir="${ANT_HOME}/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="classpath.server">
<path refid="base.path"/>
<pathelement location="lib/weblogic.jar"/>
<pathelement location="lib/jsafeFIPS.jar.jar"/>
</path>
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"/>
<target name="deploy">
<classpath refid="classpath.server"/>
<wldeploy
action="deploy" verbose="true" debug="true"
name="OMSQueueEngine"
source="c:/cvssource/bosprint/dist/OMSQueueEngine.ear"
userconfigfile="C:\bea815\weblogic81\wls81.mydomain"
userkeyfile="C:\bea815\weblogic81\wls.key"
adminurl="t3://10.187.218.183:7001" targets="myserver" />
</target>
</project>