diff --git a/RELEASING.md b/RELEASING.md index c285478b1..c326c03b5 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -48,9 +48,10 @@ A milestone release is cut from master branch as we expect bug fixes / feedback 8. Add changes mention in `CHANGELOG.md` of `esw-contract` in the change section of `README.md` of `esw-contract` 9. Exclude projects from `build.sbt` which you do not want to release 10. Update dependent repo version in `Libs.scala` -11. Commit and push the changes to `branch-..x` branch and make sure build is green for dev and paradox link pipeline. -12. Make sure build is green for dev and paradox link check pipeline for this branch. -13. Run `release.sh $VERSION$` script by providing version number argument (This triggers release workflow) -14. Applicable for final release only - Upgrade all the versions of all esw apps in [here](https://github.com/tmtsoftware/osw-apps/blob/master/apps.json) +11. Run command `headerCheckAll` inside sbt to verify if there are files without copyright header. +12. Commit and push the changes to `branch-..x` branch and make sure build is green for dev and paradox link pipeline. +13. Make sure build is green for dev and paradox link check pipeline for this branch. +14. Run `release.sh $VERSION$` script by providing version number argument (This triggers release workflow) +15. Applicable for final release only - Upgrade all the versions of all esw apps in [here](https://github.com/tmtsoftware/osw-apps/blob/master/apps.json) **Note:** `PROD=true` environment variable needs to be set before running `release.sh` diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ActorRuntime.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ActorRuntime.scala index 08ddc5ae8..5fa059a48 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ActorRuntime.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ActorRuntime.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.Done diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentActor.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentActor.scala index 724669a5f..247bcf92b 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentActor.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentActor.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.actor.typed.scaladsl.AskPattern.Askable diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentApp.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentApp.scala index cc89acdfd..c32481204 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentApp.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.actor.CoordinatedShutdown.{PhaseBeforeServiceUnbind, UnknownReason} diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentCliCommand.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentCliCommand.scala index d1023a36b..f32243156 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentCliCommand.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentCliCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import caseapp.core.Error diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentSettings.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentSettings.scala index 5af30f92b..8feba075b 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentSettings.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentSettings.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import java.nio.file.Path diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentWiring.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentWiring.scala index c0cfbb0cf..a332a9707 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentWiring.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/AgentWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.actor.typed.SpawnProtocol.Spawn diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/FutureExt.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/FutureExt.scala index 5ea285e17..2810dfa57 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/FutureExt.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/FutureExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import akka.actor.typed.ActorSystem diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/ProcessExt.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/ProcessExt.scala index c3afe50b9..769e22724 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/ProcessExt.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/ProcessExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import akka.actor.typed.ActorSystem diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/SpawnCommandExt.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/SpawnCommandExt.scala index 79507372e..3d3306d06 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/SpawnCommandExt.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/ext/SpawnCommandExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import csw.prefix.models.Prefix diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessExecutor.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessExecutor.scala index fb8261b73..64d8f778f 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessExecutor.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessExecutor.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process import csw.logging.api.scaladsl.Logger diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessManager.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessManager.scala index 672fc6a81..f4df23e9b 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessManager.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessManager.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process import akka.Done diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessOutput.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessOutput.scala index eabadf727..274f5e9d6 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessOutput.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessOutput.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process import java.io.InputStream diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessUtils.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessUtils.scala index 5510c6924..42ad69bd4 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessUtils.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/ProcessUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process /** diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/Coursier.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/Coursier.scala index 80ca55e8b..aa0138b2b 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/Coursier.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/Coursier.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process.cs import esw.agent.akka.app.BuildInfo diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/CoursierLaunch.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/CoursierLaunch.scala index 2091a7594..4f758518f 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/CoursierLaunch.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/cs/CoursierLaunch.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process.cs case class CoursierLaunch(appName: String, appVersion: Option[String]) { diff --git a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/redis/Redis.scala b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/redis/Redis.scala index 915e3b17c..dcf06fdf9 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/redis/Redis.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/main/scala/esw/agent/akka/app/process/redis/Redis.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process.redis import esw.agent.akka.app.process.ProcessUtils diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSettingsTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSettingsTest.scala index 337ec5cd9..1971a9839 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSettingsTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSettingsTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import java.nio.file.Path diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSetup.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSetup.scala index b1c4a62c2..7410902c7 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSetup.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/AgentSetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.actor.typed.{ActorRef, ActorSystem, Scheduler, SpawnProtocol} diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/Cs.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/Cs.scala index 7a355314e..e583f145f 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/Cs.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/Cs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app object Cs { diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/KillComponentTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/KillComponentTest.scala index 63e325f6d..7268df115 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/KillComponentTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/KillComponentTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/SpawnComponentTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/SpawnComponentTest.scala index 4cfd3ea9e..2e1975c7c 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/SpawnComponentTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/SpawnComponentTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app import akka.Done diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/FutureExtTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/FutureExtTest.scala index 7260fb382..519fdd315 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/FutureExtTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/FutureExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/ProcessExtTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/ProcessExtTest.scala index 472b5209d..12bb39014 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/ProcessExtTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/ProcessExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/SpawnCommandExtTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/SpawnCommandExtTest.scala index 75c4b3368..10cfe7ffb 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/SpawnCommandExtTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/ext/SpawnCommandExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.ext import akka.actor.typed.{ActorRef, ActorSystem, SpawnProtocol} diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessManagerTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessManagerTest.scala index 6f925ef41..622b3f077 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessManagerTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessManagerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessOutputTest.scala b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessOutputTest.scala index 6963e769d..337a2af61 100644 --- a/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessOutputTest.scala +++ b/esw-agent-akka/esw-agent-akka-app/src/test/scala/esw/agent/akka/app/process/ProcessOutputTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.app.process import java.util.concurrent.atomic.AtomicReference diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentAkkaSerializer.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentAkkaSerializer.scala index 8768b71d4..45864fa4d 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentAkkaSerializer.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentAkkaSerializer.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client import csw.commons.CborAkkaSerializer diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentClient.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentClient.scala index 8dd53f8b6..546d31f8a 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentClient.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client import akka.actor.typed.scaladsl.AskPattern._ diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentCommand.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentCommand.scala index 84eef71e1..b83287723 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentCommand.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/AgentCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client import akka.actor.typed.ActorRef diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/codecs/AgentActorCodecs.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/codecs/AgentActorCodecs.scala index f46097b06..d7d3db661 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/codecs/AgentActorCodecs.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/codecs/AgentActorCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client.codecs import akka.actor.typed.ActorRef diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/ConfigFileLocation.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/ConfigFileLocation.scala index ea914151b..3e02b877c 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/ConfigFileLocation.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/ConfigFileLocation.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client.models import enumeratum.{Enum, EnumEntry} diff --git a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/HostConfig.scala b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/HostConfig.scala index 9eb2fb56d..83b95c22b 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/HostConfig.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/main/scala/esw/agent/akka/client/models/HostConfig.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client.models import com.typesafe.config.{Config, ConfigRenderOptions} diff --git a/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/AgentClientTest.scala b/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/AgentClientTest.scala index 3ac46a189..cf18af7dd 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/AgentClientTest.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/AgentClientTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client import akka.actor.typed.ActorRef diff --git a/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/SpawnCommandTest.scala b/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/SpawnCommandTest.scala index 1bedcbab5..1f155c6a0 100644 --- a/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/SpawnCommandTest.scala +++ b/esw-agent-akka/esw-agent-akka-client/src/test/scala/esw/agent/akka/client/SpawnCommandTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka.client import akka.actor.typed.ActorRef diff --git a/esw-agent-service/esw-agent-service-api/jvm/src/main/scala/esw/agent/service/api/client/AgentServiceClientFactory.scala b/esw-agent-service/esw-agent-service-api/jvm/src/main/scala/esw/agent/service/api/client/AgentServiceClientFactory.scala index a964d8f3f..fd03b3485 100644 --- a/esw-agent-service/esw-agent-service-api/jvm/src/main/scala/esw/agent/service/api/client/AgentServiceClientFactory.scala +++ b/esw-agent-service/esw-agent-service-api/jvm/src/main/scala/esw/agent/service/api/client/AgentServiceClientFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.client import akka.actor.typed.ActorSystem diff --git a/esw-agent-service/esw-agent-service-api/jvm/src/test/scala/esw/agent/service/api/client/AgentServiceClientTest.scala b/esw-agent-service/esw-agent-service-api/jvm/src/test/scala/esw/agent/service/api/client/AgentServiceClientTest.scala index fc06a5a3b..2a0cd1c35 100644 --- a/esw-agent-service/esw-agent-service-api/jvm/src/test/scala/esw/agent/service/api/client/AgentServiceClientTest.scala +++ b/esw-agent-service/esw-agent-service-api/jvm/src/test/scala/esw/agent/service/api/client/AgentServiceClientTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.client import java.nio.file.Path diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentAkkaSerializable.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentAkkaSerializable.scala index 05e39cf2d..5877e3eda 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentAkkaSerializable.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentAkkaSerializable.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api trait AgentAkkaSerializable diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentServiceApi.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentServiceApi.scala index 4828111ee..e29ada1be 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentServiceApi.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/AgentServiceApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api import java.nio.file.Path diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/client/AgentServiceClient.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/client/AgentServiceClient.scala index d81013e98..7673ebd50 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/client/AgentServiceClient.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/client/AgentServiceClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.client import csw.location.api.models.ComponentId diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentCodecs.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentCodecs.scala index 7db41e225..c9ec9e281 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentCodecs.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.codecs import csw.location.api.codec.LocationCodecs diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentServiceCodecs.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentServiceCodecs.scala index b38703191..861ec5e54 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentServiceCodecs.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/codecs/AgentServiceCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.codecs import esw.agent.service.api.models.AgentNotFoundException diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentNotFoundException.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentNotFoundException.scala index f3ceb558a..065200bfa 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentNotFoundException.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentNotFoundException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.models /** diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentResponse.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentResponse.scala index 659d42e64..5f1d22adb 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentResponse.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/models/AgentResponse.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.models import csw.location.api.models.{AkkaLocation, ComponentId} diff --git a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/protocol/AgentServiceRequest.scala b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/protocol/AgentServiceRequest.scala index 32cb214b0..820b9be3f 100644 --- a/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/protocol/AgentServiceRequest.scala +++ b/esw-agent-service/esw-agent-service-api/shared/src/main/scala/esw/agent/service/api/protocol/AgentServiceRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.api.protocol import java.nio.file.Path diff --git a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceApp.scala b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceApp.scala index fcbdb9572..db924a97b 100644 --- a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceApp.scala +++ b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.app // $COVERAGE-OFF$ diff --git a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceAppCommand.scala b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceAppCommand.scala index b04f47719..17b13b7f3 100644 --- a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceAppCommand.scala +++ b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceAppCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.app import caseapp.{CommandName, ExtraName, HelpMessage} diff --git a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceWiring.scala b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceWiring.scala index 5a287f266..29fffb40a 100644 --- a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceWiring.scala +++ b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.app import akka.Done diff --git a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/handlers/AgentServicePostHandler.scala b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/handlers/AgentServicePostHandler.scala index cab83a399..fccf1f88b 100644 --- a/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/handlers/AgentServicePostHandler.scala +++ b/esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/handlers/AgentServicePostHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.app.handlers import akka.http.scaladsl.server.Directives.* diff --git a/esw-agent-service/esw-agent-service-app/src/test/scala/esw/agent/service/app/handlers/AgentPostHandlerTest.scala b/esw-agent-service/esw-agent-service-app/src/test/scala/esw/agent/service/app/handlers/AgentPostHandlerTest.scala index 9d5ffcebb..8107b9e39 100644 --- a/esw-agent-service/esw-agent-service-app/src/test/scala/esw/agent/service/app/handlers/AgentPostHandlerTest.scala +++ b/esw-agent-service/esw-agent-service-app/src/test/scala/esw/agent/service/app/handlers/AgentPostHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.app.handlers import java.nio.file.Path diff --git a/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentServiceImpl.scala b/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentServiceImpl.scala index 8db9cc63d..b90b0f091 100644 --- a/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentServiceImpl.scala +++ b/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentServiceImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.impl import akka.actor.typed.ActorSystem diff --git a/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentStatusUtil.scala b/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentStatusUtil.scala index 781b03dcf..38a60df3b 100644 --- a/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentStatusUtil.scala +++ b/esw-agent-service/esw-agent-service-impl/src/main/scala/esw/agent/service/impl/AgentStatusUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.impl import akka.actor.typed.ActorSystem diff --git a/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentServiceImplTest.scala b/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentServiceImplTest.scala index e90bbbce0..242fffb4c 100644 --- a/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentServiceImplTest.scala +++ b/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentServiceImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.impl import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentStatusUtilTest.scala b/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentStatusUtilTest.scala index 4eb24c3fd..e21c30aa3 100644 --- a/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentStatusUtilTest.scala +++ b/esw-agent-service/esw-agent-service-impl/src/test/scala/esw/agent/service/impl/AgentStatusUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service.impl import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-backend-testkit/src/main/scala/csw/backend/auth/MockedAuth.scala b/esw-backend-testkit/src/main/scala/csw/backend/auth/MockedAuth.scala index 13b101bfc..531022621 100644 --- a/esw-backend-testkit/src/main/scala/csw/backend/auth/MockedAuth.scala +++ b/esw-backend-testkit/src/main/scala/csw/backend/auth/MockedAuth.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package csw.backend.auth import csw.aas.http.{PolicyValidator, Roles, SecurityDirectives} diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/BackendService.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/BackendService.scala index aadb9a2b3..8ccb02c05 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/BackendService.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/BackendService.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit import akka.actor.CoordinatedShutdown diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/ContainerCmdApp.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/ContainerCmdApp.scala index 85ec66e91..f599b5b20 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/ContainerCmdApp.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/ContainerCmdApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit import csw.framework.deploy.containercmd.ContainerCmd diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/SequencerApp.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/SequencerApp.scala index 912c10b71..8df1bae6f 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/SequencerApp.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/SequencerApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit import caseapp.RemainingArgs diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSSequencerCommands.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSSequencerCommands.scala index 7bb018c0e..ff59a6428 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSSequencerCommands.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSSequencerCommands.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit import caseapp.core.Error diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSServicesCommands.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSServicesCommands.scala index 279c314f1..8f83fadf0 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSServicesCommands.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/TSServicesCommands.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit import java.nio.file.Path diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/handlers/hcd/TestHcdHandlers.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/handlers/hcd/TestHcdHandlers.scala index 3682e6947..2656d82b7 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/handlers/hcd/TestHcdHandlers.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/handlers/hcd/TestHcdHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.handlers.hcd import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AdminStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AdminStubImpl.scala index 17476bccc..e23629d7c 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AdminStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AdminStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.Done diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AgentServiceStub.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AgentServiceStub.scala index f0809ef76..46c27bb9c 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AgentServiceStub.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AgentServiceStub.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import java.net.URI diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AlarmStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AlarmStubImpl.scala index 0bb967317..0ec63891f 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AlarmStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/AlarmStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.Done diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/CommandServiceStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/CommandServiceStubImpl.scala index a9cd0d2d6..6b0949cac 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/CommandServiceStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/CommandServiceStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/EventStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/EventStubImpl.scala index 6f41ad59c..d36c40aee 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/EventStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/EventStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.Done diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/GatewayStub.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/GatewayStub.scala index 1105bc967..3ef78bb1e 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/GatewayStub.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/GatewayStub.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/LoggerStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/LoggerStubImpl.scala index 07d280989..0517610d6 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/LoggerStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/LoggerStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.Done diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequenceManagerStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequenceManagerStubImpl.scala index 17a47591f..fae6a6145 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequenceManagerStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequenceManagerStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequencerServiceStubImpl.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequencerServiceStubImpl.scala index 935ba8d32..6d2f71374 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequencerServiceStubImpl.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/stubs/SequencerServiceStubImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.stubs import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-backend-testkit/src/main/scala/esw/backend/testkit/utils/IOUtils.scala b/esw-backend-testkit/src/main/scala/esw/backend/testkit/utils/IOUtils.scala index d01adf9f4..37992def3 100644 --- a/esw-backend-testkit/src/main/scala/esw/backend/testkit/utils/IOUtils.scala +++ b/esw-backend-testkit/src/main/scala/esw/backend/testkit/utils/IOUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.backend.testkit.utils import java.nio.file.{Files, Path, StandardCopyOption} diff --git a/esw-commons/src/main/scala/esw/commons/auth/AuthPolicies.scala b/esw-commons/src/main/scala/esw/commons/auth/AuthPolicies.scala index 6a4b1bd3c..2e276face 100644 --- a/esw-commons/src/main/scala/esw/commons/auth/AuthPolicies.scala +++ b/esw-commons/src/main/scala/esw/commons/auth/AuthPolicies.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.auth import csw.aas.http.AuthorizationPolicy.CustomPolicy diff --git a/esw-commons/src/main/scala/esw/commons/cli/EswCommandApp.scala b/esw-commons/src/main/scala/esw/commons/cli/EswCommandApp.scala index 5bd77a781..4f8ba8cb7 100644 --- a/esw-commons/src/main/scala/esw/commons/cli/EswCommandApp.scala +++ b/esw-commons/src/main/scala/esw/commons/cli/EswCommandApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.cli import caseapp.core.commandparser.CommandParser diff --git a/esw-commons/src/main/scala/esw/commons/extensions/EitherExt.scala b/esw-commons/src/main/scala/esw/commons/extensions/EitherExt.scala index 169dd9e4e..c7e5f5a52 100644 --- a/esw-commons/src/main/scala/esw/commons/extensions/EitherExt.scala +++ b/esw-commons/src/main/scala/esw/commons/extensions/EitherExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions /** diff --git a/esw-commons/src/main/scala/esw/commons/extensions/FutureEitherExt.scala b/esw-commons/src/main/scala/esw/commons/extensions/FutureEitherExt.scala index 69b4eeba9..810cecc5b 100644 --- a/esw-commons/src/main/scala/esw/commons/extensions/FutureEitherExt.scala +++ b/esw-commons/src/main/scala/esw/commons/extensions/FutureEitherExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions import java.util.concurrent.CompletionStage diff --git a/esw-commons/src/main/scala/esw/commons/extensions/FutureExt.scala b/esw-commons/src/main/scala/esw/commons/extensions/FutureExt.scala index 8bb53b884..71955e30a 100644 --- a/esw-commons/src/main/scala/esw/commons/extensions/FutureExt.scala +++ b/esw-commons/src/main/scala/esw/commons/extensions/FutureExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions import scala.concurrent.duration.FiniteDuration diff --git a/esw-commons/src/main/scala/esw/commons/extensions/ListEitherExt.scala b/esw-commons/src/main/scala/esw/commons/extensions/ListEitherExt.scala index 3dfdc0f7d..b8cb7a0c3 100644 --- a/esw-commons/src/main/scala/esw/commons/extensions/ListEitherExt.scala +++ b/esw-commons/src/main/scala/esw/commons/extensions/ListEitherExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions /** diff --git a/esw-commons/src/main/scala/esw/commons/extensions/MapExt.scala b/esw-commons/src/main/scala/esw/commons/extensions/MapExt.scala index de7761fcd..fa93eb34d 100644 --- a/esw-commons/src/main/scala/esw/commons/extensions/MapExt.scala +++ b/esw-commons/src/main/scala/esw/commons/extensions/MapExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions /** diff --git a/esw-commons/src/main/scala/esw/commons/utils/aas/Keycloak.scala b/esw-commons/src/main/scala/esw/commons/utils/aas/Keycloak.scala index 24bb81ffa..93a1b5156 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/aas/Keycloak.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/aas/Keycloak.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.aas import csw.location.api.models.ComponentId diff --git a/esw-commons/src/main/scala/esw/commons/utils/config/ConfigServiceExt.scala b/esw-commons/src/main/scala/esw/commons/utils/config/ConfigServiceExt.scala index 6989df445..986263423 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/config/ConfigServiceExt.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/config/ConfigServiceExt.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.config import java.nio.file.Path diff --git a/esw-commons/src/main/scala/esw/commons/utils/config/FetchingScriptVersionFailed.scala b/esw-commons/src/main/scala/esw/commons/utils/config/FetchingScriptVersionFailed.scala index 4360cd2a6..64ddecd26 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/config/FetchingScriptVersionFailed.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/config/FetchingScriptVersionFailed.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.config /** diff --git a/esw-commons/src/main/scala/esw/commons/utils/config/VersionManager.scala b/esw-commons/src/main/scala/esw/commons/utils/config/VersionManager.scala index 36439e0f3..c34cedb62 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/config/VersionManager.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/config/VersionManager.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.config import java.nio.file.Path diff --git a/esw-commons/src/main/scala/esw/commons/utils/files/FileUtils.scala b/esw-commons/src/main/scala/esw/commons/utils/files/FileUtils.scala index 60659b380..5241c4a5b 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/files/FileUtils.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/files/FileUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.files import java.nio.file.{Files, Path} diff --git a/esw-commons/src/main/scala/esw/commons/utils/location/EswLocationError.scala b/esw-commons/src/main/scala/esw/commons/utils/location/EswLocationError.scala index cb7bfc8d6..876625547 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/location/EswLocationError.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/location/EswLocationError.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.location /** diff --git a/esw-commons/src/main/scala/esw/commons/utils/location/LocationServiceUtil.scala b/esw-commons/src/main/scala/esw/commons/utils/location/LocationServiceUtil.scala index 344003378..572def1c4 100644 --- a/esw-commons/src/main/scala/esw/commons/utils/location/LocationServiceUtil.scala +++ b/esw-commons/src/main/scala/esw/commons/utils/location/LocationServiceUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.location import akka.actor.CoordinatedShutdown diff --git a/esw-commons/src/test/scala/esw/commons/auth/AuthPoliciesTest.scala b/esw-commons/src/test/scala/esw/commons/auth/AuthPoliciesTest.scala index 2dcd91cab..f2ec48708 100644 --- a/esw-commons/src/test/scala/esw/commons/auth/AuthPoliciesTest.scala +++ b/esw-commons/src/test/scala/esw/commons/auth/AuthPoliciesTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.auth import csw.prefix.models.Subsystem diff --git a/esw-commons/src/test/scala/esw/commons/extensions/FutureEitherExtTest.scala b/esw-commons/src/test/scala/esw/commons/extensions/FutureEitherExtTest.scala index 485813dc7..3fd952259 100644 --- a/esw-commons/src/test/scala/esw/commons/extensions/FutureEitherExtTest.scala +++ b/esw-commons/src/test/scala/esw/commons/extensions/FutureEitherExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions import java.util.concurrent.CompletionStage diff --git a/esw-commons/src/test/scala/esw/commons/extensions/MapExtTest.scala b/esw-commons/src/test/scala/esw/commons/extensions/MapExtTest.scala index 0e1736471..0625b4522 100644 --- a/esw-commons/src/test/scala/esw/commons/extensions/MapExtTest.scala +++ b/esw-commons/src/test/scala/esw/commons/extensions/MapExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.extensions import esw.commons.extensions.MapExt.MapOps diff --git a/esw-commons/src/test/scala/esw/commons/utils/config/ConfigServiceExtTest.scala b/esw-commons/src/test/scala/esw/commons/utils/config/ConfigServiceExtTest.scala index 241e19079..437997a48 100644 --- a/esw-commons/src/test/scala/esw/commons/utils/config/ConfigServiceExtTest.scala +++ b/esw-commons/src/test/scala/esw/commons/utils/config/ConfigServiceExtTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.config import java.nio.file.Path diff --git a/esw-commons/src/test/scala/esw/commons/utils/config/VersionManagerTest.scala b/esw-commons/src/test/scala/esw/commons/utils/config/VersionManagerTest.scala index ed79780e2..47c6ec0bb 100644 --- a/esw-commons/src/test/scala/esw/commons/utils/config/VersionManagerTest.scala +++ b/esw-commons/src/test/scala/esw/commons/utils/config/VersionManagerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.config import java.nio.file.Path diff --git a/esw-commons/src/test/scala/esw/commons/utils/files/FileUtilsTest.scala b/esw-commons/src/test/scala/esw/commons/utils/files/FileUtilsTest.scala index def144281..a8a20d7fe 100644 --- a/esw-commons/src/test/scala/esw/commons/utils/files/FileUtilsTest.scala +++ b/esw-commons/src/test/scala/esw/commons/utils/files/FileUtilsTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.files import esw.testcommons.BaseTestSuite diff --git a/esw-commons/src/test/scala/esw/commons/utils/location/LocationServiceUtilTest.scala b/esw-commons/src/test/scala/esw/commons/utils/location/LocationServiceUtilTest.scala index 5cd2e9987..7ab235ab7 100644 --- a/esw-commons/src/test/scala/esw/commons/utils/location/LocationServiceUtilTest.scala +++ b/esw-commons/src/test/scala/esw/commons/utils/location/LocationServiceUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.commons.utils.location import akka.Done diff --git a/esw-constants/src/main/scala/esw/constants/Timeouts.scala b/esw-constants/src/main/scala/esw/constants/Timeouts.scala index 5160e896f..0c40c8074 100644 --- a/esw-constants/src/main/scala/esw/constants/Timeouts.scala +++ b/esw-constants/src/main/scala/esw/constants/Timeouts.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.constants import scala.concurrent.duration.{DurationInt, FiniteDuration} diff --git a/esw-contract/src/main/scala/esw/contract/Main.scala b/esw-contract/src/main/scala/esw/contract/Main.scala index 71c6f2139..38420edd9 100644 --- a/esw-contract/src/main/scala/esw/contract/Main.scala +++ b/esw-contract/src/main/scala/esw/contract/Main.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract import csw.contract.generator.FilesGenerator diff --git a/esw-contract/src/main/scala/esw/contract/data/EswData.scala b/esw-contract/src/main/scala/esw/contract/data/EswData.scala index ec524340d..b87be78f0 100644 --- a/esw-contract/src/main/scala/esw/contract/data/EswData.scala +++ b/esw-contract/src/main/scala/esw/contract/data/EswData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data import csw.contract.generator.Services diff --git a/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentContractData.scala b/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentContractData.scala index a26d47ee0..066b89d45 100644 --- a/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentContractData.scala +++ b/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentContractData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.agentservice import java.net.URI diff --git a/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentServiceContract.scala b/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentServiceContract.scala index 3202a0fea..7139d7707 100644 --- a/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentServiceContract.scala +++ b/esw-contract/src/main/scala/esw/contract/data/agentservice/AgentServiceContract.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.agentservice import csw.contract.ResourceFetcher diff --git a/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayContract.scala b/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayContract.scala index 3e59ed349..803e91c15 100644 --- a/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayContract.scala +++ b/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayContract.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.gateway import akka.Done diff --git a/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayData.scala b/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayData.scala index 658045ca9..157bebaf1 100644 --- a/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayData.scala +++ b/esw-contract/src/main/scala/esw/contract/data/gateway/GatewayData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.gateway import csw.alarm.models.AlarmSeverity diff --git a/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerContract.scala b/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerContract.scala index 15acea08f..09a6c044d 100644 --- a/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerContract.scala +++ b/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerContract.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.sequencemanager import csw.contract.ResourceFetcher diff --git a/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerData.scala b/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerData.scala index 9c233bfc0..32bd8a58e 100644 --- a/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerData.scala +++ b/esw-contract/src/main/scala/esw/contract/data/sequencemanager/SequenceManagerData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.sequencemanager import csw.location.api.models.ComponentType.{Machine, SequenceComponent, Sequencer} diff --git a/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerContract.scala b/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerContract.scala index b6b6233bc..c91fe0e56 100644 --- a/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerContract.scala +++ b/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerContract.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.sequencer import csw.contract.ResourceFetcher diff --git a/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerData.scala b/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerData.scala index 825f0cf93..f489de47a 100644 --- a/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerData.scala +++ b/esw-contract/src/main/scala/esw/contract/data/sequencer/SequencerData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data.sequencer import csw.contract.data.command.CommandData diff --git a/esw-contract/src/test/scala/esw/contract/data/RoundTripTest.scala b/esw-contract/src/test/scala/esw/contract/data/RoundTripTest.scala index be28c32ee..ffafff152 100644 --- a/esw-contract/src/test/scala/esw/contract/data/RoundTripTest.scala +++ b/esw-contract/src/test/scala/esw/contract/data/RoundTripTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.contract.data import csw.contract.generator.{ModelType, RoundTrip} diff --git a/esw-gateway/esw-gateway-api/.jvm/src/test/scala/esw/gateway/api/codecs/LogCodecTest.scala b/esw-gateway/esw-gateway-api/.jvm/src/test/scala/esw/gateway/api/codecs/LogCodecTest.scala index bb1ddd1bd..f5d44b3e4 100644 --- a/esw-gateway/esw-gateway-api/.jvm/src/test/scala/esw/gateway/api/codecs/LogCodecTest.scala +++ b/esw-gateway/esw-gateway-api/.jvm/src/test/scala/esw/gateway/api/codecs/LogCodecTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.codecs import csw.logging.models.Level diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AdminApi.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AdminApi.scala index b7a44bfc4..f0b7ac08f 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AdminApi.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AdminApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AlarmApi.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AlarmApi.scala index 8dfb0eadf..97d43cfa7 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AlarmApi.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/AlarmApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/EventApi.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/EventApi.scala index 345a6ca83..c397194f9 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/EventApi.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/EventApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/LoggingApi.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/LoggingApi.scala index 40d74bdb0..7c11b74fb 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/LoggingApi.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/LoggingApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AdminClient.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AdminClient.scala index 2ee95eb80..91b66adc3 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AdminClient.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AdminClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.clients import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AlarmClient.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AlarmClient.scala index 12188b3ee..a58dc1326 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AlarmClient.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/AlarmClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.clients import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/ClientFactory.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/ClientFactory.scala index d3fd41378..6c6bed98c 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/ClientFactory.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/ClientFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.clients import akka.actor.typed.ActorSystem diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/EventClient.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/EventClient.scala index 2653d9ac7..b5354d4fc 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/EventClient.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/EventClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.clients import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/LoggingClient.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/LoggingClient.scala index 1501e1115..23fb81214 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/LoggingClient.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/clients/LoggingClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.clients import akka.Done diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/ElementConverter.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/ElementConverter.scala index 6c454e1a3..5e983a36b 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/ElementConverter.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/ElementConverter.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.codecs import io.bullet.borer.Dom diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/GatewayCodecs.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/GatewayCodecs.scala index cd34a74d9..eb803502c 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/GatewayCodecs.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/codecs/GatewayCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.codecs import csw.alarm.models.Key.AlarmKey diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayException.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayException.scala index 1329a9cb4..88d3d5272 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayException.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.protocol /** diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayRequest.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayRequest.scala index cb09b3c7f..fba634a5e 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayRequest.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.protocol import csw.alarm.models.AlarmSeverity diff --git a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayStreamRequest.scala b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayStreamRequest.scala index d495fc787..6430b2e92 100644 --- a/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayStreamRequest.scala +++ b/esw-gateway/esw-gateway-api/src/main/scala/esw/gateway/api/protocol/GatewayStreamRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.api.protocol import csw.command.api.messages.CommandServiceStreamRequest diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminImpl.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminImpl.scala index c804ec21e..42c147352 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminImpl.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import akka.Done diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminLogger.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminLogger.scala index f26356b14..f8e001858 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminLogger.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AdminLogger.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import csw.logging.client.scaladsl.LoggerFactory diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AlarmImpl.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AlarmImpl.scala index 895526e42..b80d6f727 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AlarmImpl.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/AlarmImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import akka.Done diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/EventImpl.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/EventImpl.scala index e88578ebd..174bec56e 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/EventImpl.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/EventImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import akka.Done diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggerCache.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggerCache.scala index 5ef1add6e..230fc198f 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggerCache.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggerCache.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import com.github.benmanes.caffeine.cache.{Caffeine, LoadingCache} diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggingImpl.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggingImpl.scala index 183d29286..58a87922c 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggingImpl.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/LoggingImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import akka.Done diff --git a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/Utils.scala b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/Utils.scala index 47f288985..a90dc9d70 100644 --- a/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/Utils.scala +++ b/esw-gateway/esw-gateway-impl/src/main/scala/esw/gateway/impl/Utils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import scala.concurrent.duration.{DurationLong, FiniteDuration} diff --git a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/AdminImplTest.scala b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/AdminImplTest.scala index 52e09576e..185bf0577 100644 --- a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/AdminImplTest.scala +++ b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/AdminImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import java.net.URI diff --git a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggerCacheTest.scala b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggerCacheTest.scala index 618bfa406..d40aaa3b8 100644 --- a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggerCacheTest.scala +++ b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggerCacheTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import csw.prefix.models.Prefix diff --git a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggingImplTest.scala b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggingImplTest.scala index 9cad32d7e..1e0c91561 100644 --- a/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggingImplTest.scala +++ b/esw-gateway/esw-gateway-impl/src/test/scala/esw/gateway/impl/LoggingImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.impl import akka.Done diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayMain.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayMain.scala index 7b0e4ff7b..0d345c1aa 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayMain.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayMain.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import caseapp.RemainingArgs diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayRequestLabels.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayRequestLabels.scala index 7b4a3c165..b1bcd030a 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayRequestLabels.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayRequestLabels.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import esw.gateway.api.protocol.GatewayRequest diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayStreamRequestLabels.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayStreamRequestLabels.scala index c183ea94a..fdbc0d9dc 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayStreamRequestLabels.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayStreamRequestLabels.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import csw.params.events.EventKey diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayWiring.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayWiring.scala index 03a3557ca..208863187 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayWiring.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/GatewayWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/ServerCommand.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/ServerCommand.scala index 43db8f21c..122f562db 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/ServerCommand.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/ServerCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import java.nio.file.Path diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayPostHandler.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayPostHandler.scala index 20eac24f1..90e417aa8 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayPostHandler.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayPostHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.handlers import akka.http.scaladsl.server.Directives._ diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayWebsocketHandler.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayWebsocketHandler.scala index b221628dc..e50a354d8 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayWebsocketHandler.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/handlers/GatewayWebsocketHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.handlers import csw.command.api.messages.CommandServiceStreamRequest diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentFactory.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentFactory.scala index 2ef6be136..d9f10575b 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentFactory.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.utils import akka.actor.typed.ActorSystem diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentNotFoundException.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentNotFoundException.scala index 4463a71bf..3dc10428e 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentNotFoundException.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ComponentNotFoundException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.utils import csw.location.api.models.ComponentId diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ICommandServiceFactory.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ICommandServiceFactory.scala index b66757c7f..92004e70f 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ICommandServiceFactory.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/ICommandServiceFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.utils import akka.actor.typed.ActorSystem diff --git a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/Resolver.scala b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/Resolver.scala index 1f32b6b55..71fbf3e9b 100644 --- a/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/Resolver.scala +++ b/esw-gateway/esw-gateway-server/src/main/scala/esw/gateway/server/utils/Resolver.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.utils import akka.actor.typed.ActorSystem diff --git a/esw-gateway/esw-gateway-server/src/test/scala/csw/gateway/mock/AuthMocks.scala b/esw-gateway/esw-gateway-server/src/test/scala/csw/gateway/mock/AuthMocks.scala index 8c3a2a531..36b5ea531 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/csw/gateway/mock/AuthMocks.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/csw/gateway/mock/AuthMocks.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package csw.gateway.mock import csw.aas.http.{PolicyValidator, SecurityDirectives} diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/CswTestMocks.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/CswTestMocks.scala index 55c190de8..aa4cffe5e 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/CswTestMocks.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/CswTestMocks.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.stream.stage.{GraphStage, GraphStageLogic, InHandler, OutHandler} diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayAuthRequestTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayAuthRequestTest.scala index 04087dd37..2167e803d 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayAuthRequestTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayAuthRequestTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayPostRouteTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayPostRouteTest.scala index 52654f9f0..babc02bc1 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayPostRouteTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayPostRouteTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayWSRouteTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayWSRouteTest.scala index e4d5ead9d..bd4b748de 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayWSRouteTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/GatewayWSRouteTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/PostMetricsTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/PostMetricsTest.scala index 9258bb5e1..dd857c3bd 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/PostMetricsTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/PostMetricsTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.metrics import akka.actor.typed.ActorSystem import akka.actor.typed.scaladsl.adapter.ClassicActorSystemOps diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/WebsocketMetricsTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/WebsocketMetricsTest.scala index 4cae5ae15..eeececd15 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/WebsocketMetricsTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/metrics/WebsocketMetricsTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.metrics import akka.actor.typed.ActorSystem diff --git a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/utils/ComponentFactoryTest.scala b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/utils/ComponentFactoryTest.scala index 2a8196078..66331b77e 100644 --- a/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/utils/ComponentFactoryTest.scala +++ b/esw-gateway/esw-gateway-server/src/test/scala/esw/gateway/server/utils/ComponentFactoryTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.utils import java.net.URI diff --git a/esw-http-core/src/main/scala/esw/http/core/commons/CoordinatedShutdownReasons.scala b/esw-http-core/src/main/scala/esw/http/core/commons/CoordinatedShutdownReasons.scala index 8fa79b950..31f14fae6 100644 --- a/esw-http-core/src/main/scala/esw/http/core/commons/CoordinatedShutdownReasons.scala +++ b/esw-http-core/src/main/scala/esw/http/core/commons/CoordinatedShutdownReasons.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.commons import akka.actor.CoordinatedShutdown diff --git a/esw-http-core/src/main/scala/esw/http/core/commons/ServiceLogger.scala b/esw-http-core/src/main/scala/esw/http/core/commons/ServiceLogger.scala index 411a73d18..00c25a6a2 100644 --- a/esw-http-core/src/main/scala/esw/http/core/commons/ServiceLogger.scala +++ b/esw-http-core/src/main/scala/esw/http/core/commons/ServiceLogger.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.commons import csw.logging.client.scaladsl.LoggerFactory diff --git a/esw-http-core/src/main/scala/esw/http/core/wiring/ActorRuntime.scala b/esw-http-core/src/main/scala/esw/http/core/wiring/ActorRuntime.scala index 7d71c424c..d3ea52e35 100644 --- a/esw-http-core/src/main/scala/esw/http/core/wiring/ActorRuntime.scala +++ b/esw-http-core/src/main/scala/esw/http/core/wiring/ActorRuntime.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.wiring import akka.Done diff --git a/esw-http-core/src/main/scala/esw/http/core/wiring/HttpService.scala b/esw-http-core/src/main/scala/esw/http/core/wiring/HttpService.scala index 9dc3b760b..4b6ee57d1 100644 --- a/esw-http-core/src/main/scala/esw/http/core/wiring/HttpService.scala +++ b/esw-http-core/src/main/scala/esw/http/core/wiring/HttpService.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.wiring import akka.actor.CoordinatedShutdown diff --git a/esw-http-core/src/main/scala/esw/http/core/wiring/Settings.scala b/esw-http-core/src/main/scala/esw/http/core/wiring/Settings.scala index ef649ccf2..c60c631bc 100644 --- a/esw-http-core/src/main/scala/esw/http/core/wiring/Settings.scala +++ b/esw-http-core/src/main/scala/esw/http/core/wiring/Settings.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.wiring import com.typesafe.config.Config diff --git a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/CswServices.scala b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/CswServices.scala index 74dc5c929..8aa7efd53 100644 --- a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/CswServices.scala +++ b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/CswServices.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.template.wiring import akka.actor.typed.ActorSystem diff --git a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerApp.scala b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerApp.scala index d70f45daf..044ccf460 100644 --- a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerApp.scala +++ b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.template.wiring import caseapp.core.app.CommandApp diff --git a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerWiring.scala b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerWiring.scala index cedda1fcf..45532b8b2 100644 --- a/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerWiring.scala +++ b/esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.template.wiring import akka.Done diff --git a/esw-integration-test/src/main/scala/esw/agent/test/TestAssemblyHandlers.scala b/esw-integration-test/src/main/scala/esw/agent/test/TestAssemblyHandlers.scala index 5c43338c1..c670ffc7d 100644 --- a/esw-integration-test/src/main/scala/esw/agent/test/TestAssemblyHandlers.scala +++ b/esw-integration-test/src/main/scala/esw/agent/test/TestAssemblyHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.test import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/main/scala/esw/agent/test/TestContainerCmdApp.scala b/esw-integration-test/src/main/scala/esw/agent/test/TestContainerCmdApp.scala index 8828fe03b..59f77e985 100644 --- a/esw-integration-test/src/main/scala/esw/agent/test/TestContainerCmdApp.scala +++ b/esw-integration-test/src/main/scala/esw/agent/test/TestContainerCmdApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.test import csw.framework.deploy.containercmd.ContainerCmd diff --git a/esw-integration-test/src/multi-jvm/scala/esw/MultiNodeSampleConfig.scala b/esw-integration-test/src/multi-jvm/scala/esw/MultiNodeSampleConfig.scala index 5f4418f38..20515d3fd 100644 --- a/esw-integration-test/src/multi-jvm/scala/esw/MultiNodeSampleConfig.scala +++ b/esw-integration-test/src/multi-jvm/scala/esw/MultiNodeSampleConfig.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw import akka.remote.testconductor.RoleName diff --git a/esw-integration-test/src/multi-jvm/scala/esw/STMultiNodeSpec.scala b/esw-integration-test/src/multi-jvm/scala/esw/STMultiNodeSpec.scala index 1ab52690c..7303ad28f 100644 --- a/esw-integration-test/src/multi-jvm/scala/esw/STMultiNodeSpec.scala +++ b/esw-integration-test/src/multi-jvm/scala/esw/STMultiNodeSpec.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw import akka.remote.testkit.{MultiNodeSpec, MultiNodeSpecCallbacks} diff --git a/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/SequencerTest.scala b/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/SequencerTest.scala index 478dd41a3..a9be495ce 100644 --- a/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/SequencerTest.scala +++ b/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/SequencerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/testdata/SampleComponentHandlers.scala b/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/testdata/SampleComponentHandlers.scala index 3f58bc380..3ef061713 100644 --- a/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/testdata/SampleComponentHandlers.scala +++ b/esw-integration-test/src/multi-jvm/scala/esw/ocs/app/testdata/SampleComponentHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.testdata import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/resources/SampleScript.kts b/esw-integration-test/src/test/resources/SampleScript.kts index 82d45d4e9..a85e84fba 100644 --- a/esw-integration-test/src/test/resources/SampleScript.kts +++ b/esw-integration-test/src/test/resources/SampleScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + import esw.ocs.dsl.core.script script { diff --git a/esw-integration-test/src/test/scala/esw/agent/akka/AgentSetup.scala b/esw-integration-test/src/test/scala/esw/agent/akka/AgentSetup.scala index 3214458fe..4ed150bc1 100644 --- a/esw-integration-test/src/test/scala/esw/agent/akka/AgentSetup.scala +++ b/esw-integration-test/src/test/scala/esw/agent/akka/AgentSetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.akka import java.nio.file.Path diff --git a/esw-integration-test/src/test/scala/esw/agent/service/AgentServiceIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/agent/service/AgentServiceIntegrationTest.scala index 35cfccb9d..eaf31438f 100644 --- a/esw-integration-test/src/test/scala/esw/agent/service/AgentServiceIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/agent/service/AgentServiceIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.agent.service import csw.location.api.models.ComponentType.Service diff --git a/esw-integration-test/src/test/scala/esw/demo/SampleHcdHandlers.scala b/esw-integration-test/src/test/scala/esw/demo/SampleHcdHandlers.scala index aba9f3e77..8f9561d2c 100644 --- a/esw-integration-test/src/test/scala/esw/demo/SampleHcdHandlers.scala +++ b/esw-integration-test/src/test/scala/esw/demo/SampleHcdHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.demo import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/scala/esw/demo/TestClient.scala b/esw-integration-test/src/test/scala/esw/demo/TestClient.scala index cfef7072a..cc655af3f 100644 --- a/esw-integration-test/src/test/scala/esw/demo/TestClient.scala +++ b/esw-integration-test/src/test/scala/esw/demo/TestClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.demo import akka.actor.typed.scaladsl.AskPattern.Askable diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/AlarmContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/AlarmContractTest.scala index 45b3f485b..434644ba4 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/AlarmContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/AlarmContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/CommandContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/CommandContractTest.scala index d133d19da..72947d04a 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/CommandContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/CommandContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/EventContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/EventContractTest.scala index ca9e720af..e553075cd 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/EventContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/EventContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/GatewayServiceTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/GatewayServiceTest.scala index da9220538..e8c69005f 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/GatewayServiceTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/GatewayServiceTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/GatewaySetup.scala b/esw-integration-test/src/test/scala/esw/gateway/server/GatewaySetup.scala index ac55cb587..ed14c937d 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/GatewaySetup.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/GatewaySetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import csw.command.api.scaladsl.CommandService import csw.location.api.models.ComponentType.Assembly diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/LoggingContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/LoggingContractTest.scala index cf165f4e3..6800635f3 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/LoggingContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/LoggingContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import akka.Done diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/SequencerContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/SequencerContractTest.scala index 79887617f..07bd4762f 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/SequencerContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/SequencerContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server import csw.location.api.models.{ComponentId, ComponentType} diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/admin/AdminContractTest.scala b/esw-integration-test/src/test/scala/esw/gateway/server/admin/AdminContractTest.scala index b13e55b0e..f6f920f0b 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/admin/AdminContractTest.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/admin/AdminContractTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.admin import java.net.InetAddress diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/admin/FrameworkAssertions.scala b/esw-integration-test/src/test/scala/esw/gateway/server/admin/FrameworkAssertions.scala index a435ba15d..1a6bc7f8a 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/admin/FrameworkAssertions.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/admin/FrameworkAssertions.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.admin import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/admin/SampleContainerState.scala b/esw-integration-test/src/test/scala/esw/gateway/server/admin/SampleContainerState.scala index 42d05e72d..534cd54b2 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/admin/SampleContainerState.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/admin/SampleContainerState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.admin import csw.location.api.models.{ComponentId, ComponentType} diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/FilterAssemblyComponentHandlers.scala b/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/FilterAssemblyComponentHandlers.scala index 0c4dfc686..f68d62ab3 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/FilterAssemblyComponentHandlers.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/FilterAssemblyComponentHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.admin.components import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/GalilComponentHandlers.scala b/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/GalilComponentHandlers.scala index 7eb945571..28f5cbc6d 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/GalilComponentHandlers.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/admin/components/GalilComponentHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.admin.components import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleAssemblyHandlers.scala b/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleAssemblyHandlers.scala index c8894b291..0c17fcbe3 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleAssemblyHandlers.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleAssemblyHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.testdata import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleHcdHandlers.scala b/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleHcdHandlers.scala index fc8e4fe44..2bfa1ec5d 100644 --- a/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleHcdHandlers.scala +++ b/esw-integration-test/src/test/scala/esw/gateway/server/testdata/SampleHcdHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.gateway.server.testdata import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-integration-test/src/test/scala/esw/http/core/wiring/HTTPServiceCorsTest.scala b/esw-integration-test/src/test/scala/esw/http/core/wiring/HTTPServiceCorsTest.scala index 41071a8f5..fcac31ab2 100644 --- a/esw-integration-test/src/test/scala/esw/http/core/wiring/HTTPServiceCorsTest.scala +++ b/esw-integration-test/src/test/scala/esw/http/core/wiring/HTTPServiceCorsTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.wiring import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-integration-test/src/test/scala/esw/http/core/wiring/HttpServiceTest.scala b/esw-integration-test/src/test/scala/esw/http/core/wiring/HttpServiceTest.scala index 8a9cdfc31..d62ffe213 100644 --- a/esw-integration-test/src/test/scala/esw/http/core/wiring/HttpServiceTest.scala +++ b/esw-integration-test/src/test/scala/esw/http/core/wiring/HttpServiceTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.http.core.wiring import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-integration-test/src/test/scala/esw/integration/IntegrationTestWithAuth.scala b/esw-integration-test/src/test/scala/esw/integration/IntegrationTestWithAuth.scala index 10d98818b..d4b815410 100644 --- a/esw-integration-test/src/test/scala/esw/integration/IntegrationTestWithAuth.scala +++ b/esw-integration-test/src/test/scala/esw/integration/IntegrationTestWithAuth.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.integration import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-integration-test/src/test/scala/esw/ocs/app/SequencerAppIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/app/SequencerAppIntegrationTest.scala index eab34f9de..84637b3e5 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/app/SequencerAppIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/app/SequencerAppIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/app/SequencerClientIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/app/SequencerClientIntegrationTest.scala index 6c1e8ea72..0f0a54969 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/app/SequencerClientIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/app/SequencerClientIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/core/DynamicLogLevelTest.scala b/esw-integration-test/src/test/scala/esw/ocs/core/DynamicLogLevelTest.scala index 9004c4f3b..4607a74bd 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/core/DynamicLogLevelTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/core/DynamicLogLevelTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.core import csw.location.api.models.AkkaLocation diff --git a/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerBehaviorIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerBehaviorIntegrationTest.scala index d1a1a64ff..400032f93 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerBehaviorIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerBehaviorIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerCommandServiceTest.scala b/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerCommandServiceTest.scala index 9ab6b7a74..59db4362c 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerCommandServiceTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/impl/core/SequencerCommandServiceTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import csw.command.client.SequencerCommandServiceImpl diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/ExceptionsHandlerIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/ExceptionsHandlerIntegrationTest.scala index 1ac3f8f1c..5074cbae1 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/ExceptionsHandlerIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/ExceptionsHandlerIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/FsmIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/FsmIntegrationTest.scala index 533b2efb9..0e4625a28 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/FsmIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/FsmIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/HealthCheckIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/HealthCheckIntegrationTest.scala index 278f4466e..1c2814207 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/HealthCheckIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/HealthCheckIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.typed.ActorSystem diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/LocationScriptIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/LocationScriptIntegrationTest.scala index 2a8bc9357..807e4bcd3 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/LocationScriptIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/LocationScriptIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/LockUnlockIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/LockUnlockIntegrationTest.scala index dcc9e50e0..124fb23d7 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/LockUnlockIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/LockUnlockIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/LoggingDslIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/LoggingDslIntegrationTest.scala index db5c66a71..55fb443e2 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/LoggingDslIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/LoggingDslIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.typed.ActorRef diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/NewSequenceHandlerIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/NewSequenceHandlerIntegrationTest.scala index 0b3930980..768fbff91 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/NewSequenceHandlerIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/NewSequenceHandlerIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/OnlineOfflineHandlerTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/OnlineOfflineHandlerTest.scala index 5f44350e7..5d8f54522 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/OnlineOfflineHandlerTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/OnlineOfflineHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import csw.params.core.generics.KeyType.{BooleanKey, IntKey} diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/ScriptIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/ScriptIntegrationTest.scala index 456da767b..611b1a440 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/ScriptIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/ScriptIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import com.typesafe.config.ConfigFactory diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/ScriptLoaderTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/ScriptLoaderTest.scala index 8aba768af..93b3d0aa1 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/ScriptLoaderTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/ScriptLoaderTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/ShutdownExceptionHandlerTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/ShutdownExceptionHandlerTest.scala index 2b0c7b3ab..59f1d11f6 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/ShutdownExceptionHandlerTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/ShutdownExceptionHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/script/ThreadSafetyTest.scala b/esw-integration-test/src/test/scala/esw/ocs/script/ThreadSafetyTest.scala index cc143e3fe..83678935b 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/script/ThreadSafetyTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/script/ThreadSafetyTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.script import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-integration-test/src/test/scala/esw/ocs/simulation/SequencerSimulationTest.scala b/esw-integration-test/src/test/scala/esw/ocs/simulation/SequencerSimulationTest.scala index 06aa03755..31e52afd6 100644 --- a/esw-integration-test/src/test/scala/esw/ocs/simulation/SequencerSimulationTest.scala +++ b/esw-integration-test/src/test/scala/esw/ocs/simulation/SequencerSimulationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.simulation import csw.params.commands.CommandResponse.Completed diff --git a/esw-integration-test/src/test/scala/esw/script/launcher/SequencerScriptLauncherTest.scala b/esw-integration-test/src/test/scala/esw/script/launcher/SequencerScriptLauncherTest.scala index 5410ad033..7948303fe 100644 --- a/esw-integration-test/src/test/scala/esw/script/launcher/SequencerScriptLauncherTest.scala +++ b/esw-integration-test/src/test/scala/esw/script/launcher/SequencerScriptLauncherTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.script.launcher import java.util diff --git a/esw-integration-test/src/test/scala/esw/shell/MainTest.scala b/esw-integration-test/src/test/scala/esw/shell/MainTest.scala index de9b72b2f..1f368370c 100644 --- a/esw-integration-test/src/test/scala/esw/shell/MainTest.scala +++ b/esw-integration-test/src/test/scala/esw/shell/MainTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell import java.util.concurrent.TimeUnit diff --git a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSetup.scala b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSetup.scala index 6c10d6ba7..5ad516b8e 100644 --- a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSetup.scala +++ b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import csw.location.api.models.ComponentId diff --git a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSimulationIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSimulationIntegrationTest.scala index 282536600..99e50718a 100644 --- a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSimulationIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSimulationIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import csw.config.api.scaladsl.ConfigService diff --git a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSossIntegrationTest.scala b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSossIntegrationTest.scala index b7520e5fc..74967a00f 100644 --- a/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSossIntegrationTest.scala +++ b/esw-integration-test/src/test/scala/esw/sm/app/SequenceManagerSossIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import csw.location.api.models.ComponentId diff --git a/esw-integration-test/src/test/scala/esw/sm/app/TestSetup.scala b/esw-integration-test/src/test/scala/esw/sm/app/TestSetup.scala index fb470d14c..ba1915d5b 100644 --- a/esw-integration-test/src/test/scala/esw/sm/app/TestSetup.scala +++ b/esw-integration-test/src/test/scala/esw/sm/app/TestSetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import java.nio.file.{Path, Paths} diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsAkkaSerializer.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsAkkaSerializer.scala index 92931c0db..8b12f627f 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsAkkaSerializer.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsAkkaSerializer.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor import csw.command.client.messages.sequencer.SequencerMsg diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsMsgCodecs.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsMsgCodecs.scala index 9e01c2bc9..50426e7df 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsMsgCodecs.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/OcsMsgCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor import csw.command.client.cbor.MessageCodecs diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequenceComponentImpl.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequenceComponentImpl.scala index 39652c4ae..e7627df02 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequenceComponentImpl.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequenceComponentImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.client import akka.actor.typed.scaladsl.AskPattern.* diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerApiFactory.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerApiFactory.scala index 82c1285bb..65ed6271b 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerApiFactory.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerApiFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.client import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerImpl.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerImpl.scala index d8c1b8875..3f1be9ee1 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerImpl.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/client/SequencerImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.client import akka.actor.typed.scaladsl.AskPattern.* diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/InternalSequencerState.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/InternalSequencerState.scala index 7a391e6ae..5ec030d6f 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/InternalSequencerState.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/InternalSequencerState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.messages import csw.command.client.messages.sequencer.SequencerMsg diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequenceComponentMsg.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequenceComponentMsg.scala index abc66bd3b..6ecf3b4b6 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequenceComponentMsg.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequenceComponentMsg.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.messages import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequencerMessages.scala b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequencerMessages.scala index 3f0210cbd..23db10b6a 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequencerMessages.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/main/scala/esw/ocs/api/actor/messages/SequencerMessages.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.messages import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequenceComponentImplTest.scala b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequenceComponentImplTest.scala index 25f1af09b..3890e157e 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequenceComponentImplTest.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequenceComponentImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.client import akka.actor.typed.{ActorRef, ActorSystem, SpawnProtocol} diff --git a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequencerImplTest.scala b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequencerImplTest.scala index 82cef8d66..0368daa28 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequencerImplTest.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/client/SequencerImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.client import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/messages/InternalSequencerStateTest.scala b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/messages/InternalSequencerStateTest.scala index b7e95b6db..c7dc9279c 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/messages/InternalSequencerStateTest.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/actor/messages/InternalSequencerStateTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.actor.messages import esw.ocs.api.actor.messages.InternalSequencerState.* diff --git a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/client/SequencerClientTest.scala b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/client/SequencerClientTest.scala index a83895171..8df73be25 100644 --- a/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/client/SequencerClientTest.scala +++ b/esw-ocs/esw-ocs-api/jvm/src/test/scala/esw/ocs/api/client/SequencerClientTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.client import akka.stream.scaladsl.Source diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequenceComponentApi.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequenceComponentApi.scala index b1570a908..3a43138c8 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequenceComponentApi.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequenceComponentApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api import csw.prefix.models.Subsystem diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequencerApi.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequencerApi.scala index 084114198..77d8121a9 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequencerApi.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/SequencerApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api import akka.stream.scaladsl.Source diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/client/SequencerClient.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/client/SequencerClient.scala index 4dc3b6695..884d17cc8 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/client/SequencerClient.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/client/SequencerClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.client import akka.stream.scaladsl.Source diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsAkkaSerializable.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsAkkaSerializable.scala index 5ea8d5e91..aeb062787 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsAkkaSerializable.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsAkkaSerializable.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.codecs trait OcsAkkaSerializable extends Product with Serializable diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsCodecs.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsCodecs.scala index 4f022ea38..6021355ba 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsCodecs.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/OcsCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.codecs import csw.location.api.codec.LocationCodecs diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/SequencerServiceCodecs.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/SequencerServiceCodecs.scala index 8ed17e96b..e23016533 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/SequencerServiceCodecs.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/codecs/SequencerServiceCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.codecs import esw.ocs.api.protocol.{SequencerRequest, SequencerStreamRequest} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/ObsMode.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/ObsMode.scala index 972302294..f3bf777a0 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/ObsMode.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/ObsMode.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.prefix.models.Prefix diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequenceComponentState.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequenceComponentState.scala index f4fd6872e..6c1c5886c 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequenceComponentState.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequenceComponentState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import enumeratum.{Enum, EnumEntry} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequencerState.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequencerState.scala index f8d453719..3cd268b37 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequencerState.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/SequencerState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models /** diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Step.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Step.scala index 7951f4b7d..2b8558491 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Step.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Step.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.params.commands.SequenceCommand diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepList.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepList.scala index 002e4e354..2245a973a 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepList.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepList.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.params.commands.{Sequence, SequenceCommand} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepStatus.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepStatus.scala index c85a91b2e..162cb3959 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepStatus.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/StepStatus.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models /** diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Variation.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Variation.scala index 04629cb1f..23c024035 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Variation.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/Variation.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.prefix.models.{Prefix, Subsystem} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/VariationInfo.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/VariationInfo.scala index f3af3b1c1..6e64b285e 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/VariationInfo.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/models/VariationInfo.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.prefix.models.{Prefix, Subsystem} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/EswSequencerResponse.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/EswSequencerResponse.scala index 2c612dc10..5fb0f0f75 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/EswSequencerResponse.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/EswSequencerResponse.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.protocol import csw.params.commands.CommandIssue.UnsupportedCommandInStateIssue diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequenceComponentResponses.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequenceComponentResponses.scala index 8f9cc60fa..133ad5dd3 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequenceComponentResponses.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequenceComponentResponses.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.protocol import csw.location.api.models.AkkaLocation diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerRequest.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerRequest.scala index 299aadd82..bac1b138c 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerRequest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.protocol import csw.params.commands.{Sequence, SequenceCommand} diff --git a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerStreamRequest.scala b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerStreamRequest.scala index 6e8ffe712..3d8547631 100644 --- a/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerStreamRequest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/main/scala/esw/ocs/api/protocol/SequencerStreamRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.protocol import akka.util.Timeout diff --git a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/ObsModeTest.scala b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/ObsModeTest.scala index 4b3813d03..284b46e38 100644 --- a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/ObsModeTest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/ObsModeTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.prefix.models.Prefix diff --git a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/SequenceTest.scala b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/SequenceTest.scala index b519953ea..af43dfd22 100644 --- a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/SequenceTest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/SequenceTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.params.commands.{CommandName, Observe, Sequence, Setup} diff --git a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepListTest.scala b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepListTest.scala index ef9159d80..3cb65b4d8 100644 --- a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepListTest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepListTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.params.commands.* diff --git a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepTest.scala b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepTest.scala index 4a1244fab..f3dc1a2d8 100644 --- a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepTest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/StepTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.params.commands.{CommandName, Setup} diff --git a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/VariationInfoTest.scala b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/VariationInfoTest.scala index eeebf6282..deecbe01a 100644 --- a/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/VariationInfoTest.scala +++ b/esw-ocs/esw-ocs-api/shared/src/test/scala/esw/ocs/api/models/VariationInfoTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.api.models import csw.prefix.models.Prefix diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerApp.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerApp.scala index 800daa8bb..f36c24b7c 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerApp.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerAppCommand.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerAppCommand.scala index 38b136c7b..b3c63b536 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerAppCommand.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerAppCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import caseapp.core.Error diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationScript.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationScript.scala index 17743306c..9857c7456 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationScript.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationScript.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.simulation import akka.Done diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationSequencerWiring.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationSequencerWiring.scala index f32a7c595..8ca506bc3 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationSequencerWiring.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/simulation/SimulationSequencerWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.simulation import csw.prefix.models.Prefix diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequenceComponentWiring.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequenceComponentWiring.scala index 237214cc9..3b60fc299 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequenceComponentWiring.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequenceComponentWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.wiring import akka.actor.typed.SpawnProtocol.Spawn diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerConfig.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerConfig.scala index 67ce7322c..16bb29bf4 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerConfig.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerConfig.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.wiring import com.typesafe.config.{Config, ConfigException} diff --git a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerWiring.scala b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerWiring.scala index 85ebb2839..aa84eedd6 100644 --- a/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerWiring.scala +++ b/esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/wiring/SequencerWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.wiring import akka.Done diff --git a/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/SequencerAppCommandTest.scala b/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/SequencerAppCommandTest.scala index bf9d12919..07e402103 100644 --- a/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/SequencerAppCommandTest.scala +++ b/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/SequencerAppCommandTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app import org.scalatest.EitherValues diff --git a/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/wiring/SequencerConfigTest.scala b/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/wiring/SequencerConfigTest.scala index 5f13e0fb1..e6cc22e46 100644 --- a/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/wiring/SequencerConfigTest.scala +++ b/esw-ocs/esw-ocs-app/src/test/scala/esw/ocs/app/wiring/SequencerConfigTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.app.wiring import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Annotations.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Annotations.kt index 0c07ac0db..56a9d565b 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Annotations.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Annotations.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl @DslMarker diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/TypeAliases.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/TypeAliases.kt index 9ac6b0873..87654168c 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/TypeAliases.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/TypeAliases.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import kotlinx.coroutines.CoroutineScope diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Utils.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Utils.kt index ed3bfdb22..e95e1b175 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Utils.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/Utils.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import kotlinx.coroutines.async diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/blocking.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/blocking.kt index 06cd4a920..5558ef5c7 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/blocking.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/blocking.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import kotlinx.coroutines.CoroutineScope diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/CommandHandlerKt.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/CommandHandlerKt.kt index beaff6996..d1b80d66e 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/CommandHandlerKt.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/CommandHandlerKt.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.core import csw.params.commands.SequenceCommand diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/DslSupport.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/DslSupport.kt index dfc061f3e..313e29f52 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/DslSupport.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/DslSupport.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.core import esw.ocs.dsl.internal.ScriptWiring diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/Script.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/Script.kt index c6765c33b..45a202073 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/Script.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/Script.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.core import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/ScriptScopes.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/ScriptScopes.kt index f1f916b13..ea096ffb6 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/ScriptScopes.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/core/ScriptScopes.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.core import csw.params.commands.Observe diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/CommandFlag.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/CommandFlag.kt index 5fe11d8cd..a41964fbb 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/CommandFlag.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/CommandFlag.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import esw.ocs.dsl.params.Params diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/EventVariable.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/EventVariable.kt index ccc61f927..b0f629eba 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/EventVariable.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/EventVariable.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Fsm.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Fsm.kt index e72021825..1f77b4884 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Fsm.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Fsm.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import esw.ocs.dsl.ScriptDslMarker diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmException.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmException.kt index f5e5d9a1a..50d74172f 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmException.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmException.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics data class InvalidStateException(val name: String) : RuntimeException("Failed transition to invalid state: $name") \ No newline at end of file diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmSubscription.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmSubscription.kt index 2fa1cf4e8..d2c289b36 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmSubscription.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/FsmSubscription.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics data class FsmSubscription(private val unsubscribe: suspend () -> Unit) { diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Refreshable.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Refreshable.kt index 1c97d5bfa..5b1468803 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Refreshable.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/epics/Refreshable.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics interface Refreshable { diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/extensions.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/extensions.kt index 43a5e5ec9..6f8d890de 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/extensions.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/extensions.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import csw.params.commands.CommandResponse.* diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDsl.kt index 5790e6420..c1ca304ea 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.alarm.api.javadsl.IAlarmService diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CommandServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CommandServiceDsl.kt index ae932d93b..9703b3c2a 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CommandServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CommandServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.params.commands.* diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDsl.kt index e2cea4b27..844b73fa6 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDsl.kt index be45a9407..c95e89bfa 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.location.api.models.ComponentType diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDsl.kt index 6034055eb..85ac71882 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.database.DatabaseServiceFactory diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/EventServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/EventServiceDsl.kt index 6d66f0246..6eb14b39c 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/EventServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/EventServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LocationServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LocationServiceDsl.kt index 57ea7d3e9..8eda8838b 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LocationServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LocationServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.location.api.javadsl.ILocationService diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoggingDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoggingDsl.kt index 9a1e7c624..6f99c00dd 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoggingDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoggingDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.logging.api.javadsl.ILogger diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoopDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoopDsl.kt index 674879b30..7435e22ec 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoopDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/LoopDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import kotlinx.coroutines.* diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichComponent.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichComponent.kt index d3450dc0f..a732fd8e0 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichComponent.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichComponent.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichSequencer.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichSequencer.kt index 5eb3fdfcd..c6f12a2af 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichSequencer.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/RichSequencer.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.util.Timeout diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/TimeServiceDsl.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/TimeServiceDsl.kt index 950bd61fd..871ebe236 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/TimeServiceDsl.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/TimeServiceDsl.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.time.core.models.TAITime diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/EventSubscription.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/EventSubscription.kt index 578cd92ae..eddf6e2b4 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/EventSubscription.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/EventSubscription.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models data class EventSubscription(private val unsubscribe: suspend () -> Unit) { diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ExposureId.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ExposureId.kt index f25b8a8f9..4ed341475 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ExposureId.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ExposureId.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models import csw.params.core.models.* diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ObsId.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ObsId.kt index 7bad2f68c..1743be62d 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ObsId.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ObsId.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models import csw.params.core.models.ObsId diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ScriptError.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ScriptError.kt index 088b3e05f..4bf3b6c31 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ScriptError.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/ScriptError.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models import csw.params.commands.CommandResponse diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/Subsystem.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/Subsystem.kt index 66cfc5dc4..3510a62cc 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/Subsystem.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/Subsystem.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("unused") package esw.ocs.dsl.highlevel.models diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/alarm.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/alarm.kt index e9a2a8440..9a7add77a 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/alarm.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/alarm.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("unused") package esw.ocs.dsl.highlevel.models diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/location.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/location.kt index 4f3ac2e17..dd425a0d8 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/location.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/highlevel/models/location.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("unused") package esw.ocs.dsl.highlevel.models diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/internal/ScriptWiring.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/internal/ScriptWiring.kt index b4b84b7d5..e24415ac5 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/internal/ScriptWiring.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/internal/ScriptWiring.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.internal import esw.ocs.dsl.lowlevel.CswServices diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/ScalaFuture.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/ScalaFuture.kt index f95c4ea47..d7b2b91ba 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/ScalaFuture.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/ScalaFuture.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.jdk import scala.compat.java8.FutureConverters diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/SuspendToJavaConverter.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/SuspendToJavaConverter.kt index 8f3e376c0..871b5ea72 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/SuspendToJavaConverter.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/jdk/SuspendToJavaConverter.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.jdk import esw.ocs.dsl.SuspendableCallback diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/lowlevel/CswServices.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/lowlevel/CswServices.kt index f69d595e3..a206dc696 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/lowlevel/CswServices.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/lowlevel/CswServices.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.lowlevel import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/Keys.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/Keys.kt index eec182647..7c552933e 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/Keys.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/Keys.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.params import csw.params.core.generics.Key diff --git a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/params.kt b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/params.kt index 95b5fe0c1..99645c3ee 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/params.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/main/kotlin/esw/ocs/dsl/params/params.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.params import csw.params.core.generics.Key diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/BlockingTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/BlockingTest.kt index 35ec0e9cf..6c02eee5a 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/BlockingTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/BlockingTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import io.kotest.matchers.shouldBe diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/ExtensionsKtTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/ExtensionsKtTest.kt index 6e7843d07..880356151 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/ExtensionsKtTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/ExtensionsKtTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import csw.params.commands.CommandResponse.* diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/UtilsTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/UtilsTest.kt index da76a9eb3..4daf6b4b9 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/UtilsTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/UtilsTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import io.kotest.matchers.longs.shouldBeGreaterThanOrEqual diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/core/CommandHandlerKtTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/core/CommandHandlerKtTest.kt index 6a8ca964a..47a21a22f 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/core/CommandHandlerKtTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/core/CommandHandlerKtTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.core import csw.params.commands.Setup diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/CommandFlagTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/CommandFlagTest.kt index 50f4c0afa..b069693c7 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/CommandFlagTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/CommandFlagTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import esw.ocs.dsl.highlevel.CommandServiceDsl diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/EventVariableTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/EventVariableTest.kt index e56b9e7b1..962e092bd 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/EventVariableTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/EventVariableTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/FsmImplTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/FsmImplTest.kt index c7209e1c3..8d6f4f782 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/FsmImplTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/FsmImplTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import csw.logging.api.javadsl.ILogger diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/ParamVariableTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/ParamVariableTest.kt index 09276f1f5..c7aab5827 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/ParamVariableTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/epics/ParamVariableTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.epics import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDslTest.kt index 28e94058f..9be43ef08 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/AlarmServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.Done.done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CommandServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CommandServiceDslTest.kt index fb47100d3..d54e5be63 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CommandServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CommandServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.params.commands.CommandName diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDslTest.kt index 0db3ff4b0..457a6e58b 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/ConfigServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDslTest.kt index af0f48348..f921a0a55 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/CswHighLevelDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.actor.typed.ActorSystem diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDslTest.kt index 6bde0060e..cf041e5e0 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/DatabaseServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.database.DatabaseServiceFactory diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/EventServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/EventServiceDslTest.kt index 3bd293d9e..1b795d01c 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/EventServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/EventServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.Done.done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LocationServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LocationServiceDslTest.kt index d75712939..045318ab3 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LocationServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LocationServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.Done diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoggingDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoggingDslTest.kt index 5ff900bb3..c90c84ce1 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoggingDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoggingDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.logging.api.javadsl.ILogger diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoopDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoopDslTest.kt index 0ad7b0d49..41f810250 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoopDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/LoopDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import io.kotest.matchers.ints.shouldBeLessThan diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichComponentTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichComponentTest.kt index 795e92ba1..64328654e 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichComponentTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichComponentTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.actor.typed.ActorRef diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichSequencerTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichSequencerTest.kt index 9bd728d54..1346fbb87 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichSequencerTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/RichSequencerTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import akka.util.Timeout diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/TimeServiceDslTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/TimeServiceDslTest.kt index 00859ec0a..9913fc46c 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/TimeServiceDslTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/TimeServiceDslTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel import csw.time.core.models.UTCTime diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ExposureIdTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ExposureIdTest.kt index 7ded0981d..0d3fcf120 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ExposureIdTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ExposureIdTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models import csw.params.core.models.ExposureId diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ObsIdTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ObsIdTest.kt index 21d78daee..9bae73270 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ObsIdTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/highlevel/models/ObsIdTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.highlevel.models import csw.params.core.models.ObsId diff --git a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/params/KeysTest.kt b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/params/KeysTest.kt index ae954f8a2..3c27b1c42 100644 --- a/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/params/KeysTest.kt +++ b/esw-ocs/esw-ocs-dsl-kt/src/test/kotlin/esw/ocs/dsl/params/KeysTest.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.params import csw.params.core.models.ArrayData diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/Timeouts.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/Timeouts.scala index 2d5c9d358..96d189c4a 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/Timeouts.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/Timeouts.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl import scala.concurrent.duration.{DurationLong, FiniteDuration} diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/params/Params.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/params/Params.scala index 025650127..aa13b6157 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/params/Params.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/params/Params.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.params import csw.params.core.generics.{Parameter, ParameterSetType} diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/CommandHandler.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/CommandHandler.scala index 3becd3a8c..42c0ec757 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/CommandHandler.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/CommandHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import csw.params.commands.SequenceCommand diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptDsl.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptDsl.scala index 9884bd3aa..fdae13f4b 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptDsl.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptDsl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import akka.Done diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptState.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptState.scala index 69456d776..a434b0482 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptState.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/FsmScriptState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import esw.ocs.dsl.params.Params diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/ScriptDsl.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/ScriptDsl.scala index 18f7b6a3a..88024db5c 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/ScriptDsl.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/ScriptDsl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import akka.Done diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/StrandEc.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/StrandEc.scala index e7892772b..526b95260 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/StrandEc.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/StrandEc.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import esw.ocs.impl.blockhound.{BlockHoundWiring, ScriptEcIntegration} diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/ScriptInitialisationFailedException.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/ScriptInitialisationFailedException.scala index e8d1f999f..dfb5e9144 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/ScriptInitialisationFailedException.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/ScriptInitialisationFailedException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.exceptions class ScriptInitialisationFailedException(msg: String) extends RuntimeException(s"Script initialization failed with : $msg") diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/UnhandledCommandException.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/UnhandledCommandException.scala index 9049ef9d1..f171d3de3 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/UnhandledCommandException.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/exceptions/UnhandledCommandException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.exceptions import csw.params.commands.SequenceCommand diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/CommandUtil.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/CommandUtil.scala index f714d9e38..d5f8aae3a 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/CommandUtil.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/CommandUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import akka.actor.typed.{ActorRef, ActorSystem} diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionBuilder.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionBuilder.scala index 6cd07157c..d6198b4e8 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionBuilder.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionBuilder.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import scala.collection.mutable diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionHandlers.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionHandlers.scala index 7f1bf26c5..db25f8351 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionHandlers.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/FunctionHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import scala.collection.mutable diff --git a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/LockUnlockUtil.scala b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/LockUnlockUtil.scala index bd3cd291b..611cdeb6b 100644 --- a/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/LockUnlockUtil.scala +++ b/esw-ocs/esw-ocs-dsl/src/main/scala/esw/ocs/dsl/script/utils/LockUnlockUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import akka.actor.typed.scaladsl.AskPattern.Askable diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptDslTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptDslTest.scala index c67497372..73e748784 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptDslTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptDslTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import akka.Done diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptStateTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptStateTest.scala index 8238a75db..764f63357 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptStateTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/FsmScriptStateTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import csw.params.core.generics.{KeyType, Parameter} diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/ScriptDslTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/ScriptDslTest.scala index ec6e10ec5..01914ffa5 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/ScriptDslTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/ScriptDslTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import csw.logging.api.javadsl.ILogger diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/StrandEcTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/StrandEcTest.scala index 7d4c89563..e19f8ad25 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/StrandEcTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/StrandEcTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script import esw.ocs.impl.blockhound.{BlockHoundWiring, ScriptEcIntegration} diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/CommandUtilTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/CommandUtilTest.scala index 2a6f3f516..d2addf77b 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/CommandUtilTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/CommandUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionBuilderTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionBuilderTest.scala index 330a1fd93..1f1ad96c6 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionBuilderTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionBuilderTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import esw.testcommons.BaseTestSuite diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionHandlersTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionHandlersTest.scala index 91aa42baf..924231e5a 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionHandlersTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/FunctionHandlersTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import esw.testcommons.BaseTestSuite diff --git a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/LockUnlockUtilTest.scala b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/LockUnlockUtilTest.scala index 0d48f19e7..8e2fe1c1d 100644 --- a/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/LockUnlockUtilTest.scala +++ b/esw-ocs/esw-ocs-dsl/src/test/scala/esw/ocs/dsl/script/utils/LockUnlockUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.dsl.script.utils import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerPostHandler.scala b/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerPostHandler.scala index 12ed41df1..805edf0b5 100644 --- a/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerPostHandler.scala +++ b/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerPostHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.handler import akka.http.scaladsl.server.Directives.complete diff --git a/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerWebsocketHandler.scala b/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerWebsocketHandler.scala index 566158458..61b8f873e 100644 --- a/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerWebsocketHandler.scala +++ b/esw-ocs/esw-ocs-handler/src/main/scala/esw/ocs/handler/SequencerWebsocketHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.handler import esw.ocs.api.SequencerApi diff --git a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/TestHelper.scala b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/TestHelper.scala index c7109348f..d107462f0 100644 --- a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/TestHelper.scala +++ b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/TestHelper.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs import esw.ocs.api.protocol.SequencerRequest diff --git a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerAuthTest.scala b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerAuthTest.scala index 567c72bd2..5a5514c29 100644 --- a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerAuthTest.scala +++ b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerAuthTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.handler import akka.http.scaladsl.server.Route diff --git a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerTest.scala b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerTest.scala index a8e964a58..6090b826d 100644 --- a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerTest.scala +++ b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerPostHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.handler import akka.http.scaladsl.model.StatusCodes diff --git a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerWebsocketHandlerTest.scala b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerWebsocketHandlerTest.scala index 8c0715fd6..09ea4e16e 100644 --- a/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerWebsocketHandlerTest.scala +++ b/esw-ocs/esw-ocs-handler/src/test/scala/esw/ocs/handler/SequencerWebsocketHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.handler import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/BlockHoundWiring.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/BlockHoundWiring.scala index 62dbcdcda..1b84a2fc6 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/BlockHoundWiring.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/BlockHoundWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.blockhound import reactor.blockhound.BlockHound diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/ScriptEcIntegration.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/ScriptEcIntegration.scala index 025e5a540..6c044f36d 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/ScriptEcIntegration.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/blockhound/ScriptEcIntegration.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.blockhound import reactor.blockhound.BlockHound diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/Engine.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/Engine.scala index 1b1e388d7..af21cb581 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/Engine.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/Engine.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceComponentBehavior.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceComponentBehavior.scala index 869f45ec7..f9dda82ea 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceComponentBehavior.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceComponentBehavior.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.typed.scaladsl.{ActorContext, Behaviors} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceOperator.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceOperator.scala index 9d60c45df..dcca6bcc4 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceOperator.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequenceOperator.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.typed.scaladsl.AskPattern.* diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerBehavior.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerBehavior.scala index 072d2854f..be8a0a3d3 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerBehavior.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerBehavior.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerData.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerData.scala index 35c59d611..63cd9f27e 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerData.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/core/SequencerData.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.typed.{ActorRef, ActorSystem} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequenceComponentRegistration.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequenceComponentRegistration.scala index 5d8ac1310..c77d065de 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequenceComponentRegistration.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequenceComponentRegistration.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.internal import akka.actor.typed.{ActorRef, ActorSystem, SpawnProtocol} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequencerServer.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequencerServer.scala index 003f376a7..0aeb82bcb 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequencerServer.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/internal/SequencerServer.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.internal import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptApi.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptApi.scala index f732aa2c2..b47191a84 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptApi.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.script import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptContext.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptContext.scala index 4d34ee697..5c097cfe2 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptContext.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptContext.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.script import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoader.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoader.scala index 8fe4a5119..d89e4104c 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoader.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoader.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.script import esw.ocs.impl.script.ScriptLoadingException.{InvalidScriptException, ScriptNotFound} diff --git a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoadingException.scala b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoadingException.scala index 91ac19aae..dc4407e87 100644 --- a/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoadingException.scala +++ b/esw-ocs/esw-ocs-impl/src/main/scala/esw/ocs/impl/script/ScriptLoadingException.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.script import csw.prefix.models.Subsystem diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/blockhound/ScriptEcIntegrationTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/blockhound/ScriptEcIntegrationTest.scala index 4dab5d9e8..a8801d809 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/blockhound/ScriptEcIntegrationTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/blockhound/ScriptEcIntegrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.blockhound import java.util.concurrent.Executors diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/EngineTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/EngineTest.scala index c92250094..ee1f7b739 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/EngineTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/EngineTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceComponentBehaviorTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceComponentBehaviorTest.scala index 8376a7a87..913a26d3b 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceComponentBehaviorTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceComponentBehaviorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceOperatorTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceOperatorTest.scala index 4233e92c6..1b343f1db 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceOperatorTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequenceOperatorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerBehaviorTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerBehaviorTest.scala index 71a5b65b6..76b036573 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerBehaviorTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerBehaviorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerTestSetup.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerTestSetup.scala index b1df97708..b4a3e03a4 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerTestSetup.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/core/SequencerTestSetup.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.core import akka.Done diff --git a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/internal/SequenceComponentRegistrationTest.scala b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/internal/SequenceComponentRegistrationTest.scala index d9e6d1d81..8ad8c500a 100644 --- a/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/internal/SequenceComponentRegistrationTest.scala +++ b/esw-ocs/esw-ocs-impl/src/test/scala/esw/ocs/impl/internal/SequenceComponentRegistrationTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.impl.internal import java.net.URI diff --git a/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleIrisSequencerScript.kts b/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleIrisSequencerScript.kts index 02d83ff93..d7abddc7b 100644 --- a/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleIrisSequencerScript.kts +++ b/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleIrisSequencerScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.scripts import esw.ocs.dsl.core.script diff --git a/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleOcsSequencerScript.kts b/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleOcsSequencerScript.kts index c29784587..b38ebcebe 100644 --- a/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleOcsSequencerScript.kts +++ b/esw-performance-test/src/main/kotlin/esw/performance/scripts/SimpleOcsSequencerScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.scripts import esw.ocs.api.models.ObsMode diff --git a/esw-performance-test/src/main/scala/esw/performance/InfrastructureOverheadTest.scala b/esw-performance-test/src/main/scala/esw/performance/InfrastructureOverheadTest.scala index 28f049a8a..ee5e4a65d 100644 --- a/esw-performance-test/src/main/scala/esw/performance/InfrastructureOverheadTest.scala +++ b/esw-performance-test/src/main/scala/esw/performance/InfrastructureOverheadTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-performance-test/src/main/scala/esw/performance/SequenceManagerLatencyTest.scala b/esw-performance-test/src/main/scala/esw/performance/SequenceManagerLatencyTest.scala index 2c6975327..6290d238b 100644 --- a/esw-performance-test/src/main/scala/esw/performance/SequenceManagerLatencyTest.scala +++ b/esw-performance-test/src/main/scala/esw/performance/SequenceManagerLatencyTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-performance-test/src/main/scala/esw/performance/SequenceManagerReliabilityTest.scala b/esw-performance-test/src/main/scala/esw/performance/SequenceManagerReliabilityTest.scala index 7f575c2cf..3409606c8 100644 --- a/esw-performance-test/src/main/scala/esw/performance/SequenceManagerReliabilityTest.scala +++ b/esw-performance-test/src/main/scala/esw/performance/SequenceManagerReliabilityTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-performance-test/src/main/scala/esw/performance/components/SampleContainerCmdApp.scala b/esw-performance-test/src/main/scala/esw/performance/components/SampleContainerCmdApp.scala index 53fa0a43c..2a6d54573 100644 --- a/esw-performance-test/src/main/scala/esw/performance/components/SampleContainerCmdApp.scala +++ b/esw-performance-test/src/main/scala/esw/performance/components/SampleContainerCmdApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.components import csw.framework.deploy.containercmd.ContainerCmd diff --git a/esw-performance-test/src/main/scala/esw/performance/components/SimpleAssemblyHandlers.scala b/esw-performance-test/src/main/scala/esw/performance/components/SimpleAssemblyHandlers.scala index 187484450..5874aae30 100644 --- a/esw-performance-test/src/main/scala/esw/performance/components/SimpleAssemblyHandlers.scala +++ b/esw-performance-test/src/main/scala/esw/performance/components/SimpleAssemblyHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.components import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-performance-test/src/main/scala/esw/performance/components/SimpleHCDHandlers.scala b/esw-performance-test/src/main/scala/esw/performance/components/SimpleHCDHandlers.scala index 3b2224758..873de22a0 100644 --- a/esw-performance-test/src/main/scala/esw/performance/components/SimpleHCDHandlers.scala +++ b/esw-performance-test/src/main/scala/esw/performance/components/SimpleHCDHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.components import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-performance-test/src/main/scala/esw/performance/constants/InfraOverheadConstants.scala b/esw-performance-test/src/main/scala/esw/performance/constants/InfraOverheadConstants.scala index 4012f4852..255a21228 100644 --- a/esw-performance-test/src/main/scala/esw/performance/constants/InfraOverheadConstants.scala +++ b/esw-performance-test/src/main/scala/esw/performance/constants/InfraOverheadConstants.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.constants object InfraOverheadConstants { diff --git a/esw-performance-test/src/main/scala/esw/performance/constants/ObsModes.scala b/esw-performance-test/src/main/scala/esw/performance/constants/ObsModes.scala index abb9f3b17..bae642961 100644 --- a/esw-performance-test/src/main/scala/esw/performance/constants/ObsModes.scala +++ b/esw-performance-test/src/main/scala/esw/performance/constants/ObsModes.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.constants import esw.ocs.api.models.ObsMode diff --git a/esw-performance-test/src/main/scala/esw/performance/constants/SMLatencyConstants.scala b/esw-performance-test/src/main/scala/esw/performance/constants/SMLatencyConstants.scala index 015dac1a8..72bd8dc81 100644 --- a/esw-performance-test/src/main/scala/esw/performance/constants/SMLatencyConstants.scala +++ b/esw-performance-test/src/main/scala/esw/performance/constants/SMLatencyConstants.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.constants import csw.prefix.models.Prefix diff --git a/esw-performance-test/src/main/scala/esw/performance/constants/SMReliabilityConstants.scala b/esw-performance-test/src/main/scala/esw/performance/constants/SMReliabilityConstants.scala index 1874b7ee3..52124f367 100644 --- a/esw-performance-test/src/main/scala/esw/performance/constants/SMReliabilityConstants.scala +++ b/esw-performance-test/src/main/scala/esw/performance/constants/SMReliabilityConstants.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.constants import csw.prefix.models.Prefix diff --git a/esw-performance-test/src/main/scala/esw/performance/utils/PerfUtils.scala b/esw-performance-test/src/main/scala/esw/performance/utils/PerfUtils.scala index cb1719d11..d87fc02f3 100644 --- a/esw-performance-test/src/main/scala/esw/performance/utils/PerfUtils.scala +++ b/esw-performance-test/src/main/scala/esw/performance/utils/PerfUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.utils import java.io.{File, FileOutputStream, PrintStream} diff --git a/esw-performance-test/src/main/scala/esw/performance/utils/Timing.scala b/esw-performance-test/src/main/scala/esw/performance/utils/Timing.scala index 70f74946f..6032595ed 100644 --- a/esw-performance-test/src/main/scala/esw/performance/utils/Timing.scala +++ b/esw-performance-test/src/main/scala/esw/performance/utils/Timing.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.performance.utils object Timing { diff --git a/esw-services/src/main/scala/esw/services/EswServicesApp.scala b/esw-services/src/main/scala/esw/services/EswServicesApp.scala index 62869d33c..02d4d015c 100644 --- a/esw-services/src/main/scala/esw/services/EswServicesApp.scala +++ b/esw-services/src/main/scala/esw/services/EswServicesApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services import akka.actor.CoordinatedShutdown diff --git a/esw-services/src/main/scala/esw/services/Wiring.scala b/esw-services/src/main/scala/esw/services/Wiring.scala index 7ec2d83e8..63e562138 100644 --- a/esw-services/src/main/scala/esw/services/Wiring.scala +++ b/esw-services/src/main/scala/esw/services/Wiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-services/src/main/scala/esw/services/apps/Agent.scala b/esw-services/src/main/scala/esw/services/apps/Agent.scala index d360c3a3c..7ad082a86 100644 --- a/esw-services/src/main/scala/esw/services/apps/Agent.scala +++ b/esw-services/src/main/scala/esw/services/apps/Agent.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.apps import akka.actor.CoordinatedShutdown.ActorSystemTerminateReason diff --git a/esw-services/src/main/scala/esw/services/apps/AgentService.scala b/esw-services/src/main/scala/esw/services/apps/AgentService.scala index c574902d5..41b3cafcf 100644 --- a/esw-services/src/main/scala/esw/services/apps/AgentService.scala +++ b/esw-services/src/main/scala/esw/services/apps/AgentService.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.apps import esw.agent.service.app.{AgentServiceApp, AgentServiceWiring} diff --git a/esw-services/src/main/scala/esw/services/apps/Gateway.scala b/esw-services/src/main/scala/esw/services/apps/Gateway.scala index 5804a5184..440bb91ce 100644 --- a/esw-services/src/main/scala/esw/services/apps/Gateway.scala +++ b/esw-services/src/main/scala/esw/services/apps/Gateway.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.apps import akka.actor.CoordinatedShutdown.ActorSystemTerminateReason diff --git a/esw-services/src/main/scala/esw/services/apps/SequenceManager.scala b/esw-services/src/main/scala/esw/services/apps/SequenceManager.scala index c04c1dd6a..4b5934284 100644 --- a/esw-services/src/main/scala/esw/services/apps/SequenceManager.scala +++ b/esw-services/src/main/scala/esw/services/apps/SequenceManager.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.apps import akka.actor.typed.ActorSystem diff --git a/esw-services/src/main/scala/esw/services/cli/Command.scala b/esw-services/src/main/scala/esw/services/cli/Command.scala index 7ce6cd9c2..0605d2624 100644 --- a/esw-services/src/main/scala/esw/services/cli/Command.scala +++ b/esw-services/src/main/scala/esw/services/cli/Command.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.cli import java.nio.file.Path diff --git a/esw-services/src/main/scala/esw/services/internal/ManagedService.scala b/esw-services/src/main/scala/esw/services/internal/ManagedService.scala index 25fb9ac9b..a54e3a2fc 100644 --- a/esw-services/src/main/scala/esw/services/internal/ManagedService.scala +++ b/esw-services/src/main/scala/esw/services/internal/ManagedService.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.services.internal import csw.services.utils.ColoredConsole.{GREEN, RED} diff --git a/esw-shell/src/main/scala/csw/framework/CswWiring.scala b/esw-shell/src/main/scala/csw/framework/CswWiring.scala index abdb488e8..a64595659 100644 --- a/esw-shell/src/main/scala/csw/framework/CswWiring.scala +++ b/esw-shell/src/main/scala/csw/framework/CswWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package csw.framework import csw.command.client.models.framework.{ComponentInfo, LocationServiceUsage} diff --git a/esw-shell/src/main/scala/esw/shell/EswWiring.scala b/esw-shell/src/main/scala/esw/shell/EswWiring.scala index 44e62e4bc..9fecf8452 100644 --- a/esw-shell/src/main/scala/esw/shell/EswWiring.scala +++ b/esw-shell/src/main/scala/esw/shell/EswWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-shell/src/main/scala/esw/shell/Factories.scala b/esw-shell/src/main/scala/esw/shell/Factories.scala index b8ce213b5..745fcf163 100644 --- a/esw-shell/src/main/scala/esw/shell/Factories.scala +++ b/esw-shell/src/main/scala/esw/shell/Factories.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell import akka.actor.typed.scaladsl.ActorContext diff --git a/esw-shell/src/main/scala/esw/shell/Main.scala b/esw-shell/src/main/scala/esw/shell/Main.scala index 7dcf1e360..dabef6c04 100644 --- a/esw-shell/src/main/scala/esw/shell/Main.scala +++ b/esw-shell/src/main/scala/esw/shell/Main.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell import scala.sys.exit diff --git a/esw-shell/src/main/scala/esw/shell/component/SimulatedComponentHandlers.scala b/esw-shell/src/main/scala/esw/shell/component/SimulatedComponentHandlers.scala index 82048dbec..52f47c986 100644 --- a/esw-shell/src/main/scala/esw/shell/component/SimulatedComponentHandlers.scala +++ b/esw-shell/src/main/scala/esw/shell/component/SimulatedComponentHandlers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell.component import akka.actor.typed.scaladsl.{ActorContext, Behaviors} diff --git a/esw-shell/src/main/scala/esw/shell/component/SimulatedContainerCmdApp.scala b/esw-shell/src/main/scala/esw/shell/component/SimulatedContainerCmdApp.scala index 965e26fb7..e33e4b6e6 100644 --- a/esw-shell/src/main/scala/esw/shell/component/SimulatedContainerCmdApp.scala +++ b/esw-shell/src/main/scala/esw/shell/component/SimulatedContainerCmdApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell.component import csw.framework.deploy.containercmd.ContainerCmd diff --git a/esw-shell/src/main/scala/esw/shell/service/Container.scala b/esw-shell/src/main/scala/esw/shell/service/Container.scala index 4e78d2020..d9ffb4517 100644 --- a/esw-shell/src/main/scala/esw/shell/service/Container.scala +++ b/esw-shell/src/main/scala/esw/shell/service/Container.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell.service import csw.location.api.models.ComponentType diff --git a/esw-shell/src/main/scala/esw/shell/service/SequenceManager.scala b/esw-shell/src/main/scala/esw/shell/service/SequenceManager.scala index 8bb9e22cd..6670255a7 100644 --- a/esw-shell/src/main/scala/esw/shell/service/SequenceManager.scala +++ b/esw-shell/src/main/scala/esw/shell/service/SequenceManager.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell.service import java.nio.file.Paths diff --git a/esw-shell/src/main/scala/esw/shell/utils/Timeouts.scala b/esw-shell/src/main/scala/esw/shell/utils/Timeouts.scala index c11df9d99..9c99d7d18 100644 --- a/esw-shell/src/main/scala/esw/shell/utils/Timeouts.scala +++ b/esw-shell/src/main/scala/esw/shell/utils/Timeouts.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.shell.utils import akka.util.Timeout diff --git a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/SmAkkaSerializer.scala b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/SmAkkaSerializer.scala index a6612f8b8..d644a821a 100644 --- a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/SmAkkaSerializer.scala +++ b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/SmAkkaSerializer.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api import akka.actor.ExtendedActorSystem diff --git a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerApiFactory.scala b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerApiFactory.scala index 1a81d1836..25fe95fea 100644 --- a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerApiFactory.scala +++ b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerApiFactory.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.actor.client import akka.actor.typed.ActorSystem diff --git a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerImpl.scala b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerImpl.scala index b2c4343b8..75f4146a7 100644 --- a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerImpl.scala +++ b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/client/SequenceManagerImpl.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.actor.client import akka.actor.typed.scaladsl.AskPattern.* diff --git a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/codecs/SequenceManagerMsgCodecs.scala b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/codecs/SequenceManagerMsgCodecs.scala index eac650093..9df418e7b 100644 --- a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/codecs/SequenceManagerMsgCodecs.scala +++ b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/codecs/SequenceManagerMsgCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.actor.codecs import csw.command.client.cbor.MessageCodecs diff --git a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/messages/SequenceManagerMsg.scala b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/messages/SequenceManagerMsg.scala index eca999779..83be5cfe4 100644 --- a/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/messages/SequenceManagerMsg.scala +++ b/esw-sm/esw-sm-api/jvm/src/main/scala/esw/sm/api/actor/messages/SequenceManagerMsg.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.actor.messages import akka.actor.typed.ActorRef diff --git a/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/actor/client/SequenceManagerImplTest.scala b/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/actor/client/SequenceManagerImplTest.scala index 461aa0aa9..77d69213a 100644 --- a/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/actor/client/SequenceManagerImplTest.scala +++ b/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/actor/client/SequenceManagerImplTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.actor.client import akka.actor.typed.{ActorRef, ActorSystem, SpawnProtocol} diff --git a/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/client/SequenceManagerClientTest.scala b/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/client/SequenceManagerClientTest.scala index e06c92856..b53cc9df5 100644 --- a/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/client/SequenceManagerClientTest.scala +++ b/esw-sm/esw-sm-api/jvm/src/test/scala/esw/sm/api/client/SequenceManagerClientTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.client import csw.prefix.models.Prefix diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/SequenceManagerApi.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/SequenceManagerApi.scala index c8f07ed58..ab7e5a9a2 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/SequenceManagerApi.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/SequenceManagerApi.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api import csw.prefix.models.{Prefix, Subsystem} diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/client/SequenceManagerClient.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/client/SequenceManagerClient.scala index 8c15bac6f..29030c3c8 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/client/SequenceManagerClient.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/client/SequenceManagerClient.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.client import csw.prefix.models.{Prefix, Subsystem} diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerCodecs.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerCodecs.scala index 3336a1c09..cf4444feb 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerCodecs.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.codecs import csw.location.api.codec.LocationCodecs diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerServiceCodecs.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerServiceCodecs.scala index 4d4aaff02..24a9138c2 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerServiceCodecs.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SequenceManagerServiceCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.codecs import esw.sm.api.protocol.SequenceManagerRequest diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SmAkkaSerializable.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SmAkkaSerializable.scala index ab62c3df8..4ae261a7e 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SmAkkaSerializable.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/codecs/SmAkkaSerializable.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.codecs trait SmAkkaSerializable extends Product with Serializable diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ObsModeDetails.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ObsModeDetails.scala index d24a1e414..3fc002cf7 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ObsModeDetails.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ObsModeDetails.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import esw.ocs.api.models.ObsMode diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ProvisionConfig.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ProvisionConfig.scala index e78f045e9..d0f7097ab 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ProvisionConfig.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ProvisionConfig.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import csw.prefix.models.Prefix diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ResourceStatus.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ResourceStatus.scala index 2a66de2be..32f7b8cd4 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ResourceStatus.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/ResourceStatus.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models sealed trait ResourceStatus diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Resources.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Resources.scala index 81311f1da..430ffe5dd 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Resources.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Resources.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import csw.prefix.models.Subsystem diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/SequenceManagerState.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/SequenceManagerState.scala index fba7a9595..6da742179 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/SequenceManagerState.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/SequenceManagerState.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import enumeratum.{Enum, EnumEntry} diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Sequencers.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Sequencers.scala index 5242c7fd7..d5f075e71 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Sequencers.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/Sequencers.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import csw.prefix.models.Prefix diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/VariationInfos.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/VariationInfos.scala index 6c3928d6a..91f0d0c59 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/VariationInfos.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/models/VariationInfos.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import esw.ocs.api.models.VariationInfo diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerRequest.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerRequest.scala index 8262e9773..45aee615b 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerRequest.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerRequest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.protocol import csw.prefix.models.{Prefix, Subsystem} diff --git a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerResponses.scala b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerResponses.scala index 50a270475..7c14dff40 100644 --- a/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerResponses.scala +++ b/esw-sm/esw-sm-api/shared/src/main/scala/esw/sm/api/protocol/SequenceManagerResponses.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.protocol import csw.location.api.models.ComponentId diff --git a/esw-sm/esw-sm-api/shared/src/test/scala/esw/sm/api/models/ProvisionConfigTest.scala b/esw-sm/esw-sm-api/shared/src/test/scala/esw/sm/api/models/ProvisionConfigTest.scala index 3f0077b6a..a0d72669c 100644 --- a/esw-sm/esw-sm-api/shared/src/test/scala/esw/sm/api/models/ProvisionConfigTest.scala +++ b/esw-sm/esw-sm-api/shared/src/test/scala/esw/sm/api/models/ProvisionConfigTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.api.models import csw.prefix.models.Prefix diff --git a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerApp.scala b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerApp.scala index 175318b23..2c2f7b957 100644 --- a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerApp.scala +++ b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerApp.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerAppCommand.scala b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerAppCommand.scala index 4d9564372..39e4d39e6 100644 --- a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerAppCommand.scala +++ b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerAppCommand.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import caseapp.core.Error diff --git a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerWiring.scala b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerWiring.scala index d893d2d81..88185a9e4 100644 --- a/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerWiring.scala +++ b/esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerWiring.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.app import akka.Done diff --git a/esw-sm/esw-sm-handler/src/main/scala/esw/sm/handler/SequenceManagerRequestHandler.scala b/esw-sm/esw-sm-handler/src/main/scala/esw/sm/handler/SequenceManagerRequestHandler.scala index 6bba2ee99..7bbc62876 100644 --- a/esw-sm/esw-sm-handler/src/main/scala/esw/sm/handler/SequenceManagerRequestHandler.scala +++ b/esw-sm/esw-sm-handler/src/main/scala/esw/sm/handler/SequenceManagerRequestHandler.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.handler import akka.http.scaladsl.server.Directives.complete diff --git a/esw-sm/esw-sm-handler/src/test/scala/esw.sm.handler/SequenceManagerRequestHandlerTest.scala b/esw-sm/esw-sm-handler/src/test/scala/esw.sm.handler/SequenceManagerRequestHandlerTest.scala index 4b204b022..37727f112 100644 --- a/esw-sm/esw-sm-handler/src/test/scala/esw.sm.handler/SequenceManagerRequestHandlerTest.scala +++ b/esw-sm/esw-sm-handler/src/test/scala/esw.sm.handler/SequenceManagerRequestHandlerTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.handler import akka.http.scaladsl.server.directives.BasicDirectives diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/ConfigCodecs.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/ConfigCodecs.scala index 163dce961..86e0d3b1a 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/ConfigCodecs.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/ConfigCodecs.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.config import csw.prefix.codecs.CommonCodecs diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfig.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfig.scala index 7e6c0628e..76691ff9f 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfig.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfig.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.config import esw.ocs.api.models.ObsMode diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfigParser.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfigParser.scala index 5cbce6ef5..6bd5524b1 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfigParser.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/config/SequenceManagerConfigParser.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.config import com.typesafe.config.ConfigRenderOptions diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/core/SequenceManagerBehavior.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/core/SequenceManagerBehavior.scala index 5db108734..a1eaf5552 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/core/SequenceManagerBehavior.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/core/SequenceManagerBehavior.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.core import akka.actor.typed.scaladsl.Behaviors diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentAllocator.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentAllocator.scala index 0e7543ecd..835ecc393 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentAllocator.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentAllocator.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import csw.location.api.models.AkkaLocation diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentUtil.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentUtil.scala index 8d575c663..5c4b78c48 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentUtil.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/AgentUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.ActorSystem diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentAllocator.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentAllocator.scala index 199b2d1bb..8e01663a3 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentAllocator.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentAllocator.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import csw.location.api.models.AkkaLocation diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentUtil.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentUtil.scala index b06d533b2..43b1134b9 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentUtil.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequenceComponentUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.ActorSystem diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequencerUtil.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequencerUtil.scala index 52ed1c7ea..d324d2901 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequencerUtil.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/SequencerUtil.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.ActorSystem diff --git a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/Types.scala b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/Types.scala index b17a1f001..6bac3cce3 100644 --- a/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/Types.scala +++ b/esw-sm/esw-sm-impl/src/main/scala/esw/sm/impl/utils/Types.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import csw.location.api.models.AkkaLocation diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/config/SequenceManagerConfigTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/config/SequenceManagerConfigTest.scala index 64cdbf155..a2dea4fd3 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/config/SequenceManagerConfigTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/config/SequenceManagerConfigTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.config import csw.prefix.models.Subsystem.* diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerBehaviorTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerBehaviorTest.scala index d7f6da134..68e52249e 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerBehaviorTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerBehaviorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.core import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerConfigParserTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerConfigParserTest.scala index a7c1fff70..9152b6f3c 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerConfigParserTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/core/SequenceManagerConfigParserTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.core import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentAllocatorTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentAllocatorTest.scala index 4702f313b..08d59be44 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentAllocatorTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentAllocatorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import csw.location.api.models.ComponentType.Machine diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentUtilTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentUtilTest.scala index cc572bd69..87748162c 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentUtilTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/AgentUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentAllocatorTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentAllocatorTest.scala index fcd5c2442..292418264 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentAllocatorTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentAllocatorTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import csw.location.api.models.ComponentType.SequenceComponent diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentUtilTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentUtilTest.scala index 9a63c19d7..d5b258e6e 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentUtilTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequenceComponentUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequencerUtilTest.scala b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequencerUtilTest.scala index fd6a55eec..eb2791157 100644 --- a/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequencerUtilTest.scala +++ b/esw-sm/esw-sm-impl/src/test/scala/esw/sm/impl/utils/SequencerUtilTest.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.sm.impl.utils import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-test-commons/src/main/scala/esw/testcommons/ActorTestSuit.scala b/esw-test-commons/src/main/scala/esw/testcommons/ActorTestSuit.scala index 7c456eacd..a3fc28466 100644 --- a/esw-test-commons/src/main/scala/esw/testcommons/ActorTestSuit.scala +++ b/esw-test-commons/src/main/scala/esw/testcommons/ActorTestSuit.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.testcommons import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-test-commons/src/main/scala/esw/testcommons/AskProxyTestKit.scala b/esw-test-commons/src/main/scala/esw/testcommons/AskProxyTestKit.scala index d63a17e31..eeb7bbf77 100644 --- a/esw-test-commons/src/main/scala/esw/testcommons/AskProxyTestKit.scala +++ b/esw-test-commons/src/main/scala/esw/testcommons/AskProxyTestKit.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.testcommons import java.util.UUID diff --git a/esw-test-commons/src/main/scala/esw/testcommons/BaseTestSuite.scala b/esw-test-commons/src/main/scala/esw/testcommons/BaseTestSuite.scala index 78ac3a3cb..5460f6d65 100644 --- a/esw-test-commons/src/main/scala/esw/testcommons/BaseTestSuite.scala +++ b/esw-test-commons/src/main/scala/esw/testcommons/BaseTestSuite.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.testcommons import akka.actor.typed.ActorSystem diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/EswTestKit.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/EswTestKit.scala index 1946909f9..7bd11cc02 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/EswTestKit.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/EswTestKit.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit import akka.actor.testkit.typed.scaladsl.TestProbe diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/Service.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/Service.scala index 6f1f783c2..b1d93a7f9 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/Service.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/Service.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit import csw.testkit.scaladsl.CSWService diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentServiceUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentServiceUtils.scala index 2f7362691..8b400b5cf 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentServiceUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentServiceUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentUtils.scala index d16ff9241..57c708fc9 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/AgentUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.CoordinatedShutdown.UnknownReason diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/BaseTestSuite.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/BaseTestSuite.scala index baadaf851..c2456712e 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/BaseTestSuite.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/BaseTestSuite.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.typed.ActorSystem diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/GatewayUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/GatewayUtils.scala index 5ed869877..21089f397 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/GatewayUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/GatewayUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import java.nio.file diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/KeycloakUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/KeycloakUtils.scala index 9641bcb1c..6c4308334 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/KeycloakUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/KeycloakUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/LocationUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/LocationUtils.scala index d0fc1793d..0e991872b 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/LocationUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/LocationUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.typed.{ActorRef, ActorSystem, SpawnProtocol} diff --git a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/SequencerUtils.scala b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/SequencerUtils.scala index a5806ac7a..43157a5de 100644 --- a/esw-testkit/src/main/scala/esw/ocs/testkit/utils/SequencerUtils.scala +++ b/esw-testkit/src/main/scala/esw/ocs/testkit/utils/SequencerUtils.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.testkit.utils import akka.actor.typed.ActorRef diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/KeysExample.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/KeysExample.kt index 147b40d59..50cbc1ac3 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/KeysExample.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/KeysExample.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples import csw.params.events.EventName diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/SharedConstants.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/SharedConstants.kt index b237c9717..866911a8e 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/SharedConstants.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/SharedConstants.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples import csw.params.events.EventName diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/AoeswSync.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/AoeswSync.kts index 4ec77d6d8..6e503e772 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/AoeswSync.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/AoeswSync.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.aoesw import csw.params.commands.CommandResponse diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/LGSAcquisition.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/LGSAcquisition.kts index a5f831dca..78d5a32ad 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/LGSAcquisition.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/aoesw/LGSAcquisition.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.aoesw import csw.params.commands.CommandResponse.Completed diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ErrorHandlerExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ErrorHandlerExample.kts index e63bf7f47..3941eeb33 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ErrorHandlerExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ErrorHandlerExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.dsl import csw.params.commands.CommandResponse.* diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ExceptionDemoScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ExceptionDemoScript.kts index 72401e699..c9dd718f7 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ExceptionDemoScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/dsl/ExceptionDemoScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.dsl import csw.alarm.api.exceptions.KeyNotFoundException diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/CommandFlagFsmTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/CommandFlagFsmTestScript.kts index eed06e104..b16017ab2 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/CommandFlagFsmTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/CommandFlagFsmTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.epics import csw.params.events.SystemEvent diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/FsmTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/FsmTestScript.kts index bacf69eb6..19de08499 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/FsmTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/FsmTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.epics import csw.params.events.SystemEvent diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/Temperature.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/Temperature.kts index 72b089c1a..b9e06784f 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/Temperature.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/Temperature.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.epics import csw.params.events.SystemEvent diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/TriggerFsm.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/TriggerFsm.kts index 3a91a741a..07d0a9dca 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/TriggerFsm.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/TriggerFsm.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.epics import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/sample/BecomeFsmScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/sample/BecomeFsmScript.kts index 8ecb2dd93..5241525c1 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/sample/BecomeFsmScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/epics/sample/BecomeFsmScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.epics.sample import csw.params.core.generics.Parameter diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/AlarmServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/AlarmServiceDslExample.kts index e4e3b175a..e201a9802 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/AlarmServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/AlarmServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/CommandServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/CommandServiceDslExample.kts index f1673ca4e..6e6f55d4d 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/CommandServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/CommandServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ConfigServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ConfigServiceDslExample.kts index 7210562b8..e942bfae9 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ConfigServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ConfigServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DatabaseServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DatabaseServiceDslExample.kts index b260b169d..72682eff0 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DatabaseServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DatabaseServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("unused", "UNUSED_ANONYMOUS_PARAMETER", "UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DefineScriptExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DefineScriptExample.kts index bd2b523c9..d41dcdba6 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DefineScriptExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/DefineScriptExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE", "UNUSED_ANONYMOUS_PARAMETER", "UNUSED_PARAMETER", "ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/EventServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/EventServiceDslExample.kts index c893b5486..ee9081402 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/EventServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/EventServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/Fsm.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/Fsm.kts index 68a287a36..d055c3aba 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/Fsm.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/Fsm.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/FsmExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/FsmExample.kts index 82d31e711..838ba32c9 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/FsmExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/FsmExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/HandlersExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/HandlersExample.kts index b8c058aad..3e6f53d08 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/HandlersExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/HandlersExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE", "DIVISION_BY_ZERO", "UNUSED_ANONYMOUS_PARAMETER") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LocationServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LocationServiceDslExample.kts index 4bd7ff7cd..1fe14efb8 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LocationServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LocationServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoggingServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoggingServiceDslExample.kts index 986034606..a0fdd4857 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoggingServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoggingServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoopExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoopExample.kts index 791ac1188..c89edfbdd 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoopExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/LoopExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/OtherDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/OtherDslExample.kts index c94268f14..b0b98c0c1 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/OtherDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/OtherDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ParamsExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ParamsExample.kts index c8eb93e8e..3e4a652f3 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ParamsExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/ParamsExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SequencerCommandServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SequencerCommandServiceDslExample.kts index e8515343d..ddce76385 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SequencerCommandServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SequencerCommandServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SubmitResponseExtensions.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SubmitResponseExtensions.kts index 43e2a0579..56b3959d7 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SubmitResponseExtensions.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/SubmitResponseExtensions.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/TimeServiceDslExample.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/TimeServiceDslExample.kts index 91ff360fd..0cd45553d 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/TimeServiceDslExample.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/TimeServiceDslExample.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/ComputeIntensiveScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/ComputeIntensiveScript.kts index c82ed1f3a..6e7de074d 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/ComputeIntensiveScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/ComputeIntensiveScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox.blocking diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/IOBoundScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/IOBoundScript.kts index 3be40ac42..adacb2072 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/IOBoundScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/IOBoundScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + @file:Suppress("UNUSED_VARIABLE") package esw.ocs.scripts.examples.paradox.blocking diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/blocking.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/blocking.kt index 815c2c126..097aa722e 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/blocking.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/paradox/blocking/blocking.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.paradox.blocking import esw.ocs.dsl.blockingCpu diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/EventVarScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/EventVarScript.kts index 02881c280..9f7f36db3 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/EventVarScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/EventVarScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionHandler.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionHandler.kt index 71c12e2c5..417421c44 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionHandler.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionHandler.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.reusableScript diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript.kts index 0ec854bd3..9fb09c0ed 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript2.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript2.kts index bec173f5f..54b5c3314 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript2.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript2.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import csw.params.commands.CommandResponse.SubmitResponse diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript3.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript3.kts index 9bec529a6..09e36d97e 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript3.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ExceptionTestScript3.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/Healthcheck.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/Healthcheck.kts index bf378b981..f09588aea 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/Healthcheck.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/Healthcheck.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/InitialCommandHandler.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/InitialCommandHandler.kt index 30ffc6c13..d853f5fb3 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/InitialCommandHandler.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/InitialCommandHandler.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.reusableScript diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LocationServiceDslTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LocationServiceDslTestScript.kts index be5ba21dd..ac54fa7ab 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LocationServiceDslTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LocationServiceDslTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import csw.location.api.models.ComponentId diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LockUnlockScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LockUnlockScript.kts index a5d838374..7fd2b74e2 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LockUnlockScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/LockUnlockScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import csw.command.client.models.framework.LockingResponse diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ObserveEventExampleScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ObserveEventExampleScript.kts index a070fecbb..8941da8a3 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ObserveEventExampleScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/ObserveEventExampleScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineFlag.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineFlag.kts index 874fadc7c..beb57dc88 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineFlag.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineFlag.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineOfflineHandlers.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineOfflineHandlers.kt index 47322a309..062e048ec 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineOfflineHandlers.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OnlineOfflineHandlers.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OperationsAndDiagModeHandlers.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OperationsAndDiagModeHandlers.kt index 4b9c473b0..47319c396 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OperationsAndDiagModeHandlers.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/OperationsAndDiagModeHandlers.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript.kts index c14a6355d..91bf7a899 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import com.typesafe.config.ConfigFactory diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript2.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript2.kts index 27bfe2982..5c23bc5da 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript2.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript2.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript3.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript3.kts index 225804ba4..0a1956f27 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript3.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript3.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.api.models.ObsMode diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript4.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript4.kts index 208fe4018..501ae53e6 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript4.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript4.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript5.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript5.kts index e7afa330c..4f31cce53 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript5.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/TestScript5.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InitialisationExceptionTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InitialisationExceptionTestScript.kts index e4c204e70..a12fc87c0 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InitialisationExceptionTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InitialisationExceptionTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.scriptLoader import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InvalidTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InvalidTestScript.kts index 7882bc853..8f4274a12 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InvalidTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/InvalidTestScript.kts @@ -1,2 +1,7 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.scriptLoader diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/ValidTestScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/ValidTestScript.kts index d482f81c8..bea633204 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/ValidTestScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/scriptLoader/ValidTestScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.scriptLoader import esw.ocs.dsl.core.script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/CounterIncrementer.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/CounterIncrementer.kt index 7fa2d13b0..5532337a0 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/CounterIncrementer.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/CounterIncrementer.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.sharedState import esw.ocs.dsl.core.reusableScript diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/GlobalState.kt b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/GlobalState.kt index 9c20b8170..0ade72e8f 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/GlobalState.kt +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/GlobalState.kt @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.sharedState // ESW-185 - this mutable variable shared between main ThreadSafeScript and CounterIncrementer script diff --git a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/ThreadSafeScript.kts b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/ThreadSafeScript.kts index 72dd91a87..868f9f493 100644 --- a/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/ThreadSafeScript.kts +++ b/examples/src/main/kotlin/esw/ocs/scripts/examples/testData/sharedState/ThreadSafeScript.kts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.ocs.scripts.examples.testData.sharedState import esw.ocs.dsl.core.script diff --git a/examples/src/main/scala/esw/examples/SequencerAPIExample.scala b/examples/src/main/scala/esw/examples/SequencerAPIExample.scala index 26f7c0aa5..b40b6af35 100644 --- a/examples/src/main/scala/esw/examples/SequencerAPIExample.scala +++ b/examples/src/main/scala/esw/examples/SequencerAPIExample.scala @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2022 Thirty Meter Telescope International Observatory + * SPDX-License-Identifier: Apache-2.0 + */ + package esw.examples import akka.actor.typed.{ActorSystem, SpawnProtocol} diff --git a/project/AutoMultiJvm.scala b/project/AutoMultiJvm.scala index baa0f85cf..2bf740aba 100644 --- a/project/AutoMultiJvm.scala +++ b/project/AutoMultiJvm.scala @@ -1,5 +1,7 @@ import com.typesafe.sbt.MultiJvmPlugin.autoImport._ import com.typesafe.sbt.SbtMultiJvm +import de.heikoseeberger.sbtheader.AutomateHeaderPlugin.autoImport +import de.heikoseeberger.sbtheader.HeaderPlugin.autoImport.headerSettings import sbt.Keys.fork import sbt._ import sbtassembly.AssemblyKeys._ @@ -7,7 +9,9 @@ import sbtassembly.MergeStrategy object AutoMultiJvm extends AutoPlugin { - override def projectSettings: Seq[Setting[_]] = + private val copyrightHeaderSettings: Seq[Setting[_]] = autoImport.automateHeaderSettings(MultiJvm) ++ headerSettings(MultiJvm) + + override def projectSettings: Seq[Setting[_]] = { SbtMultiJvm.multiJvmSettings ++ Seq( MultiJvm / multiNodeHosts := multiNodeHostNames, MultiJvm / fork := true, @@ -20,7 +24,8 @@ object AutoMultiJvm extends AutoPlugin { val oldStrategy = (MultiJvm / assembly / assemblyMergeStrategy).value oldStrategy(x) } - ) + ) ++ copyrightHeaderSettings + } override def projectConfigurations: Seq[Configuration] = List(MultiJvm) diff --git a/project/Common.scala b/project/Common.scala index cc601f5fa..8c7c26435 100644 --- a/project/Common.scala +++ b/project/Common.scala @@ -26,7 +26,7 @@ object Common { lazy val CommonSettings: Seq[Setting[_]] = Seq( organization := "com.github.tmtsoftware.esw", - organizationName := "TMT Org", + organizationName := "Thirty Meter Telescope International Observatory", dependencyOverrides += AkkaHttp.`akka-http-spray-json`, dependencyOverrides += Libs.`slf4j-api`, scalaVersion := EswKeys.scalaVersion, @@ -61,8 +61,8 @@ object Common { // jitpack provides the env variable VERSION= # A tag or commit. We have aliased VERSION to JITPACK_VERSION // we make use of it so that the version in class metadata (e.g. classOf[HttpService].getPackage.getSpecificationVersion) // and the maven repo match - version := sys.env.getOrElse("JITPACK_VERSION", "0.1.0-SNAPSHOT"), - fork := true, + version := sys.env.getOrElse("JITPACK_VERSION", "0.1.0-SNAPSHOT"), + fork := true, javaOptions += "-Xmx2G", Test / fork := false, Test / javaOptions ++= Seq("-Dakka.actor.serialize-messages=on"), diff --git a/project/TMTCopyrightHeaderPlugin.scala b/project/TMTCopyrightHeaderPlugin.scala new file mode 100644 index 000000000..19e2d15b5 --- /dev/null +++ b/project/TMTCopyrightHeaderPlugin.scala @@ -0,0 +1,50 @@ +import de.heikoseeberger.sbtheader.{AutomateHeaderPlugin, CommentCreator, CommentStyle, HeaderPlugin} +import sbt.Keys._ +import sbt.{HiddenFileFilter, _} + +import scala.util.matching.Regex + +object TMTCopyrightHeaderPlugin extends AutoPlugin { + import HeaderPlugin.autoImport._ + val currentYear = "2022" + + override def requires: Plugins = HeaderPlugin + + override def trigger: PluginTrigger = allRequirements + + override def projectSettings: Seq[Setting[_]] = { + AutomateHeaderPlugin.projectSettings ++ + Seq( + headerSources / includeFilter := "*.scala" || "*.java" || "*.kt" || "*.kts", + headerSources / excludeFilter := HiddenFileFilter || "empty.scala", + headerLicense := Some( + HeaderLicense.Custom( + s"""|Copyright (c) $currentYear ${organizationName.value} + |SPDX-License-Identifier: Apache-2.0 + |""".stripMargin + ) + ), + headerMappings := headerMappings.value ++ Map( + HeaderFileType.scala -> cStyleComment, + HeaderFileType.java -> cStyleComment, + HeaderFileType("kt") -> cStyleComment, + HeaderFileType("kts") -> cStyleComment + ) + ) + } + + val cStyleComment: CommentStyle = CommentStyle.cStyleBlockComment.copy(commentCreator = new CommentCreator() { + val Pattern: Regex = "(?s).*?(\\d{4}(-\\d{4})?).*".r + def findYear(header: String): Option[String] = header match { + case Pattern(years, _) => Some(years) + case _ => None + } + override def apply(text: String, existingText: Option[String]): String = { + val newText = CommentStyle.cStyleBlockComment.commentCreator.apply(text, existingText) + existingText + .flatMap(findYear) + .map(year => newText.replace(currentYear, year)) + .getOrElse(newText) + } + }) +} diff --git a/project/plugins.sbt b/project/plugins.sbt index 77653818e..eae871758 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,6 +8,7 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % addSbtPlugin("com.typesafe.sbt" % "sbt-multi-jvm" % "0.4.0") addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "0.1.3") addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.5") resolvers += "jitpack" at "https://jitpack.io" libraryDependencies += "com.github.tmtsoftware" % "kotlin-plugin" % "24d598a"