• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Deployment problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii all

All my folders inside my application folder are getting deleted while deploying the application. My application resides in webapps/sample(app name).
I suspect this happens because of my build file....

my build file is given below..
<?xml version="1.0"?>

<!-- build tool for LiveHelp admin web pages -->

<project name="BANK" default="copywar" basedir=".">

<!-- compiling the code -->
<target name="compilesources">
<javac srcdir="./WEB-INF/src" destdir="./WEB-INF/classes" includes="com/example/web/*.java" />
</target>

<!-- creating war file -->
<target name="createwar" depends="compilesources">
<jar jarfile="sample.war" basedir="." includes="WEB-INF/,jsp/" excludes="WEB-INF/src/" />
</target>

<!-- copying the ear file to jboss directory -->
<target name="copywar" depends="createwar">
<copy file="sample.war" todir="C:\Tomcat 5.5\webapps" overwrite="true"/>
</target>
</project>
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Prasad " please check your private messages for an important administrative matter.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prasad,

Try:

<target name="copywar" depends="createwar">
<copy file="sample.war" todir="C:\Tomcat 5.5\webapps\sample.war" overwrite="true"/>
</target>

Note the change in todir.

Hope that helps!
 
Prasad Prabha
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hii Martijn Verburg

Thanks alooott...finally it worked out!!!

Regards,
Prasad
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Prasad, glad to hear it! Just a quick admin matter though, please do change your name according to our naming policy, Amit has sent you a PM with the details.
 
reply
    Bookmark Topic Watch Topic
  • New Topic