Wednesday, December 15, 2010

Giving log4j.properties, jmxport, classpath in ant file

 

<target name="testTarget">

<java classname="com.company.ClassWIthMainFile" fork="true">

<jvmarg value="-Dcom.sun.management.jmxremote.port=4001" />

<jvmarg value="-Dcom.sun.management.jmxremote.authenticate=false" />

<jvmarg value="-Dcom.sun.management.jmxremote.ssl=false" />

<jvmarg value="-Dlog4j.debug" />

<jvmarg value="-Dlog4j.configuration=file:///${path}/log4j-receiver.properties" />

<classpath refid="project.class.main.path" />

</java>

</target>

 

No comments:

Post a Comment