Commits

Dhananjay Nene  committed 3a26912

Removed snapshot from version numbers and also any text chars from version numbers

  • Participants
  • Parent commits 8b4c57f

Comments (0)

Files changed (1)

File src/main/groovy/in/vayana/gradle_plugins/GradleBndPlugin.groovy

                 oldJar = project.jar.archivePath
                 excludedJars = []
                 includedJars = []
-                pattern = /(.*)-([0-9][a-zA-Z0-9\.^-]*(-SNAPSHOT)?)(.standalone)?.jar$/
+                pattern = /(.*)-([0-9][a-zA-Z0-9\.^-]*)(-SNAPSHOT)?(.standalone)?.jar$/
                 classFilePattern =  /(.*)\/[^\/]*.class/
                 if(project.bnd.condense) {
                     // move old jar away
                                 println("***** Unable to get version number for " + file.name)
                             }
                             jarVersion = matcher[0][2]
+                            jarVersion = (jarVersion =~ /([a-zA-Z]+)/).replaceAll("")
                             packageInfoSet = [] as Set
                             // extract each entry from the jar file
                             jarFile = new JarFile(file.absolutePath)