在Eclipse中映射多个ivy文件 [英] mapping multiple ivy files in Eclipse
问题描述
目前,我正在改变我的Eclipse构建常春藤路径。
I'm currently changing my eclipse build paths with Ivy.
我也有2常春藤文件加载的找回我的依赖性成功修改我的ANT构建:
I also modified my ANT build successfully by having 2 Ivy files loaded that retrieve my dependencies:
在我的portlet构建文件,我专门打电话共同依存关系所有prevents我在每一个Portlet项目指定相同librairies portlet的:
In my portlet build file, I specifically call the common dependencies for all of the portlets which prevents me from specifying the same librairies in every Portlet project:
<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>
这里的code从build.xml文件片断为所有我的项目:
Here's the code from build.xml snippet for all of my projects :
<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。
Everything runs fine with ANT.
如何设置,使用IvyIDE插件,位于另一个项目中我一般常青藤文件?
How do I set, using IvyIDE plugin, my generic Ivy file located in another project?
推荐答案
使用常春藤延伸的 http://ant.apache.org/ivy/history/latest-milestone/ivyfile/extends.html
马克说,不要制造问题,然后尝试去解决它。您可以使用扩展到使用其他常春藤的portlet.xml [这本身驻留在一个模块中]与extendType =depenencies
Mark said it, don't create a problem and then try to solve it. You can use extends to use the other ivy-portlet.xml [which resides in a module by itself] with extendType="depenencies"
使用每个项目和IvyDE和常春藤文档,一会在你身边。试图操纵,你会独自发现自己。
Use one per project and IvyDE and ivy documentation will be at your side. Try to maneuver and you will find yourself alone.
这篇关于在Eclipse中映射多个ivy文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!