Telnet task in ant

below are my telnet task definition in ant builfile and the output message after runing the task.
<project name="XXX" basedir="." default="telnet">
<target name="telnet" depends="" description="" >
<telnet userid="XXX" password="XXX" server="missrv" >
<write string="cd /home/hfan" />
<write string="mkdir test"/>
</telnet>
</target>
<project>
telnet:
[telnet] SunOS 5.8
[telnet]
[telnet]
[telnet]
[telnet] login:
[telnet] hfan
[telnet] Password:
[telnet] cd /home/hfan
[telnet] mkdir test
BUILD SUCCESSFUL
Total time: 1 second
But i can not see any result from the command "mkdir" in the unix box??????
It would be appreciated very much if you can let me know the reason. I have been working with it couple hours.
thx in advance,
Henry

Sorry too.....
I experience the same thing. In addition I am trying to call a bat file on the remote computer that I wrote myself. It does not take any action at all. Inserting a read of known output from the batch file just makes the telnet session hang.
Here is my code:
<telnet userid="db_builder" password="ugly_porche7" server="WOLF" initialCR="false" port="23">
    <write echo="true">SET BUILD_DATABASE=true</write>
    <write echo="true">SET BUILD_DATABASE</write>     
    <write echo="true">"W:\deploy_general\inst\database\simped\test_002\common\installDatabase.bat"></write>
</telnet>The out put is
Buildfile: build.xml
build:
   [telnet] Microsoft (R) Windows (TM) Version 5.00 (Build 2195)
   [telnet] Welcome to Microsoft Telnet Service
   [telnet] Telnet Server Build 5.00.99206.1
   [telnet]
   [telnet] login:
   [telnet] db_builder
   [telnet]  db_builder
   [telnet]
   [telnet] password:
   [telnet] SET BUILD_DATABASE=true
   [telnet] SET BUILD_DATABASE
   [telnet] "W:\deploy_general\inst\database\simped\test_002\common\installDatabase.bat">
BUILD SUCCESSFUL
Total time: 0 secondsI would after the second write expect:
"BUILD_DATABASE=true", but inserting <read>true</read> just yields a hanging session.
It's my first try programming or even relate to telnet at all, so I guess I have som general personal trouble with the write/read logic as well. Please help me or point me to something that could clear it up.

