How does ivy:publish use the [classifier] attribute

前端 未结 4 1865
粉色の甜心
粉色の甜心 2020-12-17 00:16

in ivy:publisher the default deliverivypattern is ${ivy.distrib.dir}/[type]s/[artifact]-[revision](-[classifier]).[ext]

I try to set classifier in my ivy.xml under

4条回答
  •  猫巷女王i
    2020-12-17 00:50

    I think I've figured out your problem.

    Just to be clear it is the configured resolver that determines the repository filename and not the publish task. Here's my example, which utilises two extra attributes greeting and author in the artifact and ivy filename patterns:

    
        
         
    
        
    
        
            
                
                
            
        
    
    

    The values of the extra attributes are determined by the ivy.xml file:

    
      
      
        
        
        
      
    
    

    Sure enough when I published the files the values of the greeting and author tags were present:

    $ find build -type f
    build/repo/hello/Mark-English-hello-1.0.txt
    build/repo/hello/Mark-Irish-dia_dhuit-1.0.txt
    build/repo/hello/Mark-Spanish-Hola-1.0.txt
    build/repo/hello/Mark-ivy-1.0.xml
    

提交回复
热议问题