RuleFactory won't compile either - it would need to be changed to use reflection to reference LikeRule.
It is true that Chainsaw will run fine without ORO, you just won't have the LIKE rule available. -----Original Message----- From: Scott Deboy Sent: Wed 12/15/2004 7:55 PM To: Log4J Users List Cc: Subject: RE: problems with chainsaw build By the way, the only dependency on ORO in Chainsaw is org.apache.log4j.rule.LikeRule That class could be excluded if oro wasn't in the classpath, and you'd still have a working Chainsaw (minus the regexp-based LIKE rule). -----Original Message----- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Wed 12/15/2004 7:37 PM To: Log4J Users List Cc: Subject: Re: problems with chainsaw build On Dec 15, 2004, at 8:15 PM, Paul Smith wrote: > I just did an "ant clean" then an "ant jar" and the chainsaw jar DOES > contain LogUI. > > So unless the local environment is missing something that is > preventing it from building all of Chainsaw (maybe regexp library not > there?). > > Curt, maybe you could email me or Scott the jar that gets built, along > with the output of whatever "ant jar" gives you. > The partial chainsaw jar only occurs when chainsaw-libraries-present is not set. In that case, the body of the build.chainsaw task is skipped due to the if condition not being set. However, chainsaw.jar doesn't have the same if condition so its body will be executed regardless of the state of chainsaw-libraries-present. The easiest way to reproduce it is to rename your build.properties so jakarta-oro is not located (might need to make sure it is off the classpath too). I had not been trying to build chainsaw and had not set a build.properties file since it is not necessary to build a functional log4j. One approach would be to add the if condition to the chainsaw.jar task, so that if the body of build.chainsaw is skipped the body of the chainsaw.jar task is skipped. Adding that condition would result in only log4j.jar being created under the conditions described. The other would be to fail build.chainsaw if the libraries were missing. To build just log4j.jar, you would need to build the log4j.jar target. p.s. Ant FAQ on if and unless not affecting dependent tasks: http://ant.apache.org/faq.html#stop-dependency. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
