Skip to content

读取 Ant build.xml 里 lib 目录之外的 classpath #7

Open

Description

@1lck

#6 已经支持读工作区里的 jar:Eclipse .classpath 里列出的 jar,以及 lib/、libs/、WEB-INF/lib 下的 jar。但 Ant 的 build.xml 如果把 jar 放在别的目录,比如 <pathelement location="ext/x.jar"/>,或 <fileset dir="${thirdparty.dir}"/>,这些 jar 还读不到。

思路:解析 build.xml 里 <path>/<classpath> 下的 pathelement 和 fileset;属性先从同目录的 build.properties 和 <property> 里求值,求不出来的条目跳过。不运行 Ant。

验收:找一个 jar 不放在 lib 目录的 Ant 项目,用 cmd/nav-bench -under 测改动前后的命中率和内存。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions