Skip to content

Commit b807956

Browse files
committed
Polishing
Signed-off-by: Ben Hale <[email protected]>
1 parent 076b1b6 commit b807956

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/java_buildpack/framework/checkmarx_iast_agent.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize(context)
4141
'/iast/compilation/download/JAVA'
4242
end
4343

44-
@logger = JavaBuildpack::Logging::LoggerFactory.instance.get_logger DynatraceOneAgent
44+
@logger = JavaBuildpack::Logging::LoggerFactory.instance.get_logger CheckmarxIastAgent
4545
end
4646

4747
# (see JavaBuildpack::Component::BaseComponent#compile)
@@ -66,12 +66,12 @@ def release
6666
team = ENV['cxTeam'] || 'CxServer'
6767

6868
@droplet.java_opts
69-
.add_javaagent(@droplet.sandbox + 'cx-launcher.jar')
70-
.add_preformatted_options('-Xverify:none')
71-
.add_system_property('cx.logToConsole', 'true')
72-
.add_system_property('cx.appName', application_name)
73-
.add_system_property('cxAppTag', app_tag)
74-
.add_system_property('cxTeam', team)
69+
.add_javaagent(@droplet.sandbox + 'cx-launcher.jar')
70+
.add_preformatted_options('-Xverify:none')
71+
.add_system_property('cx.logToConsole', 'true')
72+
.add_system_property('cx.appName', application_name)
73+
.add_system_property('cxAppTag', app_tag)
74+
.add_system_property('cxTeam', team)
7575
end
7676

7777
protected

spec/java_buildpack/framework/checkmarx_iast_agent_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
allow(services).to receive(:find_service).and_return('credentials' => { 'server' => 'test-server' })
3434

3535
allow(application_cache).to receive(:get)
36-
.with('test-server/iast/compilation/download/JAVA')
37-
.and_yield(Pathname.new('spec/fixtures/stub-checkmarx-agent.zip').open, false)
36+
.with('test-server/iast/compilation/download/JAVA')
37+
.and_yield(Pathname.new('spec/fixtures/stub-checkmarx-agent.zip').open, false)
3838
end
3939

4040
it 'detects with checkmarx-iast service' do

0 commit comments

Comments
 (0)