English 中文(简体)
使用带有空格的路径设置 ant 文件
原标题:Ant file set using path with spaces in it

我正让另一个蚂蚁用含有空间的源路径构建工作。 大部分都是基本的空壳脚本, 在路径周围添加双倍数, 但这一个让我无法接受 :

(来自建筑.xml):

<path id="headers">
    <fileset dir="${source.main.dir}">
        <include name="**/*.h"/>
    </fileset>
</path>

源代码.main.dir 是一个包含空格的路径。它预设为通过模式发现的每个包含文件名称的路径。我如何用每个文件的引号做到这一点?

如果重要的话,我正从OS X狮子10.7.4的指挥线上运行大楼。

最佳回答

我想我明白了,我变了

    <pathconvert pathsep=" " property="doc.files.list" refid="headers" />

    <pathconvert pathsep=" " property="doc.files.list" refid="headers">
        <map from= ${source.main.dir}  至= "${source.main.dir}"  />
    </pathconvert>

And it seems 至 be working now.

问题回答

暂无回答




相关问题
KornShell- Creating a fixed width text file

I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...

unix find command

how to use the find command to find files/directories which are not matching the pattern. for eg: find <some options > -name "dontfile.txt" should give me output of all the find whose file ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

1. 露台式照像

在Windows XP中,没有一时出现指挥时,是否有办法操作一种灰色文字? 我常常需要把“善待”(工作)与“灰色”同起来,即使我的文字没有产出,......

热门标签