<ivy:cachepath> is SLOW, how to avoid doing it every build and improve ivy cachepath performance?

耗尽温柔 提交于 2019-12-02 09:20:36

This is probably a stupid way to do it, but I just brute forced a solution by writing classpath to disk and cut build times in half:

Write via:

    <pathconvert property="classpath">
        <path refid="classpath" />
    </pathconvert>
    <propertyfile file="my.properties" comment="My properties">
        <entry key="classpath" value="${classpath}"/>
    </propertyfile>

Read via:

    <loadproperties srcFile="my.properties"/>

Use via:

    <javac classpath="${classpath}" ... >

It may have been even faster with the <echo file= task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!