Nant 构建脚本自动重定向文件夹
我从以前的同事那里继承了一个 nant 脚本。它用于构建应用程序并将其分发到称为阶段的相关站点(测试版、实时版)。
有问题的属性:
我使用命令 buildpublishToBeta / Live
等待我的哪个阶段我在。我有
和
,它采用 ftpRoot 并创建 ftpFolder
当然还有 Live。
到目前为止看起来不错。
此时 ${ftpFolder} = build\ftp\Beta
(对于测试阶段)
唯一的问题是有问题的网站转到 ftp://application/{stage}
> 寻找新版本。从我的(开发人员)端来看,这是 \\ftpServer\ftp\application\{stage}
。
不知何故 build\ftp\beta
等于 \\ftpServer\ftp\application\beta
(对于 live 同样如此)
我找不到文件夹 build\ftp\{ stage}
在我的开发人员计算机上,我找不到将任何内容从我的 c:\...\build\ftp\{stage}
复制到 ftp 服务器的脚本行。
我错过了什么吗? Nant 能否将我的 c:\ 上的虚拟文件夹与服务器上的物理文件夹建立别名?南特是否具有我尚未发现的自动魔法能力?
I have inherited a nant script from a previous colleague. It is used for among others building the application and distributing it to the sites in question (beta, live) called stage.
The property in question: <property name="ftpRoot" value="build\ftp\" />
I use the command build publishToBeta / Live
pending which stage I'm at. I have <target name="publishToBeta" />
and <target name="publishToLive">
which takes the ftpRoot and makes a ftpFolder<property name="ftpFolder" value="${ftpRoot}Beta\" />
and ofcourse a Live too.
Looks good sofar.
At this point ${ftpFolder} = build\ftp\Beta
(for the beta stage)
Only problem is the website in question goes to ftp://application/{stage}
to look for new version. From my(developer) end that is \\ftpServer\ftp\application\{stage}
.
Somehow build\ftp\beta
equals \\ftpServer\ftp\application\beta
(and likewise with live)
I can not find the folder build\ftp\{stage}
on my developer machine, and I can not find the script lines where it copies anything to the ftp server from my c:\...\build\ftp\{stage}
.
Am I missing something? Can nant alias a virtual folder on my c:\ with a physical folder on the server? Does nant have automagical capabilities I have yet to discover?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
呃,找到了。稍微提到一个新的 xml - 包含一个新的
只花了我 2- 3天。隐藏得很好。
Argh, found it. A small bit referring to a new xml - containing a new
<property name="ftpRoot" value="\\ftpServer\ftp\{application}\" />
Only took me a 2-3 days. Very well hidden.