Azure的月蚀:cspack.exe:错误:指定的路径,文件名,或者两者都太长 [英] Azure Eclipse : cspack.exe: Error : The specified path, file name, or both are too long

查看:361
本文介绍了Azure的月蚀:cspack.exe:错误:指定的路径,文件名,或者两者都太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试部署在本地的Tomcat Eclipse中的应用程序,我有这样的错误:

When I try to deploy an application with eclipse on tomcat in local, I have this error:

[windowsazurepackage] cspack.exe:错误:指定的路径,文件名,或者两者都太长。完全合格的文件名必须少于260个字符,并且目录名必须少于248个字符。

[windowsazurepackage] cspack.exe: Error : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

我已经改变环境变量 _CSRUN_STATE_DIRECTORY

但我没有这个错误,当我不选择JDK和Tomcat的我,当我创建他Azure项目部署。但在这种情况下,我的应用程序不启动。

But I haven't this error when I don't choose the JDK and my Tomcat when I create he Azure Project deployment. But in this case, my application doesn't start.

你能帮助我吗?

推荐答案

我解决了这个编辑 package.xml中在部署项目的根和通过搜​​索改变目标文件夹以下行:

I solved this by editing package.xml in the deployment project root and changing the destination folder by searching for the following line:

<!-- This is the directory where the Windows Azure deployment package or folder will be saved --> 
<property location="${basedir}\deploy" name="wapackagedir"/>

...然后改变 $ {BASEDIR} 更短的和绝对路径C:\\发布

这篇关于Azure的月蚀:cspack.exe:错误:指定的路径,文件名,或者两者都太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