Iam trying to create a jar file, which requires eclipse plugins in the classpath . So i was trying to give a regular expression in the path attribute of "pathelement" tag .
Here is my sample code
<target name="compile" depends="init,copy-non-java-files">
<javac srcdir="${src}" destdir="${build}" source="1.6">
<classpath>
<pathelement path="${java.class.path}/" />
<fileset dir="*\\eclipse\\plugins">
<include name="**/*.jar" />
</fileset>
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
But when i try to build i get build failed because ant is unable to evaluate the class path .
Iam not looking for ant4Eclipse solution , but i want to know is it possible to use regular expression in ant or not , if yes can any one suggest what i am doing wrong here .