Using jagant in connected mode

To run jagant in connected mode, specify these options for the jag_connect command:

For example, this sample project defines a connect task to connect to the machine “myhost” at port 9000, logging in as “admin@system,” and runs the jag_list command over the connection:

<?xml version="1.0"?>

<!DOCTYPE project [
<!ENTITY jagtasks SYSTEM "file:./jagtasks.xml">
]>  

<project name="local_sample" default="list_packages" basedir=".">

  <!-- include server task definitions -->
  &jagtasks;

  <!-- connect -->
  <target name="connect">
    <jag_connect host="myhost" port="9000" user="admin@system" password="" />
    </target>

  <!-- list packages in the server -->
  <target name="list_packages" depends="connect">
    <jag_list type="Package" />
  </target>

  <!-- list the properties of package CtsSecurity -->
  <target name="CtsSecurity_props" depends="connect">
    <jag_props entity="Package:CtsSecurity" />
  </target>

</project>