我想编写一个 Ant 脚本来调用需要完整路径的外部实用程序(实际上是 Inkscape)。现在我有
<exec executable="${inkscape.path}">
<arg value="--file=build_exe/splash.svg" />
<arg value="--export-png=build_exe/splash.png" />
<arg value="-C" />
</exec>
在 Windows 上,Inkscape 需要绝对路径 http://wiki.inkscape.org/wiki/index.php/FAQ#I.27m_on_Windows.2C_and_command_line_parameters_don.27t_seem_to_work.21。那么我怎样才能哄Ant做build_exe/filename
对我来说是一条绝对路径吗?或者,Inkscape 是否有解决方法(也许设置工作目录)?
用这个:
<property name="x" location="folder/file.txt" />
the ${X}
值将是文件相对于的绝对路径${basedir}
value.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)