展开Ant脚本的相对路径,Inkscape中 [英] Expand a relative path in Ant script, for Inkscape
问题描述
我想编写调用外部程序(Inkscape的,其实),需要一个完整的路径Ant脚本。现在我有
I'd like to write an Ant script that calls an external utility (Inkscape, in fact) that needs a full path. Right now I have
<exec executable="${inkscape.path}">
<arg value="--file=build_exe/splash.svg" />
<arg value="--export-png=build_exe/splash.png" />
<arg value="-C" />
</exec>
在Windows上,<一个href=\"http://wiki.inkscape.org/wiki/index.php/FAQ#I.27m%5Fon%5FWindows.2C%5Fand%5Fcommand%5Fline%5Fparameters%5Fdon.27t%5Fseem%5Fto%5Fwork.21\"相对=nofollow> Inkscape中需要绝对路径的。所以,我怎么能哄Ant来使 build_exe /文件名
进入对我来说是绝对路径?或者,交替,是有Inkscape中(也许设置工作目录)?
On Windows, Inkscape requires absolute paths. So how can I coax Ant to make build_exe/filename
into an absolute path for me? Or, alternately, is there a workaround for Inkscape (maybe setting the working directory)?
推荐答案
使用:
<property name="x" location="folder/file.txt" />
在 $ {X}
值将是相对于文件的绝对路径 $ {BASEDIR}
值。
the ${X}
value will be the absolute path of the file relative to the ${basedir}
value.
这篇关于展开Ant脚本的相对路径,Inkscape中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!