bndtools:如何获取jar文件或插件的最新版本
问题描述:
我是bndtools中的新成员。我想知道是否有任何方法来检索我的jar文件的最新版本?我的lib文件夹有很多JAR版本(My-Api-1.0.50,My-Api-1.0.85,My-Api-1.0.90)?bndtools:如何获取jar文件或插件的最新版本
我设法通过使用ant来解决依赖关系。我的JAR文件保存在lib文件夹中。我想在我的bnb.bnb中使用它。但我需要使用最新版本。
代替:
-buildpath: lib/My-Api-1.0.90.jar;version=file
我想类似的东西,或替代解决方案:
-buildpath: lib/My-Api-[**latestVertion**].jar;version=file
请指教?谢谢
答
我mangaed通过解决这个问题:
添加仅在Ant生成脚本http://ant.apache.org/ivy/history/2.2.0/install.html
使用常春藤自动安装常春藤插件重命名罐retrived(MyApi-最新。 JAR)
<move tofile="lib/MyApi-latest.jar" force="true"> <fileset dir="lib"> <include name="My-Api*.jar" /> <exclude name="My-Api-latest.jar"/> </fileset> </move>
- 在我bnd.bnd
-buildpath:LIB/MY-API-latest.jar;版本=文件