Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

asant compiling

  Asked By: Charlie    Date: Oct 10    Category: Java    Views: 435
  

whenver i compile on asant build on the command line

i get the message



Buildfile: build.xml

init:

prepare:

build:
[javac] Compiling 4 source files to
C:\Sun\AppServer\j2eetutorial14\examples\ejb\converter\build

BUILD FAILED
file:C:/Sun/AppServer/j2eetutorial14/examples/ejb/common/targets.xml:18:
C:\lib
not found.

Total time: 2 seconds

the required fields on the targets.xml file are: -

[CODE}
<target name="init">
<tstamp />
</target>

<path id="capture.schema.classpath">
<fileset dir="${C:/Sun/AppServer}/lib">
<include name="appserv-cmp.jar"/>
</fileset>
</path>

<target name="prepare" depends="init"
description="Create build directories.">
<mkdir dir="C:/Sun/AppServer/" />
</target>

<target name="build" depends="prepare"
description="Compile source code" >
<javac srcdir="src" destdir="${build}" >
<include name="**/*.java" />
<classpath refid="classpath"/>
</javac>
</target>

i changed the destdir parameter many a time but to no
good use

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on asant compiling Or get search suggestion and latest updates.




Tagged: