[
https://issues.apache.org/jira/browse/BEAM-13041?focusedWorklogId=672952&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-672952
]
ASF GitHub Bot logged work on BEAM-13041:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/Nov/21 03:45
Start Date: 02/Nov/21 03:45
Worklog Time Spent: 10m
Work Description: pabloem commented on a change in pull request #15839:
URL: https://github.com/apache/beam/pull/15839#discussion_r740700124
##########
File path: playground/backend/internal/preparators/java_preparators.go
##########
@@ -0,0 +1,142 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You 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 preparators
+
+import (
+ "bufio"
+ "fmt"
+ "io"
+ "log"
+ "os"
+ "regexp"
+ "strings"
+)
+
+const (
+ classWithPublicModifierPattern = "public class "
+ classWithoutPublicModifierPattern = "class "
+ packagePattern = `package ([\w]+\.)+[\w]+;`
Review comment:
let's match the start of a new line as well?
(e.g. what about files with `System.out.println("a package was.put.here;");`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 672952)
Time Spent: 40m (was: 0.5h)
> [Playground] Prepare files with java code
> -----------------------------------------
>
> Key: BEAM-13041
> URL: https://issues.apache.org/jira/browse/BEAM-13041
> Project: Beam
> Issue Type: Task
> Components: beam-playground
> Reporter: Aydar Zaynutdinov
> Assignee: Aydar Zaynutdinov
> Priority: P3
> Labels: beam-playground-backend, beam-playground-sprint-2,
> beam-playground-sprint-3
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The server app should be able to make preparing work for files with java code.
> Need to implement Prepare method for Java executor
> Prepare method should handle errors from a preparing steps
> We should cover all methods and functions with unit tests
--
This message was sent by Atlassian Jira
(v8.3.4#803005)