Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Deployment problem

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
"Prasad " please check your private messages for an important administrative matter.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hii Martijn Verburg

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

Regards,
Prasad
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Get me the mayor's office! I need to tell him about this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic