You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by General Email <ge...@yahoo.com> on 2006/01/11 15:14:14 UTC

Ant War Problem

Hi,
  
   I'm using JDev 10g which uses Ant v 1.5.4.
    
    I'm having difficulty with the WAR task in Ant.  I have:
    
    <war destfile="${outdir}/myApp.war" webxml=".\htroot\WEB-INF\web.xml">
            <fileset dir=".\htroot\WEB-INF\" />
    </war>
    
    and I get an error:
    
    No directory specified for ZipFileSet 
    
    and it points me to the first line of the Ant code above.  
    Anyone know what it's really complaining about?
    
    Thnx

			
---------------------------------
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.

Re: Ant War Problem

Posted by Clifton Craig <cc...@gbg.com>.
On Wednesday 11 January 2006 9:14 am, General Email wrote:
> Hi,
>
>    I'm using JDev 10g which uses Ant v 1.5.4.
>
>     I'm having difficulty with the WAR task in Ant.  I have:
>
>     <war destfile="${outdir}/myApp.war" webxml=".\htroot\WEB-INF\web.xml">
>             <fileset dir=".\htroot\WEB-INF\" />
>     </war>
>
>     and I get an error:
>
>     No directory specified for ZipFileSet
>
>     and it points me to the first line of the Ant code above.
>     Anyone know what it's really complaining about?
>
>     Thnx
>
>
> ---------------------------------
> Yahoo! Photos
>  Got holiday prints? See all the ways to get quality prints in your hands
> ASAP.

I'll take a stab and suggest u put a dir attribute on your war task. My docs 
say it's not required but since you're using the webxml attribute I'm 
guessing it's creating an implicit zipfileset object to prefix the web.xml 
file accordingly in your final output war file. I'm also guessing that since 
the implicit zipfileset is being used it needs a base dir from which to upll 
files from.
-- 
Clifton C. Craig, Software Engineer
Intelligent Computer Systems -  A Division of GBG
ccc@icsaward.com
ccraig@gbg.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Ant War Problem

Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 11 Jan 2006, General Email <ge...@yahoo.com> wrote:

>    I'm using JDev 10g which uses Ant v 1.5.4.

Which is rather old (your version of Ant, that is).

>     <war destfile="${outdir}/myApp.war" webxml=".\htroot\WEB-INF\web.xml">
>       <fileset dir=".\htroot\WEB-INF\" />
>     </war>

I would expect a warning that your task was trying to add
WEB-INF/web.xml twice, but not

>     No directory specified for ZipFileSet 

Are you sure that this is the complete task definition?

The only ZipFileSet I can see is the one Ant creates internally to
handle the webxml attribute, and that should work.  Unless you'd be
mixing versions of Ant in some place.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org