ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Srikrishna_Parthasara...@timeinc.com>
Subject How to do explicit path setting in ant
Date Fri, 03 Feb 2006 16:20:03 GMT
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>

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message