Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment problem

 
Prasad Prabha
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>
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Prasad " please check your private messages for an important administrative matter.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 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
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic