Hello,

I stil have an issue with jarfile renaming.

In my local repository I have a jar with this path:
../common/3rdParty/ProjectX/ProjectX.jar

and I added that repository like:

   add(new org.apache.ivy.plugins.resolver.FileSystemResolver()) { 
      name = 'local'
      addArtifactPattern(new File('../common/3rdParty').getAbsolutePath() 
+ '/[organization]/([module]/)[artifact](-[revision])(-[classified]).[ext]') 
      checkmodified = true
   } 

The external declaration 

libraries = [
        ... ,
        projectX :      ':proje...@jar'
]

and the dependency usage:

compile libraries.projectX

I copy the dependency jars to a installation subdir to build the installer 
with the "uploadArchives" task:

uploadArchives.doLast {
   targetBase = new File(rootProject.buildDir.absolutePath, 'install')
   libDir = new File(targetBase, 'lib')
   archieDir = new File(targetBase, targetSubDir[typeOf(project.name)])
   copy {
      from artifacts
      into archieDir
   }
   for(file in configurations.runtime) {
      type = typeOf(file.name)
      targetDir = new File(targetBase, targetSubDir[type])

      if (file.name.startsWith('SR')) {
         copy {
            from file
            into targetDir
         }
      } else {
         copy {
            from file
            into libDir
         }
      }
   }
}

but when I look at ${buildDir}/install/lib there's a file called
        ProjectX-.jar

I wonder, where the trailing "-" comes from and what I could do to avoid it.

kind regards

Geronimo

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to