2를 호출하는 중 하나를 호출하려고합니다.순차적으로 2 개의 아이비 파일을 호출하는 중
내 ivy_portlet.xml이있는 경우 두 번째 호출이 실행되지 않습니다. 두 번째 통화에 존재하지 않는 내 ivy_portlet.xml이
2 개 파일이 ivy.xml
의 내용을 검색하고은 첫 번째 명령 만 실행됩니다.
무엇이 누락 되었습니까?
<if>
<available file="${basedir}/ivy_portlet.xml" />
<then>
<echo message="Getting runtime portlet dependencies using Ivy project's configuration" />
<ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${basedir}/ivy_portlet.xml"/>
</then>
</if>
<if>
<available file="${basedir}/ivy.xml" />
<then>
<echo message="Getting deps using Ivy project's configuration" />
<ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${basedir}/ivy.xml"/>
</then>
</if>
다른 종속성 그룹을 관리하려고합니다. 이 경우 단일 아이비 파일 내에서 구성하면보다 유연하게 문제를 해결할 수 있습니다. –