Skip to content

Commit

Permalink
add profileFile attribute to Ant task
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed May 2, 2013
1 parent e08830a commit 3dc9db7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/src/anttask.xml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ Calabash</citetitle> from Apache Ant using the
<td>Desired JSON flavor</td>
<td>No</td>
</tr>
<tr>
<td>profileFile</td>
<td>The path to the file where profile information should be written to, or "<literal>-</literal>" for stdout</td>
<td>No</td>
</tr>
</tbody>
</informaltable>
</section>
Expand Down
4 changes: 4 additions & 0 deletions docs/src/configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ a <tag>p:pipeline</tag>.</para>
<entry>XML configuration:</entry>
<entry><tag class="starttag">cc:profile</tag><replaceable>filename</replaceable><tag class="endtag">cc:profile</tag></entry>
</row>
<row>
<entry>Ant task:</entry>
<entry><tag class="emptytag">calabash <tag class="attribute">profileFile</tag>="<tag class="attvalue"><replaceable>filename</replaceable></tag>"</tag></entry>
</row>
</tbody>
</tgroup>
</informaltable>
Expand Down
13 changes: 13 additions & 0 deletions src/com/xmlcalabash/drivers/CalabashTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,19 @@ public void setJSONFlavor(String jsonFlavor) {
}
}

/**
* Set the path to the file where profile information should be written to, or {@code -} for stdout.
*
* @param profileFile the path to the file where profile information should be written to, or {@code -} for stdout
*/
public void setProfileFile(String profileFile) {
try {
userArgs.setProfileFile(profileFile);
} catch (Exception e) {
handleError(e);
}
}

/**
* Do the work.
*/
Expand Down

0 comments on commit 3dc9db7

Please sign in to comment.