Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2533

JASPA: Remove dependency on apache FileUtils

    Details

      Description

      Remove the dependency on apache FileUtils, as the agent only invokes four functions from this entire jar.

      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:import org.apache.commons.io.FileUtils;
      ./jee-agents-tomcat/jee-agents-tomcat-vs/src/main/java/com/sun/identity/agents/tools/tomcat/v6/AgentFilesBase.java:import org.apache.commons.io.FileUtils;
      
      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:import org.apache.commons.io.FileUtils;
      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:            FileUtils.copyDirectory(new File(ConfigUtil.getLocaleDirPath()), moduleLocaleDir,
      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:            FileUtils.copyDirectory(new File(ConfigUtil.getLibPath()),
      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:            FileUtils.copyFileToDirectory(sourceModuleXml, modulePath);
      ./jee-agents-jboss/jee-agents-jboss-vs/src/main/java/org/forgerock/openam/agents/jboss/install/ModuleBase.java:            FileUtils.deleteDirectory(getModulePath(state));
      ./jee-agents-tomcat/jee-agents-tomcat-vs/src/main/java/com/sun/identity/agents/tools/tomcat/v6/AgentFilesBase.java:import org.apache.commons.io.FileUtils;
      ./jee-agents-tomcat/jee-agents-tomcat-vs/src/main/java/com/sun/identity/agents/tools/tomcat/v6/AgentFilesBase.java:        return FileUtils.listFiles(new File(agentLocalePath), localeExts, false);
      ./jee-agents-tomcat/jee-agents-tomcat-vs/src/main/java/com/sun/identity/agents/tools/tomcat/v6/AgentFilesBase.java:        return FileUtils.listFiles(new File(agentLibPath), new String[] { "jar" }, false);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tony.bamford Tony Bamford
                Reporter:
                tony.bamford Tony Bamford
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: