This repository was archived by the owner on May 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
metafix/src/main/resources Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ To execute a Fix (embedded in a Flux) via CLI:
2828
2929` ./gradlew :metafix-runner:run --args="$PWD/path/to.flux" `
3030
31+ To execute a Fix (embedded in a Flux) via CLI in java debug mode:
32+ make sure to pipe to ` log-stream ` after your ` fix ` command in flux resp. make
33+ use of ` log-object ` at the proper location. Then:
34+
35+ ` export JAVA_OPTS="-Dorg.metafacture.metafix.logLevel=DEBUG"; ./gradlew installDist; cd metafix-runner/build/install/metafix-runner; bin/metafix-runner "$PWD/path/to.flux" `
36+
3137(To import the projects in Eclipse, choose ` File > Import > Existing Gradle Project ` and select the ` metafacture-fix ` directory.)
3238
3339## Usage
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ dependencies {
3939application {
4040 mainClass = ' org.metafacture.runner.Flux'
4141
42+ applicationDefaultJvmArgs = [
43+ " -Dorg.metafacture.metafix.logLevel=INFO"
44+ ]
45+
4246 if (project. hasProperty(' profile' )) {
4347 def file = project. getProperty(' profile' ) ?: project. name
4448 def depth = project. hasProperty(' profile.depth' ) ? project. getProperty(' profile.depth' ) : 8
4549
46- applicationDefaultJvmArgs = [
50+ applicationDefaultJvmArgs + = [
4751 " -XX:FlightRecorderOptions=stackdepth=${ depth} " ,
4852 " -XX:StartFlightRecording=dumponexit=true,filename=${ file} .jfr,settings=profile"
4953 ]
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!DOCTYPE log4j:configuration SYSTEM "http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/doc-files/log4j.dtd">
3+
4+ <log4j : configuration >
5+ <appender name =" stdout" class =" org.apache.log4j.ConsoleAppender" >
6+ <layout class =" org.apache.log4j.PatternLayout" >
7+ <param name =" ConversionPattern"
8+ value =" %-5p [%t] [%c{1}] %m%n" />
9+ </layout >
10+ </appender >
11+
12+ <root >
13+ <priority value =" ${org.metafacture.metafix.logLevel}" />
14+ <appender-ref ref =" stdout" />
15+ </root >
16+
17+ </log4j : configuration >
18+
You can’t perform that action at this time.
0 commit comments