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
如果makefile失败,停止ant构建_Ant_Java Native Interface_Makefile - Fatal编程技术网

如果makefile失败,停止ant构建

如果makefile失败,停止ant构建,ant,java-native-interface,makefile,Ant,Java Native Interface,Makefile,我有一个执行makefile的ant构建文件 <target name="jni"> <exec executable="make"> <arg line="-f jni/Makefile"/> </exec> </target> 但是,如果make失败,则将执行依赖于此规则的其他规则 如果jni规则失败,如何停止ant

我有一个执行makefile的ant构建文件

        <target name="jni">
            <exec executable="make">
                <arg line="-f jni/Makefile"/>
            </exec>
        </target>

但是,如果make失败,则将执行依赖于此规则的其他规则


如果jni规则失败,如何停止ant?

使用
failonerror
属性,默认为
false

<target name="jni">
    <exec executable="make" failonerror="true">
        <arg line="-f jni/Makefile"/>
    </exec>
</target>


是啊!就好像他们希望我做RTFM一样!!