0

对不起或问非常基本的问题和我的英语

我正在尝试在 Cygwin 中运行 SVN 导出命令,它工作正常。现在我想使用文本框 Paas 参数如何实现这一点。

ProcessBuilder pb = new ProcessBuilder("cmd"," /c svn export http://My_svn/trunk/data/ d:\\NirajData -r 118 --username niraj --password abc123 --force --non-interactive");

在上面的代码中我想通过

SVN_path=http://My_svn/trunk/data/ 
Destination Path=d:\\NirajData
Svn Versio=118
svnusername=niraj
svnpassword=abc123

请帮助我这样做。提前致谢..

4

1 回答 1

0

If I understand it correctly, instead of invoking process builder directly you need to show GUI component: - show GUI component containing boxes for your values and OK\Cancel buttons.
- when OK is pushed construct the command manually part by part based on values from GUI filled by user
- you can also add some checks if all of needed values are filled...
- invoke the command using process builder.

于 2012-04-04T12:08:06.047 回答