public URL transform(URL artifact) throws Exception { try { String path = artifact.getPath(); String name = path.substring( path.lastIndexOf('/') + 1); String[] nv = DeployerUtils.extractNameVersionType( name ); return new URL("wrap", null, artifact.toExternalForm() + "$Bundle-SymbolicName=" + nv[0] + "&Bundle-Version=" + nv[1]); } catch (Exception e) { return new URL("wrap", null, artifact.toExternalForm()); } }
public URL transform(URL artifact) throws Exception { try { String path = artifact.getPath(); String name = path.substring( path.lastIndexOf('/') + 1); String[] nv = DeployerUtils.extractNameVersionType( name ); return new URL("wrap", null, artifact.toExternalForm() + "$Bundle-SymbolicName=" + nv[0] + "&Bundle-Version=" + nv[1]); } catch (Exception e) { return new URL("wrap", null, artifact.toExternalForm()); } }
name = name.substring(idx + 1); String[] str = DeployerUtils.extractNameVersionType(name);
name = name.substring(idx + 1); String[] str = DeployerUtils.extractNameVersionType(name);
name = name.substring(idx + 1); String[] str = DeployerUtils.extractNameVersionType(name);
name = name.substring(idx + 1); String[] str = DeployerUtils.extractNameVersionType(name);
name = name.substring(idx + 1); String[] str = DeployerUtils.extractNameVersionType(name);