Skip to content

Commit

Permalink
Merge pull request quarkusio#36 from gsmet/cleanup
Browse files Browse the repository at this point in the history
Small cleanup for q3upgrade.java
  • Loading branch information
gsmet authored Mar 3, 2023
2 parents b1c1f22 + f9b6a9a commit 39968b9
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions q3upgrade.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//JAVA 11+
//FILES openrewriteinit.gradle
//FILES quarkus3.yml
//DEPS org.eclipse.transformer:org.eclipse.transformer:0.5.0
//DEPS org.slf4j:slf4j-simple:1.7.36

import static java.lang.System.err;
Expand All @@ -14,35 +13,22 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.lang.ProcessBuilder.Redirect;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Scanner;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.eclipse.transformer.action.ByteData;
import org.eclipse.transformer.action.impl.ActionContextImpl;
import org.eclipse.transformer.action.impl.ByteDataImpl;
import org.eclipse.transformer.action.impl.SelectionRuleImpl;
import org.eclipse.transformer.action.impl.SignatureRuleImpl;
import org.eclipse.transformer.action.impl.TextActionImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

class q3upgrade {

private static final String BASE_RECIPE_URL = "https://raw.githubusercontent.com/quarkusio/quarkus-updates/main/recipes/src/main/resources/quarkus-updates/core/3alpha.yaml";
Expand Down Expand Up @@ -230,7 +216,7 @@ private static Path downloadRecipe() throws MalformedURLException, IOException,
return mergedRecipe;
} finally {
try {
Files.deleteIfExists(baseRecipe);
Files.deleteIfExists(baseRecipe);
} catch (Exception e) {
// ignore
}
Expand Down

0 comments on commit 39968b9

Please sign in to comment.