[ant-contrib - Help] Exception on running client xml
"SourceForge.net" <[email protected]> Thu, 05 Jun 2008 04:43:45 -0700
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5009658
By: heema_j
Hi,
I am trying to get ant tasks done on remote machine using remote ant. I am
getting java.io.EOFException on running client xml from local machine.
1. I have downloaded the ant-contrib jar and placed in it in the ANT home
installation's lib directory.
2. I have 2 files on remote machine: (10.1.32.18)
antServer.xml-- to start the remote ant server
remoteAnt.xml-- the remote xml file that is to be excecuted
3. On my local machine I have one file:
antClient.xml
4. I started the ant server on the remote machine using antServer.xml
5. On running antClient.xml from my local machine using the command
: (10.1.32.19)
ant -f antClient.xml -Dant.home=D:/SBMPR_610c/ant
I get the following error:
Buildfile: antClient.xml
all:
BUILD FAILED
D:\remote-ant\antClient.xml:12: java.io.EOFException
I have included the files contents below:
antServer.xml
==============
<?xml version="1.0"?>
<project name="antServer" default="all" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" >
<classpath>
<pathelement location="${ant.home}/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<target name="all" >
<antserver port="12345" />
</target>
<target name="echoMessage" >
<echo message="antServer:: Hello!How are you?"/>
</target>
</project>
antClient.xml
==============
<?xml version="1.0"?>
<project name="antClient" default="all" basedir=".">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" >
<classpath>
<pathelement location="${ant.home}/lib/ant-contrib.jar"/>
</classpath>
</taskdef>
<target name="all" >
<remoteant machine="10.1.32.18" port="12345">
<runtarget target="echoMessage">
</runtarget>
<runant antfile="remoteAnt.xml" target="all" inheritall="true">
</runant>
<sendfile file="abc.xml" tofile="abc1.xml">
</sendfile>
</remoteant>
</target>
</project>
remoteAnt.xml
=============
<?xml version="1.0"?>
<project name="remoteAnt" default="all" basedir=".">
<target name="all" >
<echo message="remoteAnt:: Hello!How are you?"/>
</target>
</project>
Can anyone help me out if I am missing any step or any other mistake.
Thanks in advance,
Heema
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=113701
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php