Skip to content

Commit 5f357d1

Browse files
committed
Import of Cloud Functions JVM from Git-on-Borg.
- 5e49217df65ac82957f37e72271b9cd8eb64bc92 Rename functionjar to testfunction. by Éamonn McManus <[email protected]> PiperOrigin-RevId: 291249957
1 parent 074eadf commit 5f357d1

File tree

8 files changed

+5
-5
lines changed

8 files changed

+5
-5
lines changed

invoker-core/core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<!-- Test dependencies -->
9191
<dependency>
9292
<groupId>com.google.cloud.functions.invoker</groupId>
93-
<artifactId>java-function-invoker-core-functionjar</artifactId>
93+
<artifactId>java-function-invoker-core-testfunction</artifactId>
9494
<version>1.0.0-alpha-1</version>
9595
<type>test-jar</type>
9696
<scope>test</scope>

invoker-core/core/src/test/java/com/google/cloud/functions/invoker/IntegrationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ private File snoopFile() throws IOException {
302302
private static final Class<?> INTERNAL_CLASS = CloudFunction.class;
303303

304304
private String functionJarString() throws IOException {
305-
Path functionJarTargetDir = Paths.get("../functionjar/target");
305+
Path functionJarTargetDir = Paths.get("../testfunction/target");
306306
Pattern functionJarPattern =
307-
Pattern.compile("java-function-invoker-core-functionjar-.*-tests\\.jar");
307+
Pattern.compile("java-function-invoker-core-testfunction-.*-tests\\.jar");
308308
List<Path> functionJars = Files.list(functionJarTargetDir)
309309
.map(path -> path.getFileName().toString())
310310
.filter(s -> functionJarPattern.matcher(s).matches())

invoker-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<modules>
1414
<module>core</module>
15-
<module>functionjar</module>
15+
<module>testfunction</module>
1616
</modules>
1717

1818
<properties>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</parent>
99

1010
<groupId>com.google.cloud.functions.invoker</groupId>
11-
<artifactId>java-function-invoker-core-functionjar</artifactId>
11+
<artifactId>java-function-invoker-core-testfunction</artifactId>
1212
<version>1.0.0-alpha-1</version>
1313
<name>Example GCF Function Jar</name>
1414
<description>

invoker-core/functionjar/src/main/java/com/example/functionjar/Main.java renamed to invoker-core/testfunction/src/main/java/com/example/functionjar/Main.java

File renamed without changes.

invoker-core/functionjar/src/test/java/com/example/functionjar/Background.java renamed to invoker-core/testfunction/src/test/java/com/example/functionjar/Background.java

File renamed without changes.

invoker-core/functionjar/src/test/java/com/example/functionjar/Checker.java renamed to invoker-core/testfunction/src/test/java/com/example/functionjar/Checker.java

File renamed without changes.

invoker-core/functionjar/src/test/java/com/example/functionjar/Foreground.java renamed to invoker-core/testfunction/src/test/java/com/example/functionjar/Foreground.java

File renamed without changes.

0 commit comments

Comments
 (0)