public String getCommitMessage( String message, SVNCommitItem[] commitItems ) throws SVNException { if ( commitItems != null ) { { for ( SVNCommitItem commitItem : commitItems ) { if ( commitItem.getFile().isFile() ) { String path = StringUtils.removeStartIgnoreCase( commitItem.getFile().getPath(), baseDirectory ); files.add( path ); } } } } return message; }
final String regex = trim(removeStartIgnoreCase(expected, REGEXP)); result = Pattern.compile(regex, Pattern.DOTALL).matcher(actual).matches(); final String regex = trim(removeStartIgnoreCase(expected, REGEXPI)); result = Pattern.compile(regex, Pattern.DOTALL | Pattern.CASE_INSENSITIVE).matcher(actual).matches(); final String str = trim(removeStartIgnoreCase(expected, EXACT)); result = str.equals(actual); pattern = trim(removeStartIgnoreCase(expected, GLOB)); } else { pattern = expected;
public void setValue(Object value) throws ConfigurationRuntimeException { try { if (!(value instanceof String)) { this.value = value; return; } String val = (String) value; String name = StringUtils.removeStartIgnoreCase(val, CLASS); Class<?> clazz = ClassUtils.getClass(name); if (name.length() == val.length()) { this.value = clazz.newInstance(); } else { this.value = clazz; } } catch (Exception e) { throw new ConfigurationRuntimeException("Unable to create " + value, e); } } }
public void setValue(Object value) throws ConfigurationRuntimeException { try { if (!(value instanceof String)) { this.value = value; return; } String val = (String) value; String name = StringUtils.removeStartIgnoreCase(val, CLASS); Class<?> clazz = ClassUtils.getClass(name); if (name.length() == val.length()) { this.value = clazz.newInstance(); } else { this.value = clazz; } } catch (Exception e) { throw new ConfigurationRuntimeException("Unable to create " + value, e); } } }
@Override public void sessionStarted(ExecutionEvent event) { try { logger.info("Initializing Artifactory Build-Info Recording"); buildInfoBuilder = buildInfoModelPropertyResolver.resolveProperties(event, conf); deployableArtifactBuilderMap = Maps.newHashMap(); matrixParams = Maps.newHashMap(); Map<String, String> matrixParamProps = conf.publisher.getMatrixParams(); for (Map.Entry<String, String> matrixParamProp : matrixParamProps.entrySet()) { String key = matrixParamProp.getKey(); key = StringUtils.removeStartIgnoreCase(key, ClientProperties.PROP_DEPLOY_PARAM_PROP_PREFIX); matrixParams.put(key, matrixParamProp.getValue()); } if (wrappedListener != null) { wrappedListener.sessionStarted(event); } } catch ( Throwable t ) { String message = getClass().getName() + ".sessionStarted() listener has failed: "; logger.error( message, t ); throw new RuntimeException( message, t ); } }
String relativePath = StringUtils.removeStartIgnoreCase(sanitizedAbsoluteFilePath, sanitizedWorkspaceRemote); String fileSeparator = windows ? "\\" : "/";
File file = new File( StringUtils.removeStartIgnoreCase( path, "/WEB-INF/LIB" ) ); return new FileResource( context.getResources(), getPath(), file, true );
final ResourceResolver resourceResolver = request.getResourceResolver(); String statement = StringUtils.removeStartIgnoreCase(request.getParameter("statement"), "EXPLAIN "); String language = request.getParameter("language");