ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Manning <...@computer.org>
Subject Re: Questions about the <war> task
Date Tue, 06 Mar 2001 21:42:18 GMT
[James Manning]
> This is still around in ant 1.3, from an email thread about the war task back
> in October.
> 
> http://archive.covalent.net/jakarta/ant-user/2000/10/0198.xml
> 
> 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:167)
> 	at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:154)
> 	at org.apache.tools.ant.taskdefs.Jar.execute(Jar.java:81)
> 	at org.apache.tools.ant.Target.execute(Target.java:153)
> 	at org.apache.tools.ant.Project.runTarget(Project.java:819)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:533)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:507)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:421)
> 	at org.apache.tools.ant.Main.main(Main.java:149)
> 
> i'm using "." as basedir
> 
>         <war warfile="${output.war.file}"
>              webxml="${input.xml.dir}/web.xml" basedir=".">

It turns out the exception was getting thrown because my input.xml.dir property
was pointing to an invalid directory.  Once I changed the property to the correct
location of the web.xml file, it worked.

"basedir does not exist" certainly didn't help me debug that problem :)
-- 
James Manning <jmm@computer.org>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4

Mime
View raw message