我似乎无法弄清楚为什么每次尝试在 Flash Builder 4 中编译 ASDoc 时都会继续收到此错误。
我在 ASDoc 中确实成功创建了一个 asdoc-output 文件夹,但它不完整。只显示了 toplevel.xml 和 tempdita 文件夹。
这是我的控制台上显示的错误
xsl 错误:在 processHTML.xslt 的第 46 行选择: java.io.FileNotFoundException: /Users/NEWYORK/abritez/Documents/workspaces/ate/ATE_Shell/asdoc-output/index.tmp(没有这个 文件或目录) 在 xsl:apply-templates (file:/Users/NEWYORK%5Cabritez/Documents/workspaces/ate/ATE_Shell/asdoc-output/tempdita/processHTML.xslt#25) 处理/html 转换失败:报告了运行时错误
第 46 行在 ProcessHTML.xslt 是<xsl:choose>
下面元素中的首字母。
<xsl:template match="html">
<xsl:copy-of select="$noLiveDocs"/>
<xsl:choose>
<xsl:when test=".//frameset">
<xsl:copy-of select="$frameDocType"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$docType"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$isLiveDocs"/>
<xsl:otherwise>
<xsl:value-of select="$markOfTheWeb"/>
</xsl:otherwise>
</xsl:choose>
<xsl:element name="html">
<xsl:apply-templates/>
<xsl:copy-of select="$copyrightComment"/>
<xsl:value-of select="$newline"/>
</xsl:element>
</xsl:template>
我去了外部工具配置并添加了 asdoc 的位置
/应用程序/Adobe Flash Builder 4/sdks/flex_sdk_4.1/bin/asdoc
然后我添加了我的工作目录
${workspace_loc:/ATE_Shell}
最后我插入了我所有的论点
-宽容 -source-path src -doc-sources src -external-library-path=/Users/NEWYORK\abritez/Documents/workspaces/ate/ActivityToolkitLib/bin/ActivityToolkitLib.swc -external-library-path=/Users/NEWYORK\abritez/Documents/workspaces/ate/ATE_Template/bin/ATE_Template.swc -external-library-path=/Users/NEWYORK\abritez/Documents/workspaces/ate/AssesmentCommunicationLib/bin/AssesmentCommunicationLib.swc -external-library-path=/Users/NEWYORK\abritez/Documents/workspaces/ate/BFW_UI/bin/BFW_UI.swc -external-library-path=/Users/NEWYORK\abritez/Documents/workspaces/ate/DiagnosticReporter/bin/DiagnosticReporter.swc
更新:我最终回滚到 3.5 并做了一个测试应用程序,只有一种方法来记录并得到这个错误。
我的方法
package com.test
{
import mx.containers.Canvas;
public class Grouptest extends Canvas
{
public function Grouptest()
{
super();
}
/**
* Hello
*
* @param value Some string
* */
public function set testMe(value:String):void
{
trace("value " + value)
}
}
}
我的错误
加载配置文件 /Applications/Adobe Flash Builder 4/sdks/3.5.0/frameworks/flex-config.xml Adobe ASDoc 版本 3.5.0 构建 12683 版权所有 (c) 2004-2007 Adobe Systems, Inc. 保留所有权利。 错误:“”不是目录 使用“asdoc -help”获取有关使用命令行的信息
任何帮助或指向正确的方向都会非常感激。我过去运行过 ASDoc,所以我确信我一定忽略了一些东西。