protected void validateFunctionName(final Set<String> nameSet, final String functionName) throws Exception { if (StringUtils.isEmpty(functionName)) { throw new Exception("Azure Functions name cannot be empty."); } if (nameSet.stream().anyMatch(n -> StringUtils.equalsIgnoreCase(n, functionName))) { throw new Exception("Found duplicate Azure Function: " + functionName); } }
private String generateDependencyXml( Gav gav ) { StringBuilder buffer = new StringBuilder(); buffer.append( "<dependency>\n" ); buffer.append( " <groupId>" ).append( gav.getGroupId() ).append( "</groupId>\n" ); buffer.append( " <artifactId>" ).append( gav.getArtifactId() ).append( "</artifactId>\n" ); buffer.append( " <version>" ).append( gav.getBaseVersion() ).append( "</version>\n" ); if ( StringUtils.isNotEmpty( gav.getClassifier() ) ) { buffer.append( " <classifier>" ).append( gav.getClassifier() ).append( "</classifier>\n" ); } if ( StringUtils.isNotEmpty( gav.getExtension() ) && !StringUtils.equalsIgnoreCase( "jar", gav.getExtension() ) ) { buffer.append( " <type>" ).append( gav.getExtension() ).append( "</type>\n" ); } buffer.append( "</dependency>" ); return buffer.toString(); }
private boolean checkIfProcessingNeeded( ArtifactItem item ) throws MojoExecutionException, ArtifactFilterException { return StringUtils.equalsIgnoreCase( item.getOverWrite(), "true" ) || getMarkedArtifactFilter( item ).isArtifactIncluded( item ); }
public void verify( File file, String checksum ) throws DigesterException { String trimmedChecksum = DigestUtils.cleanChecksum( checksum, streamingDigester.getAlgorithm(), file.getName() ); //Create checksum for jar file String sum = calc( file ); if ( !StringUtils.equalsIgnoreCase( trimmedChecksum, sum ) ) { throw new DigesterException( "Checksum failed" ); } }
return StringUtils.equalsIgnoreCase( expectedChecksum, actualChecksum );
if ( StringUtils.equalsIgnoreCase( "tests", artifact.getClassifier() ) )
if ( StringUtils.equalsIgnoreCase( "chunked", deployedResource.transferEncoding ) )
if ( StringUtils.equalsIgnoreCase( "chunked", deployedResource.transferEncoding ) )
if ( StringUtils.equalsIgnoreCase( project.getName(), storedProject.getName() ) && StringUtils.equalsIgnoreCase( project.getVersion(), storedProject.getVersion() ) && StringUtils.equalsIgnoreCase( project.getScmUrl(), storedProject.getScmUrl() ) )
else if ( tc != null && StringUtils.equalsIgnoreCase( "jdk",tc.getType() ) ) //tc instanceof JavaToolChain )
if ( StringUtils.equalsIgnoreCase( project.getName(), storedProject.getName() ) && StringUtils.equalsIgnoreCase( project.getVersion(), storedProject.getVersion() ) && StringUtils.equalsIgnoreCase( project.getScmUrl(), storedProject.getScmUrl() ) )
if ( StringUtils.equalsIgnoreCase( "dav", protocol ) && url.startsWith( "dav:" ) )
if ( !StringUtils.equalsIgnoreCase( columnName, modelField.getName() ) )
if ( !StringUtils.equalsIgnoreCase( columnName, modelField.getName() ) )