현재 아이비를 사용하여 이클립스 빌드 경로를 변경하고 있습니다.Eclipse에서 다중 아이비 파일을 매핑하는 중
내 포틀릿 빌드 파일에서, 내가 특별히 같은 지정에서 저를 방지 포틀릿의 모든 일반적인 종속성을 호출
나는 또한 내 종속성을 검색하는로드 2 개 아이비 파일을함으로써 성공적으로 내 ANT 빌드를 수정 모든 포틀릿 프로젝트 librairies : 여기<if>
<available file="${rpm.homedir}/Builder/ivy_portlet.xml" />
<then>
<echo message="Getting runtime portlet dependencies using Ivy project's configuration" />
<ivy:resolve file="${rpm.homedir}/Builder/ivy_portlet.xml"/>
<ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${rpm.homedir}/Builder/ivy_portlet.xml"/>
</then>
<else>
<fail message=" file ${rpm.homedir}/Builder/ivy_portlet.xml not found in the builded project." />
</else>
</if>
는 build.xml 파일의 코드입니다 내 모든 프로젝트 니펫 :
<target name="get-dependencies">
<if>
<available file="${basedir}/ivy.xml" />
<then>
<echo message="Getting deps using Ivy project's configuration" />
<ivy:resolve file="${basedir}/ivy.xml"/>
<ivy:retrieve pattern="${project.lib.dir}/[conf]/[artifact]-[revision](-[classifier]).[ext]" file="${basedir}/ivy.xml"/>
</then>
<else>
<fail message=" file ${basedir}/ivy.xml not found in the builded project." />
</else>
</if>
</target>
ANT로 모든 것이 잘 돌아갑니다.
IvyIDE 플러그인을 사용하여 다른 프로젝트에있는 일반 Ivy 파일을 어떻게 설정합니까?
하나의 ivy.xml 파일을 각 프로젝트의 루트에 두는 것이 훨씬 간단합니다. –