Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
ftp task failing please help

ftp task failing please help

2003-03-24       - By Gundapu, Srinivasa (MBS)
Reply:     1     2     3     4     5     6     7     8     9     10  

Hello Guys,

I need your help. the target name deploy8040 is failing. Because of this, I
am not able to continue with the build process. Please guide me what is
wrong. I kep kept the ANT_HOME/bin;ANT_HOME/lib; in the the System
environment varible PATH.I still the get the probolem with ant. I also kept
optional.jar, NetComponets.jar and other jar that are mentioned in the
dependencies are also in the classpath as you see the build file shown
below.
Please help me overcome this problem. The build file is pasted below for
reference.


<project name="doradorates" default="all" basedir="H:/Projects">
  <property name="project" value="doradorates" />
  <property name="src" location="${basedir}/${project}/src/" />
  <property name="build" location="${basedir}/${project}/classes" />
  <property name="dist" location="${basedir}/${project}/dist" />
   <property name="gendir"  value="${basedir}/${project}" />
   <property name="tmpdir"  value="${basedir}/${project}/src/tmpdir" />
  <property name="libs" value="H:/javalibs" />
  <property name="ant_libs" value="H:/javalibs/ant" />
   <property name="wls_home"  value="c:/bea/wlserver6.1"/>
   <property name="java_home"  value="c:/bea/jdk131"/>
   <property name="java_classpath"
value="${java_home}/lib/classes.zip:${libs}/optional.jar:${libs}/NetComponen
ts.jar"/>
   <property name="wls_classpath"
value="${java_home}/lib/tools.jar:${wls_home}/lib/weblogic_sp.jar:${wls_home
}/lib/weblogic.jar"/>
   <property name="ant_classpath"
value="${ant_libs}/activation.jar:${ant_libs}/bcel.jar:${ant_libs}/bsf.jar:$
{ant_libs}/jakarta-oro-2.0.6.jar:${ant_libs}/jakarta-regexp-1.2.jar:${ant_li
bs}/jdepend.jar:${ant_libs}/junit.jar:${ant_libs}/mail.jar:${ant_libs}/NetCo
mponents.jar:${ant_libs}/NetRexxC.jar:${ant_libs}/NetRexxR.jar:${ant_libs}/o
ptional.jar:${ant_libs}/xalan.jar:${ant_libs}/xerces.jar:${ant_libs}/xml4j.j
ar" />
   <property name="classpath"
value="${ant_classpath}:${wls_classpath}:${java_classpath}:${dist}/${project
}_patch.jar"/>
  <target name="prepare">
    <tstamp/>
    <mkdir  dir="${build}" />
    </target>
  <target name="compile" depends="prepare">
  <javac srcdir="${src}" destdir="${build}"
classpath="H:/cendant/patch_1.2.070.jar" />
  </target>
  <target name="package" depends="compile">
    <mkdir dir="${dist}"/>
    <jar destfile="${dist}/${project}_patch.jar"
basedir="${build}" />
  </target>
    <target name="deploy8040">
        <ftp server="ldevapp01"
              userid="gundaps"
              password="0201gsr"

remotedir="/landscape/users/gundaps/wlserver6.1/config/CMEnt/production_apps
/MYPATCH"
              depends="yes"
              binary="yes" >
      <description>connected to server</description>
      <fileset dir="${dist}" />

      </ftp>
    </target>

    <target name="all" depends="prepare, compile, package, deploy8040"/>

</project>

Thanks,
Srinivasa Gundapu



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.