Hallo,
my code running under windows:
import org.apache.log4j.*
public
class MyApp {
static Logger logger =
Logger.getLogger('MyApp.class')
public static void main(String[] args)
{
BasicConfigurator.configure()
logger.info("Entering application.")
println
"Printing XXXXXXXXXXXXXXX"
logger.info("Exiting
application.")
}
}
Running groovy:
groovy -cp .;lib\log4j-1.2.8.jar
MyApp
my issue:
groovy is ignoring (?) the jar-file (I don't get
any logging output), only the println-method works fine.
After compiling the script and running with java it
works fine.
Many thanks for any help.
Best regards Wicki