English 中文(简体)
您如何使用嵌套的文物元素来发布 Ant 任务?
原标题:How do you use nested artifact elements for the ivy publish ant task
  • 时间:2012-05-25 10:19:06
  •  标签:
  • ant
  • build
  • ivy
最佳回答

这个问题的答案有帮助吗?

发布任务中嵌套的“ 艺术” 元素用于识别您指定的、 您模块将要发布的文物的位置 。

例如,比如说,你的模块出版两个文件:

<ivy-module version="2.0">
    <info organisation="someorganisation" module="myapp"/>

    <publications>
        <artifact name="myapp" type="jar"/>
        <artifact name="license" type="txt"/>
    </publications>
    ..

您的发布任务可能需要从构建工作空间内的两个不同地点 获取这些文件 :

   <ivy:publish resolver="${publish.resolver}" pubrevision="${publish.revision}" status="${publish.status}">
        <artifacts pattern="${build.dir}/[artifact].[ext]"/>
        <artifacts pattern="${src.dir}/licenses/[organisation]/[artifact].[ext]"/>
    </ivy:publish>
问题回答

暂无回答


上一篇:
下一篇:


相关问题
Elegant way building url request with parameters

There must me a more elegant way to build a URL with parameters in .NET then for example Response.Write("<a href=HeadOfMarketView.aspx"+Session["HOM"] != null ? Session["HOM"]+">Head of Market&...

buildforge problem

when i tried to run the job i am getting the error saying that No server could be found matching all conditions please any one help me on this

您能否防止MSBuild.exe经营活动?

我用文字建造一些项目,偶尔利用习俗制造事件,给建筑系统造成了很大困难。 如果有可能,我想援引MSBuild.exe。

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Keyboard shortcut to build only startup project?

I ve tried to find a keyboard shortcut to build only the startup project In VS2008. I only found a configurable shortcut to build the project which is currently viewed, which isn t as good. Any ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

热门标签