dougua9165
2016-09-25 07:24
浏览 2.3k
已采纳

如何在Intellij IDEA参数中使用通配符

I use try add arguments in run configuration.

I add master sequential pg-*.txt. But when I start running. the error come out.

/usr/local/go/bin/go run /home/asus/dev/6.824/src/main/wc.go master sequential pg-*.txt
master: Starting Map/Reduce task wcseq
panic: open pg-*.txt: no such file or directory

But I use the command in terminal is OK.

~/dev/6.824/src/main$ /usr/local/go/bin/go run /home/asus/dev/6.824/src/main/wc.go master sequential pg-*.txt
master: Starting Map/Reduce task wcseq
Merge: read mrtmp.wcseq-res-0
Merge: read mrtmp.wcseq-res-1
Merge: read mrtmp.wcseq-res-2
master: Map/Reduce task completed

I think the problem is the Wildcard.So how to use Wildcard in Intellij IDEA arguments?

图片转代码服务由CSDN问答提供 功能建议

我在运行配置中使用try add参数。</ p>

我添加主顺序pg-*。txt </ code>。 但是当我开始跑步时。 错误会出来。</ p>

  / usr / local / go / bin / go运行/home/asus/dev/6.824/src/main/wc.go master顺序pg-  * .txt 
master:启动Map / Reduce任务wcseq 
panic:打开pg-*。txt:没有此类文件或目录
 </ code> </ pre> 
 
 

但是我在 </ p>

 〜/ dev / 6.824 / src / main $ / usr / local / go / bin / go run /home/asus/dev/6.824/src/  main / wc.go主序列pg-*。txt 
master:启动Map / Reduce任务wcseq 
合并:读取mrtmp.wcseq-res-0 
合并:读取mrtmp.wcseq-res-1 
合并:读取mrtmp.wcseq  -res-2 
master:Map / Reduce任务已完成
 </ code> </ pre> 
 
 

我认为问题在于通配符。那么如何在Intellij IDEA参数中使用通配符?</ p > </ div>

1条回答 默认 最新

相关推荐 更多相似问题