Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on sos-builder01-ubuntu18 (lin) in workspace /builds/workspace/JavaWriter [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done The recommended git tool is: NONE No credentials specified Cloning the remote Git repository Cloning repository https://github.com/monperrus/javapoet.git > git init /builds/workspace/JavaWriter # timeout=10 Fetching upstream changes from https://github.com/monperrus/javapoet.git > git --version # timeout=10 > git --version # 'git version 2.17.1' > git fetch --tags --progress -- https://github.com/monperrus/javapoet.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/monperrus/javapoet.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 1d58d18d3116406be9d1649ed8bac8481c8eb340 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 1d58d18d3116406be9d1649ed8bac8481c8eb340 # timeout=10 Commit message: "Update pom.xml" > git rev-list --no-walk 1d58d18d3116406be9d1649ed8bac8481c8eb340 # timeout=10 [JavaWriter] $ /bin/sh -xe /tmp/jenkins16901437362880380467.sh + stdbuf -i 50k bash + curl https://spoon.gforge.inria.fr/jenkins/build.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 ------------------------------------------------------- Initizalizes project ------------------------------------------------------- 100 21998 100 21998 0 0 113k 0 --:--:-- --:--:-- --:--:-- 113k HEAD is now at 1d58d18 Update pom.xml --- Displays variables used in the build --- Artifact id: javapoet Version: 1.14.0-SNAPSHOT Modules job: - JavaWriter Has checkstyle: true Has enforcer: true Git version id: 1d58d18d3116406be9d1649ed8bac8481c8eb340 Java version: Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 openjdk version "11.0.15" 2022-04-19 OpenJDK Runtime Environment (build 11.0.15+10-Ubuntu-0ubuntu0.18.04.1) OpenJDK 64-Bit Server VM (build 11.0.15+10-Ubuntu-0ubuntu0.18.04.1, mixed mode, sharing) Java home: /usr/lib/jvm/java-11-openjdk-amd64 ------------------------------------------------------- Compiles project (at the root project if it's a multi module project) without spoon ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ javapoet --- [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javapoet --- [INFO] Skipping Rule Enforcement. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 17 source files to /builds/workspace/JavaWriter/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /builds/workspace/JavaWriter/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ javapoet --- [INFO] Surefire report directory: /builds/workspace/JavaWriter/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 Running ClassNameNoPackageTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.186 sec Running com.squareup.javapoet.JavaFileTest Tests run: 41, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.456 sec Running com.squareup.javapoet.MethodSpecTest Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.358 sec Running com.squareup.javapoet.TypeNameTest Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec Running com.squareup.javapoet.AnnotationSpecTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.835 sec Running com.squareup.javapoet.FieldSpecTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec Running com.squareup.javapoet.TypesEclipseTest Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.39 sec Running com.squareup.javapoet.ParameterSpecTest Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.673 sec Running com.squareup.javapoet.AnnotatedTypeNameTest Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec Running com.squareup.javapoet.FileReadingTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.237 sec Running com.squareup.javapoet.ClassNameTest Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.964 sec Running com.squareup.javapoet.UtilTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec Running com.squareup.javapoet.LineWrapperTest Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec Running com.squareup.javapoet.FileWritingTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.16 sec Running com.squareup.javapoet.TypeSpecTest Tests run: 120, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.181 sec Running com.squareup.javapoet.TypesTest Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.294 sec Running com.squareup.javapoet.CodeBlockTest Tests run: 36, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 sec Running com.squareup.javapoet.CodeWriterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running com.squareup.javapoet.NameAllocatorTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Results : Tests run: 382, Failures: 0, Errors: 0, Skipped: 1 [INFO] [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ javapoet --- [INFO] Building jar: /builds/workspace/JavaWriter/target/javapoet-1.14.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ javapoet --- [INFO] Installing /builds/workspace/JavaWriter/target/javapoet-1.14.0-SNAPSHOT.jar to /builds/.m2/repository/com/squareup/javapoet/1.14.0-SNAPSHOT/javapoet-1.14.0-SNAPSHOT.jar [INFO] Installing /builds/workspace/JavaWriter/pom.xml to /builds/.m2/repository/com/squareup/javapoet/1.14.0-SNAPSHOT/javapoet-1.14.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 34.646 s [INFO] Finished at: 2023-11-19T01:30:42+01:00 [INFO] ------------------------------------------------------------------------ --- Displays results of the maven compile --- Time to compile: 37391 Number of tests: 382 Number of tests skipped: 1 Number of failures in tests: 0 Number of errors in tests: 0 ------------------------------------------------------- Inserts the maven plugin to spoon the project ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-maven-plugin/3.8-SNAPSHOT/maven-metadata.xml Progress (1): 783 B Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-maven-plugin/3.8-SNAPSHOT/maven-metadata.xml (783 B at 764 B/s) Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/plugins/maven-metadata.xml Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml Progress (1): 4.1/9.8 kB Progress (1): 7.8/9.8 kB Progress (1): 9.8 kB Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/maven-metadata.xml (9.8 kB at 37 kB/s) Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml Progress (1): 524 B Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/versions-maven-plugin/maven-metadata.xml (524 B at 2.5 kB/s) [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- versions-maven-plugin:2.16.2:resolve-ranges (default-cli) @ javapoet --- Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml Progress (1): 292 B Progress (2): 292 B | 2.8/10.0 kB Progress (2): 292 B | 5.5/10.0 kB Progress (2): 292 B | 8.3/10.0 kB Progress (2): 292 B | 10.0 kB Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (292 B at 1.3 kB/s) Downloaded from central: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-core/maven-metadata.xml (10.0 kB at 36 kB/s) Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/google/testing/compile/compile-testing/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/com/google/testing/compile/compile-testing/maven-metadata.xml Progress (1): 942 B Progress (2): 942 B | 357 B Downloaded from central: https://repo.maven.apache.org/maven2/com/google/testing/compile/compile-testing/maven-metadata.xml (942 B at 7.0 kB/s) Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/google/testing/compile/compile-testing/maven-metadata.xml (357 B at 1.6 kB/s) Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/junit/junit/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml Progress (1): 1.3 kB Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/maven-metadata.xml (1.3 kB at 26 kB/s) Progress (1): 406 B Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/junit/junit/maven-metadata.xml (406 B at 1.8 kB/s) Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/google/truth/truth/maven-metadata.xml Downloading from central: https://repo.maven.apache.org/maven2/com/google/truth/truth/maven-metadata.xml Progress (1): 1.4 kB Downloaded from central: https://repo.maven.apache.org/maven2/com/google/truth/truth/maven-metadata.xml (1.4 kB at 28 kB/s) Progress (1): 376 B Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/google/truth/truth/maven-metadata.xml (376 B at 1.8 kB/s) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.039 s [INFO] Finished at: 2023-11-19T01:30:50+01:00 [INFO] ------------------------------------------------------------------------ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-dependency-plugin:2.8:purge-local-repository (default-cli) @ javapoet --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.214 s [INFO] Finished at: 2023-11-19T01:30:55+01:00 [INFO] ------------------------------------------------------------------------ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ javapoet --- [INFO] Deleting /builds/workspace/JavaWriter/target [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javapoet --- [INFO] Skipping Rule Enforcement. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 17 source files to /builds/workspace/JavaWriter/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /builds/workspace/JavaWriter/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ javapoet --- [INFO] Tests are skipped. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.214 s [INFO] Finished at: 2023-11-19T01:31:07+01:00 [INFO] ------------------------------------------------------------------------ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- spoon-maven-plugin:3.8-SNAPSHOT:generate (default-cli) @ javapoet --- Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml Progress (1): 1.4 kB Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.4 kB/s) Progress (1): 1.4 kB Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/maven-metadata.xml (1.4 kB at 1.1 kB/s) Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231118.005933-1.pom Progress (1): 4.1/8.5 kB Progress (1): 7.8/8.5 kB Progress (1): 8.5 kB Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231118.005933-1.pom (8.5 kB at 34 kB/s) Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml Progress (1): 609 B Progress (2): 609 B | 609 B Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml (609 B at 2.9 kB/s) Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-pom/10.4.3-SNAPSHOT/maven-metadata.xml (609 B at 2.5 kB/s) Downloading from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231118.005933-1.jar Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.1/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.2/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.3/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.4/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.5/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.6/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.7/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.8/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 0.9/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.0/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.1/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.2/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.3/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.4/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.5/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.6/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.7/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.8/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9/1.9 MB Progress (1): 1.9 MB Downloaded from ow2.org-snapshot: https://oss.sonatype.org/content/repositories/snapshots/fr/inria/gforge/spoon/spoon-core/10.4.3-SNAPSHOT/spoon-core-10.4.3-20231118.005933-1.jar (1.9 MB at 106 kB/s) [INFO] Running Spoon... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.464 s [INFO] Finished at: 2023-11-19T01:31:38+01:00 [INFO] ------------------------------------------------------------------------ normal maven case diff --git a/src/main/java/com/squareup/javapoet/AnnotationSpec.java b/src/main/java/com/squareup/javapoet/AnnotationSpec.java index 5525d7b..9183847 100644 --- a/src/main/java/com/squareup/javapoet/AnnotationSpec.java +++ b/src/main/java/com/squareup/javapoet/AnnotationSpec.java @@ -1,282 +1,273 @@ -/* - * Copyright (C) 2015 Square, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/* Copyright (C) 2015 Square, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. */ package com.squareup.javapoet; - -import java.io.IOException; -import java.lang.annotation.Annotation; -import java.lang.reflect.Array; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Comparator; -import java.util.Iterator; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.lang.model.SourceVersion; -import javax.lang.model.element.AnnotationMirror; -import javax.lang.model.element.AnnotationValue; -import javax.lang.model.element.ExecutableElement; -import javax.lang.model.element.TypeElement; -import javax.lang.model.element.VariableElement; -import javax.lang.model.type.TypeMirror; -import javax.lang.model.util.SimpleAnnotationValueVisitor8; - -import static com.squareup.javapoet.Util.characterLiteralWithoutSingleQuotes; -import static com.squareup.javapoet.Util.checkArgument; -import static com.squareup.javapoet.Util.checkNotNull; - -/** A generated annotation on a declaration. */ +/** + * A generated annotation on a declaration. + */ public final class AnnotationSpec { - public final TypeName type; - public final Map> members; - - private AnnotationSpec(Builder builder) { - this.type = builder.type; - this.members = Util.immutableMultimap(builder.members); - } - - void emit(CodeWriter codeWriter, boolean inline) throws IOException { - String whitespace = inline ? "" : "\n"; - String memberSeparator = inline ? ", " : ",\n"; - if (members.isEmpty()) { - // @Singleton - codeWriter.emit("@$T", type); - } else if (members.size() == 1 && members.containsKey("value")) { - // @Named("foo") - codeWriter.emit("@$T(", type); - emitAnnotationValues(codeWriter, whitespace, memberSeparator, members.get("value")); - codeWriter.emit(")"); - } else { - // Inline: - // @Column(name = "updated_at", nullable = false) - // - // Not inline: - // @Column( - // name = "updated_at", - // nullable = false - // ) - codeWriter.emit("@$T(" + whitespace, type); - codeWriter.indent(2); - for (Iterator>> i - = members.entrySet().iterator(); i.hasNext(); ) { - Map.Entry> entry = i.next(); - codeWriter.emit("$L = ", entry.getKey()); - emitAnnotationValues(codeWriter, whitespace, memberSeparator, entry.getValue()); Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.squareup:javapoet >------------------------ [INFO] Building JavaPoet 1.14.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ javapoet --- [INFO] Deleting /builds/workspace/JavaWriter/target [INFO] [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javapoet --- [INFO] Skipping Rule Enforcement. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 18 source files to /builds/workspace/JavaWriter/target/classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ javapoet --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builds/workspace/JavaWriter/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ javapoet --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 22 source files to /builds/workspace/JavaWriter/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ javapoet --- [INFO] Surefire report directory: /builds/workspace/JavaWriter/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 Running ClassNameNoPackageTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.191 sec Running com.squareup.javapoet.JavaFileTest Tests run: 41, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.08 sec Running com.squareup.javapoet.MethodSpecTest Tests run: 28, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.269 sec Running com.squareup.javapoet.TypeNameTest Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec Running com.squareup.javapoet.AnnotationSpecTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.808 sec Running com.squareup.javapoet.FieldSpecTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running com.squareup.javapoet.TypesEclipseTest Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Annotation processing got disabled, since it requires a 1.6 compliant JVM Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.341 sec Running com.squareup.javapoet.ParameterSpecTest Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.673 sec Running com.squareup.javapoet.AnnotatedTypeNameTest Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec Running com.squareup.javapoet.FileReadingTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 sec Running com.squareup.javapoet.ClassNameTest Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.853 sec Running com.squareup.javapoet.UtilTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec Running com.squareup.javapoet.LineWrapperTest Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec Running com.squareup.javapoet.FileWritingTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.16 sec Running com.squareup.javapoet.TypeSpecTest Tests run: 120, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.786 sec Running com.squareup.javapoet.TypesTest Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.348 sec Running com.squareup.javapoet.CodeBlockTest Tests run: 36, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 sec Running com.squareup.javapoet.CodeWriterTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running com.squareup.javapoet.NameAllocatorTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec Results : Tests run: 382, Failures: 0, Errors: 0, Skipped: 1 [INFO] [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ javapoet --- [INFO] Building jar: /builds/workspace/JavaWriter/target/javapoet-1.14.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ javapoet --- [INFO] Installing /builds/workspace/JavaWriter/target/javapoet-1.14.0-SNAPSHOT.jar to /builds/.m2/repository/com/squareup/javapoet/1.14.0-SNAPSHOT/javapoet-1.14.0-SNAPSHOT.jar [INFO] Installing /builds/workspace/JavaWriter/pom.xml to /builds/.m2/repository/com/squareup/javapoet/1.14.0-SNAPSHOT/javapoet-1.14.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 32.851 s [INFO] Finished at: 2023-11-19T01:32:14+01:00 [INFO] ------------------------------------------------------------------------ --- Displays results of the maven compile with spoon of spoon --- Time to compile with spoon of spoon: 35220 --- Displays results of the maven compile with spoon --- Time to compile with spoon: 11658 Number of tests: 382 Number of tests skipped: 1 Number of failures in tests: 0 Number of errors in tests: 0 ------------------------------------------------------- Retrieves all results files in the project (in all sub modules if the project is a multi module project) ------------------------------------------------------- ./result-spoon-tests-spooned-..txt ./result-spoon-tests-..txt find: './target/spoon-maven-plugin': No such file or directory rm: cannot remove 'result-spoon.bak*.xml': No such file or directory
Project Commit id version Project compiles Project tests run Project spooned compiles Project spooned tests run Time to spoon Number of CtStatment Time to compile project Time to compile project spooned Spoon(Spoon(x))=Spoon(x)
Archiving artifacts Finished: SUCCESS