I want to Generate .WAR file from .java / .html
Use the Ant war task.
Related
I have done a small application in Grails, and now I need to generate a war file to test it on server. I generated a war using command grails:war. It has generated the file but named it as myapp-01.war. I don't want this, I need a war where the file name should be same as the project; like myapp.war
Try:
grails war myapp.war
Additional options: http://docs.grails.org/3.1.1/ref/Command%20Line/war.html
i have a Apache Ant build.xml to create a simple executeable jar file, but this file is very big.
Now i have the idea to build a executeable jar file with my code and have a directory named "lib" with all external jar files.
I think this will reduce the size of my application to 3%.
Thanks for your help.
Kindly suggest how to build exploded jars using Ant task?
Thanks.
An exploded jar is simply a directory which has the same structure as a jar file. Just use copy, for example, to put all the files you want in this directory.
I want to delete the generated files (".tmp" and ".bak") in the build directory when the source file (".xml)" is modified with Apache Ant. All files have the same name, but different extentions.
I'm not able to create the fileset to do this.
You can use a file mapper in place of a fileset.
I have created a mail.jar file and mywar.war file. What I need to set into the manifest.mf use the mail.jar as a library?
You don't use a MANIFEST.MF to put a jar in the classpath of a war file. You just put it into WEB-INF/lib in the war file.
Class-Path: ../relative/path_to_/mail.jar
EDIT:
Note: The relative path should be with reference from the directory where your program is starting.