Link to home
Start Free TrialLog in
Avatar of CharanR
CharanR

asked on

create a war file with ant script

Hi Guys,

How to create a war file using ant script. I was able to create war file but unable to add weblogic.xml and tlds directory into WEB-INF folder.



<target name="build-war" >
                <war destfile="example.war" webxml="./build/web.xml">
                <webinf dir="./svn/temp/" include ="./build/weblogic.xml,./svn/tlds" />
                        <fileset dir="./svn/jsp"/>
                        <classes dir="./svn/classes"/>
                        <lib dir="./svn/lib" excludes="weblogic.jar" />
                </war>
        </target>

Open in new window

Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>include

should be

includes

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CharanR
CharanR

ASKER

I changed it to includes but still it didn't work for me
Your paths are probably still wrong. Run it as


ant -d yourtaskname
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CharanR

ASKER

Thanks for helping me out leakim971