[
https://issues.apache.org/jira/browse/LOG4J2-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14020392#comment-14020392
]
Matt Sicker commented on LOG4J2-369:
------------------------------------
Well, the annotation processing should be done on the bytecode as far as I
know, so that might work. It depends on how the annotation processor is
configured. I'd like to know more about the uncommon use cases. The {{apt}}
tool doesn't exist anymore since it's part of {{javac}}, so I'm not sure on how
it's done.
> How to include the log4j2 lib jar into a jar with my application class and
> run it ?
> -----------------------------------------------------------------------------------
>
> Key: LOG4J2-369
> URL: https://issues.apache.org/jira/browse/LOG4J2-369
> Project: Log4j 2
> Issue Type: Bug
> Reporter: wei wang
> Labels: mentor
> Original Estimate: 0.2h
> Remaining Estimate: 0.2h
>
> I used ant to build a app.jar which has log4j2.xml in the jar, however when I
> run the jar, it will miss the log4j2-core***.jar and log4j2-api***.jar as the
> lib. But I need to distribute the lib together with my app.jar as one jar
> file and run the app.jar(with the exlib in the jar), please tell me how to do
> that?
> I have tried simply pack the log4j2***.jar into the app.jar, but never print
> out any log, I think somehow must set the path inside jar to point the
> log4j2.properties in the log4j-***.jar file.
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]