[AMAGENTS-2533] JASPA: Remove dependency on apache FileUtils Created: 26/Feb/19  Updated: 29/Mar/19  Resolved: 29/Mar/19

Status: Closed
Project: OpenAM Agents
Component/s: J2EE Agents
Affects Version/s: 5.6.0.0
Fix Version/s: 5.6.0.0

Type: Bug Priority: Major
Reporter: Tony Bamford Assignee: Tony Bamford
Resolution: Fixed Votes: 0
Labels: AME, CURIE, no-release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by AMAGENTS-2416 resolve conflicts for depentent exter... Closed

 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);


 Comments   
Comment by Tony Bamford [ 18/Mar/19 ]

While doing the work for 2416, I raised this bug, but almost immediately fixed it.

Generated at Sun May 09 08:00:38 UTC 2021 using Jira 8.16.0#816000-sha1:a455b91378454416b49bbc88d03e653cb9815ed5.