title: How do I troubleshoot an ANT "exec" command line error message?
body: <p>Using an Ant script, I am trying to build the bar file to deploy in IIB Server. But I am facing an error like:</p>
  
  <blockquote>
    <p>BIP0960E Incorrect "-a", "-l", "-p", or "-o" argument supplied to mqsicreatebar</p>
  </blockquote>
  
  <p>Please do let me know how to solve this error.</p>
  
  <p>Thank You.</p>
  
  <p>I am using the following ant script :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project name="Test" default="Create_bar" basedir="."&gt;
      &lt;property file="ucd.properties"&gt;&lt;/property&gt;
       &lt;taskdef resource="net/sf/antcontrib/antlib.xml"&gt;
            &lt;classpath&gt;
                &lt;pathelement location="C:\apache-ant-1.9.6\lib\antcontrib.jar"/&gt;
            &lt;/classpath&gt;
       &lt;/taskdef&gt;  
  
       &lt;!-- Making Windows command environment  --&gt;
       &lt;target name="mqsiprofile.cmd"&gt;
       &lt;exec executable="${broker.mqsi.path}\mqsiprofile.cmd" /&gt;
       &lt;/target&gt;
  //  &lt;!-- Creating a bar file --&gt;
          &lt;target name="Create_bar"&gt;
              &lt;for list="${project_name}" delimiter="," param="pName"&gt;
                  &lt;sequential&gt;
                  &lt;echo message="@{pName}"/&gt;
                  &lt;exec executable="${toolkit.home}\mqsicreatebar.exe" spawn="false" vmlauncher="false" failonerror="true"&gt;
                  //  &lt;!-- project's workspace--&gt;
                      &lt;arg value="-data" /&gt;
                      &lt;arg value="${workspaces.dir}" /&gt;
                      &lt;!--barfile generated path--&gt;
                      &lt;arg value="-b" /&gt;
                      &lt;arg value="${bar.loc}\@{pName}.msgflow.generated.bar" /&gt;
                      &lt;!--project Name--&gt;
                      &lt;arg value="-p" /&gt;
                      &lt;arg value="@{pName}" /&gt;
                      &lt;!--Message flows for its corresponding projects which has given in cvsCheckout.properties--&gt;
                      &lt;arg value="-o" /&gt;
                      &lt;arg line="@{bar.loc}\${@{pName}.flow_name}" /&gt;
                      &lt;arg line="@{bar.loc}\IAM_Demo_Compute.esql" /&gt;
                  &lt;arg value="-deployAsSource" /&gt;
                  &lt;/exec&gt; 
                  &lt;/sequential&gt;
              &lt;/for&gt;
          &lt;/target&gt;
  
      &lt;/project&gt;
  </code></pre>
  
  <p>I placed all the necessary components to build the bar file.</p>