ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aydın Toprak <>
Subject where is the problem?
Date Tue, 20 Sep 2005 11:13:53 GMT
hii everybody,

I am newbie about ant I am having difficulties about ant+eclipse 
Now I have a working source code, I can compile it under the command 
line .. without any problems..

how ever I couldnt been able to compile it via using ant .. .
When I call it from eclipse, I get some intresiting errors from compiler..

that, for example, says, "\workspace\mysecond\src\ package 
javax.servlet does not exist
    [javac] import javax.servlet.*;"

and continues..

this is only specific problem when I use ant to compile and deploy it..
so I think it is related with my build.xml file.. which is...

<project name="mysecond" default="dist" basedir=".">
        description tag leri arasi
  <!-- set global properties for this build -->
  <property name="src" location="src"/>
  <property name="build" location="mybuildfolder"/>
  <property name="dist"  location="mydistfolder"/>

  <target name="init">
    <!-- Create the time stamp -->
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>

  <target name="compile" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>

  <target name="dist" depends="compile"
        description="generate the distribution" >
    <!-- Create the distribution directory -->
    <mkdir dir="${dist}/lib"/>

    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar 
file -->
    <jar jarfile="${dist}/lib/mysecond -${DSTAMP}.jar" basedir="${build}"/>

  <target name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>

I think I am misiing a little point but really getting  exhausted about 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message