Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 是否允许我向Ant compilerarg元素传递多个参数?_Java_Ant - Fatal编程技术网

Java 是否允许我向Ant compilerarg元素传递多个参数?

Java 是否允许我向Ant compilerarg元素传递多个参数?,java,ant,Java,Ant,在Ant中,我有义务做这样的事情吗: <compilerarg value= "-Xlint:deprecation,unchecked" /> <compilerarg value= "-Xlint:deprecation" /> <compilerarg value= "-Xlint:unchecked" /> i、 e,我想传递-Xlint:deprecation和-Xlint:unchecked这一页介绍了使用compilerarg元素的正确

在Ant中,我有义务做这样的事情吗:

<compilerarg value= "-Xlint:deprecation,unchecked" /> 
<compilerarg value= "-Xlint:deprecation" />
<compilerarg value= "-Xlint:unchecked" />


i、 e,我想传递
-Xlint:deprecation
-Xlint:unchecked
这一页介绍了使用compilerarg元素的正确方法:

您可以执行多个嵌套元素,如下所示:

<compilerarg value= "-Xlint:deprecation,unchecked" /> 
<compilerarg value= "-Xlint:deprecation" />
<compilerarg value= "-Xlint:unchecked" />

或使用“线”属性而不是“值”:

<compilerarg line= "-Xlint:deprecation -Xlint:unchecked" />