aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes .classpath entry to build war out using dependent war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark ".classpath entry to build war out using dependent war file " Watch ".classpath entry to build war out using dependent war file " New topic
Author

.classpath entry to build war out using dependent war file

Phani.Kiran Gutha
Greenhorn

Joined: Dec 14, 2010
Posts: 14
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

Joined: May 14, 2008
Posts: 5843
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .classpath entry to build war out using dependent war file