Similar Messages

  • Problem Using wlserver task in ant file

    I am trying to create a weblogic domain using the following in my ant file:
    <target name="new-server">
    <mkdir dir="/opt/deployment/domains" />
    <wlserver dir="/opt/deployment/domains"
    beahome="/opt/bea"
    domainname="SandboxDomain"
    servername="AdminServer"
    host="localhost" port="7001"
    generateConfig="true"
    username="weblogic" password="password"
    productionmodeenabled="false"
    action="start" failonerror="true" />
    </target>
    However, I keep getting the following exception:
    [wlserver] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
    I am executing the ant script by placing the weblogic.jar file in the lib directory of ant. I am also using ant version 1.6.2. Any suggestions on how to remedy this problem would be appreciated.

    Hi,
    Had the same problem, try adding the classpath attribute to the wlserver tasks.
    example:
    <wlserver dir="${SERVER_DOMAINS}/test_domain"
    beahome="${SERVER_ROOT}"
    weblogichome="${SERVER_WEBLOGIC_HOME}"
    generateConfig="true"
    host="localhost"
    port="6001"
    username="${WEBLOGIC_USER}"
    password="${WEBLOGIC_PASSWORD}"
    servername="testServer"
    action="start"
    classpath="<wl_installdir>\server\lib\weblogic.jar">
    Regards,

  • Spark Classes and Skins not being included when running FlexUnit task via Ant

    I have a series of unit tests that run on a spark component. This spark component has a custom skin defined for it, and that is working beautifully.
    Inside that component is a spark list... By default, after digging into the list code, spark lists should use a default skin called "BorderContainerSkin". When I run the application that uses this component directly (whether compiled via FlashBuilder or via Ant/Hudson), the component itself runs and looks exactly like I would expect. When I run my unit tests in the browser (via Run As Web Application command on my TestRunner), the unit tests all perform as expected.
    However, when I run the FlexUnit tests via Ant (either through windows non-headless, or linux headless), an exception is thrown with the following error:
    Error: Skin for FromToList132.FromToListSkin133.VGroup134.fromList cannot be found.
        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\pr ojects\spark\src\spark\components\supportClasses\SkinnableComponent.as:632]
        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
        at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.x\framewo rks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:419]
        at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\4.x\frameworks\projec ts\spark\src\spark\components\supportClasses\ListBase.as:785]
        at spark.components::List/commitProperties()[E:\dev\4.x\frameworks\projects\spark\src\spark\ components\List.as:907]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx \core\UIComponent.as:7933]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\ src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:730]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]
    (Note: fromList is the id of the spark list used in the FromToList component.)
    The issue is that the "BorderContainerSkin" class isn't ever getting imported along the way. I did several things that worked to "fix" the problem, but they are all hacky and don't explain the root problem:
    1- If I explicitly import that skin into my test file, then everything works great.
    2- If I add the <includes> directive into my mxmlc task in the Ant file, and again specifically call out that skin class, then again it will work.
    However, how would I know what skins from the spark library are going to get included and which aren't? How would I know that a default skin isn't included or where to find it or even what it is?
    It seems like either I'm missing something in my Ant file or there is a serious bug here with the FlexUnit task. Can anyone shed light on if this is a known issue, any permanent fixes (that don't involve keeping track of a long list of strings of class references), or anything that I might be missing?
    Thank you for any help!

    Guessing the ant tasks aren't forcing the include of the spark skins libraries... which is a little silly. I would assume the compiler would take care of this but it is something we can investigate...
    Not 100% sure as to why, but this is what it sounds like.
    Mike

  • Help for javac task in ant?

    Here I have 5+ folders, ervery has many java source files. And all the java source files in these folders is the same package name, also there may have same file name in different folder. And now I want the javac to compile these files and save the classes file to each own folder.
    folder--fd1
    | |--a1.java (package org.apache.jsp)
    | |--b1.java (package org.apache.jsp)
    | |--c1.java (package org.apache.jsp)
    |---fd2
    | |--a1.java (same file name as in fd1) (package org.apache.jsp)
    | |--b2.java (package org.apache.jsp)
    | |--c2.java (package org.apache.jsp)
    |--
    foler--fd1
    | |--a1.java
    | |--a1.class (also the package is org.apache.jsp, but it store in here.)
    | |--b1.java
    | |--b1.class
    | |--c1.java
    | |--c1.class
    |---fd2
    | |--a1.java (same file name as in fd1)
    | |--a1.class
    | |--b2.java
    | |--b2.class
    | |--c2.java
    | |--c2.class
    |--
    And now I can complete the compile work through 2 steps in up condition, first to compile fd1 folder, and then to compile fd2 folder. For if I just compile with folder(root folder), it will return duplicate class error. How could I do with this?
    below is my javac config in build.xml:
    <target name="compile" >
    <path id="javac.classpath">
    <fileset dir="${tomcat.home}\common\lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${tomcat.home}\server\lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${basedir}\classes" />
    <fileset dir="${basedir}\web\WEB-INF\lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <javac failonerror="true" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">               
    <src path="${basedir}/folder/fd1"/>                         
    </javac>          
    <javac failonerror="false" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">               
    <src path="${basedir}/folder/fd1"/>                         
    </javac>
    </target>

    But the problem is that this project may have same
    e files in 5 folders, and another may more than 5,
    like 20+, then also step to compile it, I think it can
    not imagine.As I said, the basic problem is that the class path has to be different for each folder.
    So what I want is just compile once, and is there
    e any solution to escape the duplicate class error.
    And the jikes compile you refered, I don't know how
    w to call this task, for jikes is just a binary
    file.(how to set parameter in <javac/> in build.xml
    used by ant)
    Jikes is a compiler from IBM. If you look in the ant docs it tells you how to set it up.

  • WlwBuild task in ant

    Hi,
    I am using ant's Project class to execute an ant build. This ant build has the wlwBuild task. My default JRE is 1.5 but the workshop files need 1.4. It seems that wlwBuild takes the default JRE (1.5)
    Execute:Java13CommandLauncher: Executing 'F:\jdk1.5.0_12\jre\bin\java.exe' with arguments:
    How do I ask wlwBuild task to use JRE 1.4 when it is being executed from a java code using 1.5 ?
    Thanks in advance
    Prasanna

    Hi,
    For now I've switched from using wlwbuild to using the java task to resolve this issue. But there must be some way to specify a jvm to wlwbuild task.
    So instead of using
    <wlwBuild work="${work.file}"
    serverclasspath="${server.class.path}"
    classpath="${server.class.path}"
    >
    <build outputdir="${jar.dir}" outputfilename="${app.name}.ear" />
    </wlwBuild>
    I am using
    <java classname="workshop.core.Compile"
    fork="true" jvm="${jvm.cmd}"
    failonerror="true" >
    <arg line="-serverclasspath ${server.class.path} -od ${jar.dir} -of ${app.name}.ear ${work.file}"/>
    <sysproperty key="java.system.class.loader" value="workshop.core.AppClassLoader"/>
    <classpath>
    <pathelement location="${weblogic.home}/workshop/wlw-ide.jar"/>
    </classpath>
    </java>

  • Help for javac task in ant? (urgent!!!!)

    Here I have 5+ folders, ervery has many java source files. And all the java source files in these folders is the same package name, also there may have same file name in different folder. And now I want the javac to compile these files and save the classes file to each own folder.
    folder--fd1
    | |--a1.java (package org.apache.jsp)
    | |--b1.java (package org.apache.jsp)
    | |--c1.java (package org.apache.jsp)
    |---fd2
    | |--a1.java (same file name as in fd1) (package org.apache.jsp)
    | |--b2.java (package org.apache.jsp)
    | |--c2.java (package org.apache.jsp)
    |--
    foler--fd1
    | |--a1.java
    | |--a1.class (also the package is org.apache.jsp, but it store in here.)
    | |--b1.java
    | |--b1.class
    | |--c1.java
    | |--c1.class
    |---fd2
    | |--a1.java (same file name as in fd1)
    | |--a1.class
    | |--b2.java
    | |--b2.class
    | |--c2.java
    | |--c2.class
    |--
    And now I can complete the compile work through 2 steps in up condition, first to compile fd1 folder, and then to compile fd2 folder. For if I just compile with folder(root folder), it will return duplicate class error. How could I do with this?
    below is my javac config in build.xml:
    <target name="compile" >
    <path id="javac.classpath">
    <fileset dir="${tomcat.home}\common\lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${tomcat.home}\server\lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${basedir}\classes" />
    <fileset dir="${basedir}\web\WEB-INF\lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <javac failonerror="true" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">
    <src path="${basedir}/folder/fd1"/>
    </javac>
    <javac failonerror="false" debug="off" verbose="2" deprecation="off" classpathref="javac.classpath">
    <src path="${basedir}/folder/fd1"/>
    </javac>
    </target>

    To compile recursively you'll need of these for each directory:
    <target name="compilef1" depends="init">
    <javac srcdir="f1/" destdir="f1/" debug="true" deprecation="true"/>
    </target>
    But, you'll need to set up the build tree correctly before it'll work:
    f1/org/apache/jsp defines the org.apache.jsp package in directory f1, so compiling in f1/ will correctly find other related files.
    Regards,
    Bhaveet

  • How to show direcotry content in Unix

    Hey
    Greeting,have a simple question for Java Gurus,I am using Tomcat and servlets for my projects running on NT platform connecting to Oracle/Sybase servers on Unix boxes my problem is I want to show directory contents on unix box.. show directory name , filesize, date etc on browser to select file and load into database.
    Please help me with code and ideas, partly or fully.
    Thanks in advance guys.

    If your servlet container is running on NT, the only way to show something on the remote unix is to telneting that unix box. You can look on the telnet task of Ant tool for examples. http://jakarta.apache.org/

  • Wsgen task in stand-alone Ant

    Have anyone made a wsgen task in a build.xml file for use with an original Ant-distribution?
    (not using org.apache.tools.ant.Main located in weblogic.jar)
    I get a non-informing build error when running the wsgen-task. (The ejbc-task
    completes successfully).
    java.lang.NoSuchMethodError
    at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.<init>(DocumentBuilderImpl.java:136)
    at weblogic.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumen...bla
    bla...
    (Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    If anyone could tell me what to do - that would really make my day(!)
    Regards,
    Henning Storhaug

    There is a little bit of situation using taskdef and a classpath from inside
    a build.xml. The problem is that ant creates a custom classloader (which
    loads classes the same way ant finds files, ie. replacing /->\, :->;, using
    the correct basedir, etc. etc.). Ant uses this classloader to load the class
    implementing the task.
    Mainly this creates two problems:
    - This classloader does not 100% implement the correct protocol of a
    classloader, especially when it comes to finding resources. (no disrespect
    intended, ant is a great tool!)
    - Many classes in Weblogic is not really used to being loaded from a
    classloader and doesn't behave very well. (for example: using the
    system-classloader directly, assuming that they are located at the
    java.system.classpath etc. etc)
    This makes it almost impossible to use any weblogic-tasks without loading
    weblogic-classes from the system-classpath. And that is why the "trick of
    the external build.xml" works, because antcall starts the new ant with a
    system-classpath including weblogic.jar.
    Don't really now what the best solution to this is. I think that BEA has to
    be better writing code that behaves nicer to custom classloaders, and I
    think the ant team needs to fix their class-loader a little better.
    (especially in respect to resources)
    In the meantime use the "external build.xml"-trick or use the ant included
    with weblogic.
    "Chris" <[email protected]> wrote in message
    news:[email protected]...
    >
    We are actually using Ant 1.4 with Weblogic 6.1 and the wsgen tasksuccessfully..
    although I haven't tested myself , I was told that there might be problemsif
    the wsgen task is run from the same build.xml file (which might be thereason
    for your problem as well)... so what I have done is created a second buildxml
    file that includes the wsgen task (and some staging tasks) and I call itfrom
    my main build.xml (using antcall).
    A couple of things to note is that you have to make sure that you put antin front
    of the weblogic.jar in the classpath.. Additionally (and you were rightabout
    this) you have to use the taskdef to define the wsgen task as ant will notfind
    it by itself..
    Here is a sample of the wsgen task I use.
    <wsgendestpath="${dir.dsn-build}/webservices_staging/${module.name.Report}WS.ear"
    >
    context="/${module.name.Report}"
    host="localhost"
    port="8081"
    protocol="http"
    webapp="${module.name.Report}-web-services.war">
    <rpcservices path="${dir.ear_staging}/ReportEntryEJB.jar">
    <rpcservice bean="ReportEntry" uri="/${module.name.Report}uri"/>
    </rpcservices>
    </wsgen>
    "Simon Spruzen" <[email protected]> wrote:
    I tried this, and defined a taskdef to allow standalone ant to locate
    the WLS ant
    wsgen task:
    <!-- wsgen - build web services -->
    <taskdef name="wsgen" classname="weblogic.ant.taskdefs.ejb.WSGen">
    <classpath refid="bea.class.path"/>
    </taskdef>
    bea.class.path was defined to ensure that weblogic.jar came first.
    However, I got a curious error when running wsgen target - can't
    remember,
    and
    don't have, the full details - but it involved a message along the lines
    of something
    "...violating loader constraints...".
    So I just gave up and used the version of Ant that ships with WLS 6.1,
    and it
    works and I am happy and content.
    (But you're stuffed if you want to move to ant 1.4)
    "Henning Storhaug" <[email protected]> wrote:
    To be a bit more specific:
    The wsgen ant-task runs when using the ant-distribution within
    weblogic.jar,
    but
    not using the jakarta-ant-1.3 distribution. I've checked the versions,
    and they
    are the same.
    If you need more info, please ask.

  • Wlconfig ant task and JTA unde 8.1sp5

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

  • Ant and the junit task

    Can anyone tell me how to run JUnit from Ant? I have a directory structure set up with the source files in src, the .class files in build, and the junit task in Ant seems to be unable to find my .class files.
    I can run the test using the java task (which would be an option, when all else fails):
      <target name="test" depends="init,compile"
            description="unit test" >
        <java  classname="${testclassname}"
               failonerror="yes"
               classpath="${fullclasspath}"
        >
        </java>
      </target>I can run the test using the junit task from the build directory (but you lose the depends functionality, as you cannot compile from here):
      <target name="unit" depends="init"
            description="unit test" >
        <junit printsummary="yes"
        >
          <test name="it.FlagHandlerTest"/>
          <formatter type="plain"/>
        </junit>
      </target>But I cannot persuade the junit task to run from the project top directory (java.lang.ClassNotFoundException thrown in JUnit), eg.
      <target name="unit" depends="init,compile"
            description="unit test" >
        <junit printsummary="yes"
               dir="${build}"
               fork="yes"
        >
          <test name="it.FlagHandlerTest"/>
          <formatter type="plain"/>
          <classpath>
            <pathelement location="${fullclasspath}"/>
          </classpath>
        </junit>
      </target>I am using Ant 6.1, JUnit 3.8.1, Java 1.4.2.

    The JUnit task requires 2 jars to be in the classpath when Ant is run:
    1) ant-junit.jar
    2) junit.jar
    According to the Ant manual you have two choices:
    1) Add junit.jar to the classpath
    2) Remove ant-junit.jar from the ant/lib directory and redefine the task in the build script, with a <taskdef> and a nested <classpath> elements.

  • Oracle ant tasks 10.1.3DP3

    I use the "assemble" ant task (and ant files provided with oracle sample web services apps in 10.1.3DP3) to generate EAR file in my application. Everything worked well with ant files but I wanted to move to maven as this is our build system. I 'm able to invoke the oracle ant tasks from maven and build the ear file. However when I try to deploy and then generate the proxy from WSDL I ran into some problems.
    1. I ''m unable to get deploy to work from maven. Error is:
    Unable to create Deployment Manager
    followed by
    error getting handle to JMX MBean Server
    2. Deployment during build is not a requirement for me but ability to generate proxy jars is. So I m trying to find a way to generate the proxy jars without having to get the WSDL remotely from a running OC4J. Is there a way to tell the "assemble" task to leave the WSDL file on the disk or do I need to pull it out of the generated EAR file and then feed it to "genProxy"?

    Check the 'genWSDL' ant task or equivalent command from the WS user guide [1], page 162. This should do what you are looking for.
    For the JMX-deployement integration with maven, try the J2EE forum. You may have more feedback there.
    Eric
    [1] http://download-west.oracle.com/otn/java/oc4j/1013/doc/web.1013/b14434.pdf

  • JRun Ant Tasks

    I cannot seem to find any useful documentation or examples
    anywhere regarding the JRun Ant Tasks. We are running ColdFusion
    Enterprise Version 8.0.1.195765, and I have verified that the
    necessary jrun-ant-tasks.jar exists beneath the runtime/lib
    directory. I have really only found the following "clues":
    Apache Ant - External Tools and Tasks- JRun Ant Tasks
    http://ant.apache.org/external.html#JRun%20Ant%20Tasks
    quote:
    "JRun 4 SP1 ships with lib/jrun-ant-tasks.jar, which defines
    three Ant tasks: jrun, jrunapp, and jrunjmx. Documentation for the
    tasks can be found in JRun under docs/ant/jrun.html."
    JRun 4 Service Pack 1a Release Notes
    http://www.adobe.com/support/jrun/releasenotes/4/releasenotes_4_sp1a.html#new
    quote:
    Other features
    * Service Pack 1a includes custom ant tasks for start/stop,
    deploy/redeploy/undeploy, and access to JRun services through JMX.
    For more information, see the ant documentation at
    jrun_root/docs/ant/jrun.html.
    The aforementioned "docs/ant/jrun.html" does not exist
    anywhere in our CF installation. Any guidance would be greatly
    appreciated. Thanks,
    --Chris

    First, many who post think their problem is urgent. Saying so will not increase your chances of getting an answer.
    Second, your import has a comma in it. I would fix that first and then retry. If the container is saying the JSP cannot compile, then you at least have the container running and are able to access the page via a URL (which is good). You have a problem within your JSP. My guess is that your own classes (e.g., testpack.TestBean) cannot be found. But the error appears to be on the JSP itself.
    Third, unless the JRun deployment instructions say so, don't place things in your JRE's lib directory (or any directory under it). You are simply hiding a problem if you do that.
    Finally, testbean should follow Java naming conventions, and as a class should be first-case, e.g., TestBean.
    - Saish

  • Ant, eclipse help is needed please!!

    Hi all,
    I have a quick question in regard of ant and eclipse. If any of you know how to resolve this problem, please let me know . ok so the problem is the following.
    Is there a way to use Apache ANT to compile and execute a particular file in eclipse without specifying the class name? I can do that in cygwin using VIM with the command %:t:r However, I haven't found the solution to do so in eclipse. Any idea or tip or solution is appreciated very much.
    i.e. I can do this in cygwin. ant -target=%:t:r run this will automatically pick up the java file that I am currently working on and run it without telling ant which class I want to run. SO I would like to do the same in eclipse.
    Take care and God bless!

    Originally posted by: gregg.newatlanta.com
    Ahhh, commons-net.jar!! That was the ticket. Thanks for your patience.
    I had jakarta-oro-2.0.8.jar (which seems to work fine) but not
    commons-net.jar !!
    Thanks again!
    Gregg
    > The JARs you are seeing are the Ant JARs that make use of the library
    > dependancies.
    >
    > You will need the JARs as outlined in
    > http://ant.apache.org/manual/install.html#librarydependencie s.
    >
    > You will need the jakarta-oro-2.0.7.jar from http://jakarta.apache.org/oro/
    > and the commons.net JAR from
    > http://jakarta.apache.org/commons/net/index.html
    >
    > HTH
    > Darins
    >
    > "Gregg Orangio" <[email protected]> wrote in message
    > news:cnd180$5r7$[email protected]..
    >
    >>Thanks for the reply. However, it appears to me that Eclipse 3.0 does
    >>ship with these library dependencies. The Ant Home Entries in the
    >>runtime classpath shows the following libraries:
    >>
    >>.../plugins/org.apache.ant_1.6.1/ant-commons-net.jar
    >>.../plugins/org.apache.ant_1.6.1/ant-jakarta-oro.jar
    >>
    >>These Jar files do indeed exist on the Eclipse installation. Are these
    >>not the correct versions to allow the "telnet" task to be recognized?
    >>
    >>even though it appears to me that something else is wrong, I went ahead
    >>and installed newly downloaded versions of ant-commons-net.jar and
    >>jakarta-oro-2.0.8.jar from the Ant website. Adding these to either the
    >>Ant Home Entries or the Global Entries does not correct the problem.
    >>
    >>Please help.
    >>
    >>
    >>
    >>Darin Swanson wrote:
    >>
    >>>The telnet task (as an optional task) has library dependencies that do
    >
    > not
    >
    >>>ship with Ant.
    >>>
    >>>See http://ant.apache.org/manual/install.html#librarydependencie s
    >>>
    >>>For telnet you need commons-net.jar and jakarta-oro 2.0.1.jar
    >>>
    >>>Likely your best solution is to add these JARs to the global Ant runtime
    >>>classpath via the Ant preferences.
    >>>
    >>>HTH
    >>>Darins
    >>>
    >>
    >
    >

  • Server ant build file

    New to ODi, looking for some advice.
    I can run an ant script - but have to specify build file on local machine i.e c:\application\config\build.xml
    Is there anyay to specify a file on a server maybe server:/config/build.xml or use a logical file technology based data source?
    Many Thanks

    does someone have idea about my issues?
    below are my telnet task definition in ant and output message after runing the task, but i can not see any result from the command "mkdir".
    <project name="XXX" basedir="." default="telnet">
    <target name="telnet" depends="" description="" >
         <telnet userid="XXX" password="XXX" server="missrv" >
              <write string="cd /home/hfan" />
              <write string="mkdir test"/>     
         </telnet>
    </target>
    <project>
    Henry

  • Problem compiling in Linux using ant

    Hi,
    I have a problem using ant in Linux.
    When I build my application using ant in Windows it works fine, but when I try to build the same application with ant in Linux it gives me the following exception:
    /identifier/MidiReader.java:5: error: Class or interface `javax.sound.midi.Sequence' not found in import.
    I have already checked and the 'javax.sound.midi.Sequence' exists in import.
    Can anybody help me?
    Regards,
    David

    In your javac task (in Ant), you need to explicitly include any external JAR's required for compilation (see ant.apache.org's docs for info). Importing them in a Java source file does not tell Ant where to locate the JAR for linking.
    - Saish
    "My karma ran over your dogma." - Anon

Maybe you are looking for

  • Tax issue in Return order

    Hey All, Am using Vertex system to calculate taxes. I have billed a customer and let's say taxes are  250$. when i return that item by creating a return order against billing(with reference) using VA01, the taxes charged to customer are applied when

  • Quantity of apple tv allowed

    Dear all! How many Apple TV can be used in an Home Sharing setup ? I make a system with 6 unit but the sixth one doesn't work, also ATV is lock to 5 units ? Is there a way, maybe by pay an extra licence, to install up to 10 that talk to the same iTun

  • How do i get my playlists to appear on my iPod?  I've synched the iPod to the computer but I can't see anything for playlists.

    I've created playlists with Genius and have saved them.  I then synched my ipod touch but don't see anything on the ipos that shows playlists at all.  What am I missing?  Thanks all!

  • Complex Queries with Discoverer 3.1

    I have ran a query with some filtered data. With the results of my original query, I need to exclude any duplicates from a matching field in a new worksheet with new conditions in a new query. Can this be done? I have tried using the subquery, but I

  • TV signal gone after reset HELP please..

    Since we got that major update on BT vision 3-4 months ago my vision has been near on useless. it freezes when watching freeview channels, wouldnt even load the catch up menus half the time, when I called and complained I was told it was because the