ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Day, Jem BGI WAC" <Jem....@barclaysglobal.com>
Subject <war> 'basedir does not exist' ?
Date Thu, 01 Feb 2001 18:32:05 GMT

Hi,

  I'm obviously being really dumb but i'm having trouble with the <war>
task.

  It constantly complains that 'basedir' does not exist and as far as i'm
concerned
  it does. Thus either the message is incorrect or i'm misreading something.

  Any help appreciated.

  Details : Ant V1.2
  JDK     : 1.2.2

  Snipit of build.xml...

   <target name="j2ee" depends="compile">

      <!-- Build the .war file -->
     
      <war warfile="${dist.dir}/Charter.war"
webxml="${meta.dir}/charter.xml" >
         <fileset dir="${src.dir}/html" />
         <fileset dir="${src.dir}/jsp"  />
         <classes dir="${build.dir}" />
      </war>

   </target>

  My Log Output.....

C:\Projects\Charter\src\build>build j2ee
C:\tools\jdk1.2.2\bin
Searching for build.xml ...
Buildfile: C:\Projects\Charter\src\build\build.xml

prepare:
    [mkdir] Created dir: C:\Projects\Charter\build
    [mkdir] Created dir: C:\Projects\Charter\dist

    basedir   = C:\Projects\Charter
    src.dir   = C:\Projects\Charter/src
    build.dir = C:\Projects\Charter/build
    dist.dir  = C:\Projects\Charter/dist


compile:
    [javac] Compiling 89 source files to C:\Projects\Charter\build

j2ee:

BUILD FAILED

java.lang.IllegalStateException: basedir does not exist
        at
org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:655)
        at org.apache.tools.ant.taskdefs.War.isUpToDate(War.java:146)
        at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java, Compiled
Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 25 seconds
basedir does not exist

C:\Projects\Charter\src\build>


  

Mime
View raw message