This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what should be given to classpath in build.xml?

 
preshen dasane
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"newer come"

Please check your private message for a message from JavaRanch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic