com.apollographql.apollo.gradle.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-gradle-plugin Show documentation
Show all versions of apollo-gradle-plugin Show documentation
Gradle plugin for generating java/kotlin classes for graphql files
package com.apollographql.apollo.gradle;
import java.io.File;
public class Utils {
static String capitalize(String s) {
return s.substring(0, 1).toUpperCase() + s.substring(1);
}
static boolean isNullOrEmpty(String s) {
return s == null || s.length() == 0;
}
static void deleteDirectory(File directory) {
if (directory.exists()){
File[] files = directory.listFiles();
if (files != null){
for (File file : files) {
if (file.isDirectory()) {
deleteDirectory(file);
} else {
file.delete();
}
}
}
}
directory.delete();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy