From dfe42cdc615568c7e526c324b0bde060f054d6bd Mon Sep 17 00:00:00 2001 From: Vivek Sachdeva Date: Sun, 9 Feb 2020 08:57:59 -0800 Subject: [PATCH] WIP: grouper docker container: Use grouper-container to get all the jars --- .../grouperInstaller/GrouperInstaller.java | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/grouper-misc/grouper-installer/src/java/edu/internet2/middleware/grouperInstaller/GrouperInstaller.java b/grouper-misc/grouper-installer/src/java/edu/internet2/middleware/grouperInstaller/GrouperInstaller.java index cadedf44265d..19d8e0b8c683 100644 --- a/grouper-misc/grouper-installer/src/java/edu/internet2/middleware/grouperInstaller/GrouperInstaller.java +++ b/grouper-misc/grouper-installer/src/java/edu/internet2/middleware/grouperInstaller/GrouperInstaller.java @@ -9432,25 +9432,31 @@ private void mainBuildContainerLogic() { File unzippedGrouperSourceCodeFile = unzip(grouperSourceCodeDir.getAbsolutePath(), "grouperInstaller.autorun.useLocalToolsDownloadTarEtc"); File untarredGrouperSourceCodeDir = untar(unzippedGrouperSourceCodeFile.getAbsolutePath(), "grouperInstaller.autorun.useLocalToolsDownloadTarEtc", null); - // go in grouper, grouper-ws, grouper-ui and grouper-ws-scim directory and run mvn dependency:copy-dependencies - List grouperProjects = new ArrayList(); String grouperUntarredReleaseDir = untarredGrouperSourceCodeDir.getAbsolutePath().substring(0, untarredGrouperSourceCodeDir.getAbsolutePath().lastIndexOf(File.separator)); grouperUntarredReleaseDir = grouperUntarredReleaseDir + File.separator + "grouper-" + untarredGrouperSourceCodeDir.getName() ; - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ws"+File.separator+"grouper-ws")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ws" + File.separator + "grouper-ws-scim")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ui")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-activemq")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-aws")); - grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-rabbitmq")); + // go in grouper, grouper-ws, grouper-ui and grouper-ws-scim directory and run mvn dependency:copy-dependencies + List grouperProjects = new ArrayList(); + + grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-container")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ws"+File.separator+"grouper-ws")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ws" + File.separator + "grouper-ws-scim")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ui")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-activemq")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-aws")); +// grouperProjects.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc" + File.separator + "grouper-messaging-rabbitmq")); List commands = new ArrayList(); addMavenCommands(commands); commands.add("-DincludeScope=runtime"); - commands.add("-DexcludeArtifactIds=grouper,grouperClient"); + //commands.add("-DexcludeArtifactIds=grouper,grouperClient"); + commands.add("-Dgrouper.version="+this.version); + //commands.add("-DnewVersion="+this.version); + // versions:set -DnewVersion=1.0.3-SNAPSHOT + //commands.add("-Dproject.version="+this.version); commands.add("dependency:copy-dependencies"); @@ -9516,8 +9522,15 @@ private void mainBuildContainerLogic() { } // now copy grouper/conf, grouper-ws/conf, grouper-ui/conf and grouperClient/conf to classesDir + + List projectsToGetConfFrom = new ArrayList(); + projectsToGetConfFrom.add(new File(grouperUntarredReleaseDir + File.separator + "grouper")); + projectsToGetConfFrom.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ws"+File.separator+"grouper-ws")); + projectsToGetConfFrom.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-ui")); + projectsToGetConfFrom.add(new File(grouperUntarredReleaseDir + File.separator + "grouper-misc"+File.separator+"grouperClient")); + try { - for (File file: grouperProjects) { + for (File file: projectsToGetConfFrom) { File confDir = new File(file.getAbsolutePath()+File.separator+"conf"); if (confDir.exists()) { GrouperInstallerUtils.copyDirectory(confDir, classesDir, null, true);