From 05209c0165073d788be5e4ff21a7633fc06a7de6 Mon Sep 17 00:00:00 2001 From: Peter Palaga Date: Tue, 23 Jul 2019 15:01:44 +0200 Subject: [PATCH] Debug --- azure-pipelines.yml | 61 +------------------ .../maven/utilities/PomTransformer.java | 17 +++--- .../maven/CreateExtensionMojoTest.java | 9 +-- 3 files changed, 15 insertions(+), 72 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 637fbfad68f1a..f29a005d4113c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -23,27 +23,6 @@ pr: - dco.txt jobs: -- job: Build_Native_Linux - timeoutInMinutes: 180 - pool: - vmImage: 'Ubuntu 16.04' - - variables: - imageName: 'quarkus:$(build.buildId)' - - steps: - - - script: docker run --rm --publish 5432:5432 --name build-postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -d postgres:10.5 - displayName: 'start postgres' - - - script: docker run --rm --publish 8000:8000 --name build-dynamodb -d amazon/dynamodb-local:1.11.477 - displayName: 'start dynamodb' - - - task: Maven@3 - displayName: 'Maven Build' - inputs: - goals: 'install' - options: '-B --settings azure-mvn-settings.xml -Dnative-image.docker-build -Dtest-postgresql -Dtest-elasticsearch -Dtest-dynamodb -Ddynamodb-local.port=8000 -Dnative-image.xmx=6g -Dnative -Dno-format' - job: Windows_Build timeoutInMinutes: 60 @@ -59,42 +38,4 @@ jobs: displayName: 'Maven Build' inputs: goals: 'install' - options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format' - -- job: Build_JDK11_Linux - timeoutInMinutes: 60 - pool: - vmImage: 'Ubuntu 16.04' - - variables: - imageName: 'quarkus-jdk11:$(build.buildId)' - - steps: - - task: Maven@3 - displayName: 'Maven Build' - inputs: - jdkVersionOption: '1.11' - goals: 'install' - options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format' - -- job: Run_TCKs - timeoutInMinutes: 45 - pool: - vmImage: 'Ubuntu 16.04' - - variables: - imageName: 'quarkus:$(build.buildId)' - - steps: - - - task: Maven@3 - displayName: 'Maven Install' - inputs: - goals: 'install' - options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format -DskipTests -Dtcks' - - - task: Maven@3 - displayName: 'Maven Verify' - inputs: - goals: 'verify' - mavenPomFile: 'tcks/pom.xml' + options: '-B --settings azure-mvn-settings.xml -Dno-native -Dno-format -Dtest=CreateExtensionMojoTest -DfailIfNoTests=false' diff --git a/devtools/common/src/main/java/io/quarkus/maven/utilities/PomTransformer.java b/devtools/common/src/main/java/io/quarkus/maven/utilities/PomTransformer.java index 4af9aa59b9d8a..bc039f5ff9b02 100644 --- a/devtools/common/src/main/java/io/quarkus/maven/utilities/PomTransformer.java +++ b/devtools/common/src/main/java/io/quarkus/maven/utilities/PomTransformer.java @@ -105,8 +105,9 @@ static void transform(Collection edits, Path path, Supplier { try { - Files.copy(source, copyDir.resolve(srcDir.relativize(source))); + final Path dest = copyDir.resolve(srcDir.relativize(source)); + Files.copy(source, dest); } catch (IOException e) { throw new RuntimeException(e); } @@ -51,7 +52,7 @@ void createExtensionUnderExistingPomMinimal() throws MojoExecutionException, Moj mojo.assumeManaged = false; mojo.execute(); - assertTreesMatch(Paths.get("target/test-classes/expected/create-extension-pom-minimal"), + assertTreesMatch(Paths.get("src/test/resources/expected/create-extension-pom-minimal"), mojo.basedir); } @@ -66,7 +67,7 @@ void createExtensionUnderExistingPomCustomGrandParent() throws MojoExecutionExce mojo.execute(); assertTreesMatch( - Paths.get("target/test-classes/expected/create-extension-pom-with-grand-parent"), + Paths.get("src/test/resources/expected/create-extension-pom-with-grand-parent"), mojo.basedir); }