The conditions of the question are slightly artificial, but that's the task. The project has to be built in Apache Ant. The web project itself is mainly based on JSF. The task is to write MANIFEST.MF for building the project with an executed class mentioned inside. The problem is that there is no entry point like psvm
in JSF and other similar frameworks. What I found is official documentation for writing MANIFEST.MF files in Apache Ant. Here is the extract from build.xml file that I got for now with the target of building:
<target name="build" depends="compile">
<echo>Building...</echo>
<buildnumber/>
<jar destfile="${jarfile}">
<fileset dir="${classes}" excludes="Test*.class"/>
</jar>
<echo>Building DONE!</echo>
</target>
I also saw <manifest>
tags integrated into <target>
, but that does not match the current task.
So, what do I write in MANIFEST.MF instead of this executable class, or how can I solve it another way?