I have an ANT build script that deploys a WAR folder into my JBOSS deploy directory. Can I convert that into an executable WAR/JAR file and run it as well?
For example if my folder is called: MYAPP.WAR, can I generate: NEWAPP.WAR where NEWAPP.WAR is an executable file. If i just place it in the Jboss directory and start JBOSS will it pick it up? Should I rename the original folder to something else first to test?
EDIT: Sorry, it seems I was not very clear. The reason I am asking this is because I am trying to use Crystal Reports for Eclipse. When I create a new project, using their plug-in, it works fine, the problem comes when I manually add the libraries to an existing Dynamic Web Project. This is because the plugin requires Jboss to deploy the project. In doing so, Jboss takes the full project and deploys it in a new WAR file. The problem is that this particular project is designed to EXTEND an existing application. So what I normally do is to deploy my code via an ant script that places all files under an existing WAR folder and start Jboss from Eclipse but I DON'T configure it to deploy, it simply starts the App because the WAR folder is there.
When using the Crystal Reports plugin, this is what happens: 1) If I configure the Project to be deployed, I of course get errors, since my Eclipse project DOES NOT include all config files (like XML, etc) which are part of the original project. I don't want to include them in the extension project since it would affect my whole source control scripts. 2) If I update my Ant script tin simply include all classes and files added by crystal report I get a ZipException. When going through the code, it seems that the Crystal Reports code assumes that code was deployed in a single WAR file and is trying to extract the required config and report files, but since the project was deployed in a War folder, this of course fails.
So my rationale in asking this question is: Maybe if I convert the WAR folder that I create with my ANT script to a single WAR file, the Crystal Reports code would work.
Ideas? Are you all even MORE confused?