Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.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
Perforce流视图导入路径带文件扩展名_Perforce_Perforce Stream - Fatal编程技术网

Perforce流视图导入路径带文件扩展名

Perforce流视图导入路径带文件扩展名,perforce,perforce-stream,Perforce,Perforce Stream,我现在有两个流,在我的第二个流中,我想根据文件扩展名从另一个流导入某些文件 如果我使用以下语句进行设置: import from_second_stream/... //second_stream/....xml import from_second_stream/... //second_stream/....json 它成功地将所有文件导入到正确的位置,但删除了文件扩展名。 例如,我在第二个流中有一个文件,路径如下: //second_stream/test/myTest.json 应将

我现在有两个流,在我的第二个流中,我想根据文件扩展名从另一个流导入某些文件

如果我使用以下语句进行设置:

import from_second_stream/... //second_stream/....xml
import from_second_stream/... //second_stream/....json
它成功地将所有文件导入到正确的位置,但删除了文件扩展名。 例如,我在第二个流中有一个文件,路径如下:

//second_stream/test/myTest.json
应将其导入为:

from_second_stream/test/myTest.json
而是变成:

from_second_stream/test/myTest

我做错了什么?

根据Performce支持:

路径应为:

从第二个\u流导入/…json//第二个\u流导入/…json

但是,不允许在流视图中嵌入通配符,因此您将无法使用该通配符。相反,您需要指定视图中的每个文件:

从第二个流/test/myTest.json//第二个流/test/myTest.json导入


因此,我们不得不重新构建构建系统以适应这种情况……

您是否尝试过将“.xml”和“.json”放在映射左侧的末尾?(所以第一行应该是“import from_second_stream/…xml//second_stream/…xml”)是的,我这样做了,但perforce不接受。更多信息,请查看答案