1

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?

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
coder-coder
  • 323
  • 4
  • 13
  • 1
    JSF does not pose any requirements on a `MANIFEST.MF` file (why do you think there is?). And if you you need a class to be executed when using java -jar ... then you most likely use something like joinfaces or plain springboot, but still nothing JSF related. – Kukeltje May 07 '20 at 06:00
  • 1
    Yes, in my question there is -jar that is mentioned. But can it be solved in another archive extension, i.e. -war? – coder-coder May 07 '20 at 10:19
  • Like mentioned before... JSF does not post any requirements on this, so since it is totally unclear what you really want, this question is not JSF related. And even if it becomes clear, it still is not JSF related since you never start JSF, you start a servlet container or the likes in which JSF runs... – Kukeltje May 07 '20 at 11:07
  • In my question I already mentioned the mismatch you've described. That's the reason I wrote "how can I solve it another way?". Once again, the conditions of this don't depend on me anyhow. – coder-coder May 07 '20 at 12:18
  • Then I have no idea what your question is... In relation to JSF at least. And "JSF based project" is a plain web project, so maybe generalize your question and get help from others that might be put-off by the (wrongfully added) JSF tag and title part... – Kukeltje May 07 '20 at 14:02
  • All right, thank you! – coder-coder May 07 '20 at 14:08

0 Answers0