Estoy ejecutando hormigo 1.8.0 en modo detallado. Creé un manifiesto que contiene Implementación-Título, -Versión y -Vendor y el JAR resultante contiene un manifiesto con los que contiene. La clase de JAR funciona bien. Sin embargo, la salida de ant diceant reclamaciones Implementación-Título/Versión/Proveedor no establecido, pero son
[jar] No Implementación-Título establecido.No Implementación-Versión establecida.No Implementación-Proveedor establecido.
¿Esto es solo un error en hormiga o me falta algo aquí?
Gracias
Aquí está mi código de hormigas:
<?xml version="1.0" encoding="UTF-8"?>
<project name="helloworld.makejar" default="makejar" basedir=".">
<target name ="makejar" description="Create a JAR for the HelloWorld project">
<delete file="helloworld.jar" />
<delete file="MANIFEST.MF" />
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="project.builder.example.HelloWorld" />
<section name="common">
<attribute name="Specification-Title" value="Example" />
<attribute name="Specification-Version" value="1.0.0" />
<attribute name="Specification-Vendor" value="Example Organization" />
<attribute name="Implementation-Title" value="common" />
<attribute name="Implementation-Version" value="1.0.0 today" />
<attribute name="Implementation-Vendor" value="Acme Corp." />
</section>
</manifest>
<jar jarfile="helloworld.jar"
includes="**/*.class"
basedir="bin"
manifest="MANIFEST.MF"
/>
</target>
<javac srcdir="src" destdir="bin" />
</project>
¿Cómo está creando el manifiesto? ¿Lo creó a mano o está utilizando el elemento anidado manifiesto de la tarea jar de Ant? ¿Puedes publicar el contenido del archivo de manifiesto? –
Gracias, Kevin. Agregué mi código de hormiga para que pueda ver cómo se crea y se consume el manifiesto. –