add warning log when cx not providing the java annotation files
This commit is contained in:
Родитель
17c331a258
Коммит
4ceedcc9b7
|
@ -23,7 +23,7 @@ Get-ChildItem -Path .\target\* -Include 'azure*' -Exclude '*shaded.jar','*tests.
|
|||
StopOnFailedExecution
|
||||
copy-item ./worker.config.json pkg
|
||||
copy-item ./tools/AzureFunctionsJavaWorker.nuspec pkg/
|
||||
Copy-Item ".\annotationLib" pkg\annotationLib -Recurse
|
||||
copy-item ./annotationLib pkg/annotationLib -Recurse
|
||||
set-location pkg
|
||||
nuget pack -Properties version=$buildNumber
|
||||
set-location ..
|
|
@ -10,6 +10,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||
|
||||
import com.microsoft.azure.functions.rpc.messages.*;
|
||||
import com.microsoft.azure.functions.worker.Constants;
|
||||
import com.microsoft.azure.functions.worker.WorkerLogManager;
|
||||
import com.microsoft.azure.functions.worker.binding.BindingDataStore;
|
||||
import com.microsoft.azure.functions.worker.binding.ExecutionRetryContext;
|
||||
import com.microsoft.azure.functions.worker.binding.ExecutionTraceContext;
|
||||
|
@ -135,6 +136,7 @@ public class JavaFunctionBroker {
|
|||
}
|
||||
|
||||
public void addJavaAnnotationLibrary() throws IOException {
|
||||
WorkerLogManager.getSystemLogger().warning("Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.");
|
||||
String javaLibPath = System.getenv(Constants.FUNCTIONS_WORKER_DIRECTORY) + Constants.JAVA_LIBRARY_DIRECTORY;
|
||||
File javaLib = new File(javaLibPath);
|
||||
File[] files = javaLib.listFiles(file -> file.getName().contains(Constants.JAVA_LIBRARY_ARTIFACT_ID));
|
||||
|
|
Загрузка…
Ссылка в новой задаче