troubleshooting Question

create a war file with ant script

Avatar of CharanR
CharanR asked on
Editors IDEsJava
6 Comments2 Solutions3243 ViewsLast Modified:
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

ASKER CERTIFIED SOLUTION
leakim971
Multitechnician
Join our community to see this answer!
Unlock 2 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros