Hello,
  I'm having problems getting AntServer and RemoteAnt to run
successfully. The gist is that I have a build file running on an XP
box that should kick off a build file on a linux box. Here is what I
have done so far (just to test the communication between the
machines):


ON LINUX BOX:
-copied ant-contrib.jar to /usr/local/apache-ant-1.6.2/lib
-created remote.xml
------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="RMI" basedir="." default="start.ant.server">
        <path id="classpath">
                <fileset dir="/usr/local/apache-ant-1.6.2/lib">
                        <include name="**/*.*jar"/>
                </fileset>
        </path>
        <target name="start.ant.server">
                <taskdef resource="net/sf/antcontrib/antcontrib.properties">
                        <classpath refid="classpath"/>
                </taskdef>
                <antserver port="12345" />
        </target>
        <target name="remoteant">
                <ant target="" antfile="build.xml" />
        </target>
</project>
------------------------------
-ran the following on the linux box: ant -f remote.xml
-this starts about 10 java processes and no errors

ON XP BOX:
-copied ant-contrib.jar to C:\ant\lib
-created RMI.xml
-------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="RMI" default="exec.task.on.remote.ant.server">
        <path id="classpath">
                <fileset dir="C:\ant\lib">
                        <include name="**/*.*jar"/>
                </fileset>
        </path>
        <taskdef resource="net/sf/antcontrib/antcontrib.properties">
                <classpath refid="classpath"/>  
        </taskdef>
        <target name="exec.task.on.remote.ant.server">
                <remoteant machine="10.11.12.15" port="12345">
                        <runtarget target="task.on.remote.machine" />
                </remoteant>
        </target>
        <target name="task.on.remote.machine">
                <echo message="hi"/>
        </target>
</project>
-------------------------------
-verified that remote IP is 10.11.12.15
-ran the following: ant -f RMI.xml
-produces output:

>>>>>>
Buildfile: RMI.xml
exec.task.on.remote.ant.server:
[remoteant] Command caused a build
failure:[EMAIL PROTECTED]
C:\RMI.xml:12: One or more commands failed.
Total time: 1 second
BUILD FAILED
>>>>>>

thanks for any help
Chad

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to