Source Code : Path with pathelement
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Path with pathelement
<?xml version="1.0"?>
<project name="yourName" default="junitgui" basedir=".">
<property name="junitJar" value="junit3.8.1junit.jar" />
<property name="src.dir" value="${basedir}src" />
<property name="build.dir" value="${basedir}classes" />
<path id="classpath">
<pathelement location="${junitJar}" />
<pathelement location="${build.dir}" />
</path>
<target name="init">
<mkdir dir="${build.dir}" />
</target>
<target name="build" depends="init" description="build all">
<javac
srcdir="${src.dir}" destdir="${build.dir}"
source="1.5"
deprecation="on" debug="on" optimize="off" includes="**">
<classpath refid="classpath" />
</javac>
</target>
<target name="junitgui" depends="build" description="run junitgui">
<java classname="junit.awtui.TestRunner" fork="yes">
<arg value="sis.AllTests" />
<classpath refid="classpath" />
</java>
</target>
<target name="clean">
<delete dir="${build.dir}" />
</target>
<target name="rebuildAll" depends="clean,build" description="rebuild all"/>
</project>
Thank with us