![JAR search and dependency download from the Maven repository](/logo.png)
org.akhikhl.unpuzzle.eclipse2maven.Utils.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unpuzzle-eclipse2maven Show documentation
Show all versions of unpuzzle-eclipse2maven Show documentation
Tool for mavenizing OSGi-bundles
/*
* unpuzzle
*
* Copyright 2014 Andrey Hihlovskiy.
*
* See the file "LICENSE" for copying and usage permission.
*/
package org.akhikhl.unpuzzle.eclipse2maven
/**
* Various utility functions.
* @author akhikhl
*/
final class Utils {
static String getArchiveNameNoExt(String fileName) {
if(fileName)
for(String ext in [ '.tar.gz', '.gz', '.tar', '.zip' ])
if(fileName.endsWith(ext))
return fileName.substring(0, fileName.length() - ext.length());
return fileName
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy