ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Martinez <dmarti...@food.com>
Subject jar task problem?
Date Thu, 22 Feb 2001 17:54:12 GMT
Hi, I use ant 1.2 under Windows NT and seem to be having a problem when
trying to use the Jar task.

My syntax is copied directly from ant's own buildfile. It looks like this:

   <target name="jar" depends="compile">
      <mkdir dir="${lib.dir}"/>
      <echo message="Making a jar in ${lib.dir}/${name}.jar with classes
from - ${build.classes}"/>
      <jar jarfile="${lib.dir}/${name}.jar" basedir="${build.classes}"
includes="com/**" manifest="${manifest}"/>
   </target>

When doing echo, I can plainly see (with the echo) that the "classes"
directory indeed exists (afterwards I can CD into it by changing the slashes
to backslashes). However, when the Jar task fails when checking if the JAR
is up to date:

jar:
    [mkdir] Created dir: D:\Personal\Source\build\jsqlide\lib
Making a jar in ../build/jsqlide/lib/jsqlide.jar with classes from -
../build/jsqlide/classes

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.Jar.isUpToDate(Jar.java:113)
        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)

Does anybody know what the problem is?

Thanks,

- David


Mime
View raw message