Class: UcbDeployer::ConfigTasks::Jira::RemoveConflictingJarFiles
- Inherits:
-
Object
- Object
- UcbDeployer::ConfigTasks::Jira::RemoveConflictingJarFiles
- Defined in:
- lib/ucb_deployer/config_tasks/jira/remove_conflicting_jar_files.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(config) ⇒ RemoveConflictingJarFiles
constructor
A new instance of RemoveConflictingJarFiles.
Constructor Details
#initialize(config) ⇒ RemoveConflictingJarFiles
Returns a new instance of RemoveConflictingJarFiles.
9 10 11 |
# File 'lib/ucb_deployer/config_tasks/jira/remove_conflicting_jar_files.rb', line 9 def initialize(config) @config = config end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ucb_deployer/config_tasks/jira/remove_conflicting_jar_files.rb', line 13 def execute() FileUtils.mkdir_p("#{@config.build_dir()}/src/edit-webapp/WEB-INF/lib/") FileUtils.cp(Dir["#{UcbDeployer::RESOURCES_DIR}/soulwing-casclient-*"], "#{@config.build_dir()}/src/edit-webapp/WEB-INF/lib/") # These have been placed in $CATALINA_HOME/lib ["mail", "activation", "javamail", "commons-logging", "log4j"].each do |jar_file| FileUtils.rm_rf(Dir["#{@config.build_dir()}/src/webapp/WEB-INF/lib/#{jar_file}-*"]) end end |