Ant integration |
||||||
Just4log Development
Links Hosted by: Developed with: |
What is ant ?Ant is a software distributed by the Apache foundation. It is the equivalent of Make from the C/C++ world in the Java world. Just4Log is plugged into ant via the use of new Task. This task can be simply called in a target element of your ant script. DownloadTo use Just4log, you'll need a few libraries:
Installation in AntGet all three compiled binary Jarfiles from all three libraries and put them into the "lib" directory in your ant installation. ( The directory to which point the ANT_HOME variable) Declaration and use of the taskBefore being able to use the new task in your ant script, you need to define it: <taskdef name="just4log" classname="net.sf.just4log.integration.ant.Just4LogTask"/>After this declaration, the use of the new just4log task is very
straight forward. Here is a little example:
<target name="compile" depends="init" description="compile the source " > <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}" destdir="${build}" debug="on"/> <just4log destDir="${build.speed}" classpathref="referencetocp" enters="true" exits="true"> <src path="${build}"/> </just4log> </target>
|
|