Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.classpath entry to build war out using dependent war file

 
Phani.Kiran Gutha
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all i have very rare problem which needs to be solved.

Problem/issue:
==============

I have a dynamic web project which is already built and i have war file of that project.

I need to apply some customizations on top of the war file given to me.

Using maven or ant am able to compile the custom code written by me and able to add produced class files to the war file.

But the this is hapenning for final war file build.

when i want to test my code in eclipse. the war file build and deployed in jboss plugin contains only the class files produced out of java files written by me..........

Please help me how can i modify the .classpath file of my project so that a jboss publish can build a war file using the dependent war file which can run on eclipse-jboss to test my custom code....

Advance Thanks.....
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot have one WAR depend on another, so what you will have to do is repackage what you have.

If you have the source code for the original WAR, add it to your WAR project - this in effect merges the two into one.

If you don't have the source, then try this: pakcafe the .class files into a JAR file and add them to the WEB-INF/lib directory or your WAR project. Then take the rest of the original WAR (JSPs, etc) and merge it with your WAR project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic