com.ullink.FilterJson.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-msbuild-plugin Show documentation
Show all versions of gradle-msbuild-plugin Show documentation
Gradle plugin for MSBuild project build.
package com.ullink
public class FilterJson {
StringWriter stringWriter = new StringWriter();
boolean isAccepted = false;
public FilterJson(InputStream inputStream) {
inputStream.filterLine(stringWriter, {
if (!isAccepted && it.startsWith('{')) {
isAccepted = true;
}
return isAccepted })
}
public String toString() {
stringWriter.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy