1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<!-- Documenting T:NAnt.Core.Types.Argument-->
5
<meta http-equiv="Content-Language" content="en-ca" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
<link rel="stylesheet" type="text/css" href="../style.css" />
8
<title><arg> Element</title>
11
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="NavBar">
13
<td class="NavBar-Cell">
14
<a href="http://nant.sourceforge.net">
17
<img alt="->" src="../images/arrow.gif" />
18
<a href="../index.html">Help</a>
19
<img alt="->" src="../images/arrow.gif" />
20
<span>Element Reference</span>
21
<img alt="->" src="../images/arrow.gif" /> <arg></td>
22
<td class="NavBar-Cell" align="right">
27
<p> Represents a command-line argument. </p>
28
<p> When passed to an external application, the argument will be quoted when appropriate. This does not apply to the <code>line</code> parameter, which is always passed as is. </p>
34
<th style="text-align: center;">Type</th>
36
<th style="text-align: center;">Required</th>
39
<td valign="top">dir</td>
40
<td style="text-align: center;">directory</td>
41
<td> The value for a directory-based command-line argument; will be replaced with the absolute path of the directory. </td>
42
<td style="text-align: center;">False</td>
45
<td valign="top">file</td>
46
<td style="text-align: center;">file</td>
47
<td> The name of a file as a single command-line argument; will be replaced with the absolute filename of the file. </td>
48
<td style="text-align: center;">False</td>
51
<td valign="top">if</td>
52
<td style="text-align: center;">bool</td>
53
<td> Indicates if the argument should be passed to the external program. If <b>true</b> then the argument will be passed; otherwise, skipped. The default is <b>true</b>. </td>
54
<td style="text-align: center;">False</td>
57
<td valign="top">line</td>
58
<td style="text-align: center;">string</td>
59
<td> List of command-line arguments; will be passed to the executable as is. </td>
60
<td style="text-align: center;">False</td>
63
<td valign="top">path</td>
64
<td style="text-align: center;"><path></td>
65
<td> The value for a PATH-like command-line argument; you can use <code>:</code> or <code>;</code> as path separators and NAnt will convert it to the platform's local conventions, while resolving references to environment variables. </td>
66
<td style="text-align: center;">False</td>
69
<td valign="top">unless</td>
70
<td style="text-align: center;">bool</td>
71
<td> Indicates if the argument should not be passed to the external program. If <b>false</b> then the argument will be passed; otherwise, skipped. The default is <b>false</b>. </td>
72
<td style="text-align: center;">False</td>
75
<td valign="top">value</td>
76
<td style="text-align: center;">string</td>
77
<td> A single command-line argument; can contain space characters. </td>
78
<td style="text-align: center;">False</td>
82
<h3>Nested Elements:</h3>
87
<<a href="../types/path.html">path</a>>
89
<div class="nested-element"> Sets a single command-line argument and treats it like a PATH - ensures the right separator for the local platform is used. <p /></div>
93
</<a href="../types/path.html">path</a>>
98
<p> A single command-line argument containing a space character. </p>
100
<arg value="-l -a" />
104
<p> Two separate command-line arguments. </p>
106
<arg line="-l -a" />
110
<p> A single command-line argument with the value <code>\dir;\dir2;\dir3</code> on DOS-based systems and <code>/dir:/dir2:/dir3</code> on Unix-like systems. </p>
112
<arg path="/dir;/dir2:\dir3" />
116
<h3>Requirements</h3>
117
<div style="margin-left: 20px;">
118
<b>Assembly:</b> NAnt.Core (0.90.3780.0)
b'\\ No newline at end of file'