posted 15 years ago
what is the value should be given to property name, classpath in build.xml file?
My building part of the build.xml file is below.
<!-- Building -->
<target name="build" depends="init">
<javac srcdir="${root}" destdir="${classdir}" debug="true"
includes="**/*.java" excludes="**/unittest/*.java">
<classpath>
<!-- use the value of the ${classpath} property in the
classpath -->
<pathelement path="${classpath}"/>
<!-- include all jar files -->
<!-- Files needed to be deployed -->
<fileset dir="${include}">
<include name="**/*.jar"/>
</fileset>
<!-- Other include files -->
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
My property defining part is below.
<!-- Project Paths -->
<property name="classdir" value="${basedir}/classes"/>
<property name="root" value="${basedir}/src"/>
<property name="src" value="${root}/com/atlinkcom/bestcarelab"/>
<property name="lib" value="${basedir}/lib"/>
<property name="include" value="${basedir}/include"/>
<property name="view" value="${root}/com/atlinkcom/bestcarelab/view"/>
<!-- Deployment Descriptors -->
<property name="deployDesc" value="${basedir}/build/deploymentdescriptors"/>
<!-- WAR related info. -->
<property name="warDir" value="${basedir}/build/war/WEB-INF"/>
<property name="warDirClass" value="${basedir}/build/war/WEB-INF/classes"/>
<property name="warDir.out" value="${basedir}/build/"/>
<property name="warDirResult" value="${basedir}/build/war"/>
<property name="warFile" value="sos.war"/>
<!-- JAR related info. -->
<property name="jarDir" value="${basedir}/build/jar"/>
<property name="jarDir.out" value="${basedir}/build/"/>
<property name="jarFile" value="bestcarelab.jar"/>
<!-- Create Folders -->
<mkdir dir="${basedir}/build/jar"/>
<mkdir dir="${basedir}/build/war"/>
<mkdir dir="${warDir}/tlds"/>
<!-- Deploy Folder -->
<property name="jboss.deploy" value="C:\jboss-4.0.5.GA\server\default\deploy"/>
</target>
</target>
And the error i got are below.
1.The project was not built since its build path is incomplete. Cannot find the class file for javax.servlet.jsp.PageContext. Fix the build path then try building this project
2.The type javax.servlet.jsp.PageContext cannot be resolved. It is indirectly referenced from required .class filesViewFormatter.javaBCL/src/com/atlinkcom/bestcarelab/formline 1Java Problem
I think these errors happened due to lack of classpath value.So tel me please what should be given to classpath?