<copy flatten="true" todir="${jar.file}">
<fileset dir="${src}" includes="**/.classpath,**/gen/**,**/*.MF,**/*.jar"/>
</copy>
<copy flatten="true" todir="${java.file}">
<fileset dir="${src}" includes="**/*.java"/>
</copy>
</target>
<target name="compile">
<javac srcdir="${java.file}" destdir="${class}" classpath="${jar.file}/log4j-1.2.15.jar"/>
</target>
Hi,
please check above copy tasks...i am copy .classpath file,.jar fil & other files to on location,,,& also i am copy java file to one location...
in javac task i am compiling all java file & include jar file(this is classpath file)..& also below i mention .classpath file details..please tell me if i need to include any more file for compiling...
------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="lib" path="log4j-1.2.15.jar"/>
<classpathentry excluding="gen/|gen/src/" kind="src" path=""/>
<classpathentry kind="src" path="gen/src">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/WebSphere Process Server v6.2 JRE"/>
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.ibm.ws.ast.st.runtime.runtimeTarget.v61.bi/wps.v62"/>
<classpathentry kind="output" path=""/>
</classpath>
---------------------------------------