unable to open '\Users\xxx\...../flex/services-config.xml' csgsim_mysql 未知 Flex 问题

1、问题分析:

windows下的flex+java项目移植到Mac环境报错,如标题所示:意思是找不到引号路径下的文件。显然在Mac环境下路径分隔符是/,但是我们可以看到路径中前半部分为/,后面却是\,所以错误之处是:在取services-config.xml路径的后面设置错了。该设置的位置在:项目工作空间下的一级目录:比如,我的项目名为csgsim,那么csgsim文件夹下面就有.actionScriptProperties文件。注意:该文件在Mac环境下是以隐藏方式出现的,但是Mac可以自己设置是否显示隐藏文件,这一点可以百度。此时已经找到问题所在,接下来就是更改.actionScriptProperties下路径的配置。


2、actionScriptProperties原内容为:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="main.mxml" projectUUID="5ecef193-e868-4a4e-9d16-688fbaffe5ce" version="10">
  <compiler additionalCompilerArguments="-services "${user.dir}\..\WebRoot\WEB-INF\flex\services-config.xml" -locale en_US --target-player=10.0.0" autoRSLOrdering="false" copyDependentFiles="true" flexSDK="Flex 3.5" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="WebRoot" removeUnusedRSL="true" rootURL="" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="9.0.124" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath/>
    <libraryPath defaultLinkType="0">
      <libraryPathEntry kind="4" path="">
        <excludedEntries>
          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
        </excludedEntries>
      </libraryPathEntry>
      <libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
    </libraryPath>
    <sourceAttachmentPath/>
  </compiler>
  <applications>
    <application path="main.mxml"/>
    <application path="sourceCode/ocableTopo/views/BusinessInfluencedForTmis.mxml"/>
    <application path="index.mxml"/>
    <application path="indextest.mxml"/>
    <application path="sourceCode/businessDispatch/view/CircuitInfo.mxml"/>
    <application path="select_module.mxml"/>
  </applications>
  <modules/>
  <buildCSSFiles/>
  <flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>

仅仅需要修改第4行内容即可。

actionScriptProperties修改如下:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties analytics="false" mainApplicationPath="main.mxml" projectUUID="5ecef193-e868-4a4e-9d16-688fbaffe5ce" version="10">
  <compiler additionalCompilerArguments="-services "${user.dir}/../WebRoot/WEB-INF/flex/services-config.xml" -locale en_US --target-player=10.0.0" autoRSLOrdering="false" copyDependentFiles="true" flexSDK="Flex 3.5" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="WebRoot" removeUnusedRSL="true" rootURL="" sourceFolderPath="flex_src" strict="true" targetPlayerVersion="9.0.124" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
    <compilerSourcePath/>
    <libraryPath defaultLinkType="0">
      <libraryPathEntry kind="4" path="">
        <excludedEntries>
          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
        </excludedEntries>
      </libraryPathEntry>
      <libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
    </libraryPath>
    <sourceAttachmentPath/>
  </compiler>
  <applications>
    <application path="main.mxml"/>
    <application path="sourceCode/ocableTopo/views/BusinessInfluencedForTmis.mxml"/>
    <application path="index.mxml"/>
    <application path="indextest.mxml"/>
    <application path="sourceCode/businessDispatch/view/CircuitInfo.mxml"/>
    <application path="select_module.mxml"/>
  </applications>
  <modules/>
  <buildCSSFiles/>
  <flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>

4、在flash builder里面重新clean一下项目,问题解决。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值