Need help with Ant

I want to add all the jars with one line command. Something like this: <pathelement location="${jar}/*.jar"/> it does not work, could somoene help. This works below, but I have to add every jar: <target name="compile" depends="init"> <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}" destdir="${build}"> <classpath> <pathelement location="${jar}/mysql_2_comp.jar"/> <pathelement location="${jar}/Activation.jar"/> <pathelement location="${jar}/mail.jar"/> <pathelement location="${jar}/log4j.jar"/> <pathelement location="${jar}/log4j-core.jar"/> <pathelement location="${jar}/xerces.jar"/> </classpath> </javac> </target>