Author Login
Post Reply
<jar><service></jar> ?
Jan
> -----Ursprüngliche Nachricht-----
> Von: Wayne T Richards [mailto:wayne.t.richards@(protected)]
> Gesendet: Freitag, 22. Februar 2008 05:41
> An: user@(protected)
> Betreff: Building a Jar for SPI application
>
> I am having problems building my ant script to build my SPI
> jar file and
> to create the MANIFEST.MF file. I have use the metainf
> directive to move
> the SPI properties file to the META-INF/ directory. The
> problem that I
> am getting into is the the SPI properties file should be
> located in the
> META-INF/services directory. The task below shows what I am currently
> doing (I hope).
>
> <!-- Put everything in ${build} into the*.jar file -->
> <jar
> jarfile="${dist}/lib/${component.name}-${component.version}.jar"
> basedir="${build}">
> <include name="${build}"/>
> <fileset dir="${build}" includes="**/*">
> <include name="${build}/org/raven/**/*.class"/>
> </fileset>
> <fileset dir="${service.props}" includes="**/*">
> <include name="${service.props}/services/**/*" />
> </fileset>
> <metainf
> file="${service.props}/services/*.properties"></metainf>
> <manifest>
> <attribute name="Built-By" value="${user.name}"/>
> <section name="${component.plainname}">
> <attribute name="Sealed" value="false"/>
> <attribute name="Specification-Title"
> value="${component.name}" />
> <attribute name="Specification-Version"
> value="${component.version}" />
> <attribute name="Specification-Vendor"
> value="${component.vendor}" />
> <attribute name="Implementation-Title"
> value="${component.name}" />
> <attribute name="Implementation-Version"
> value="${component.version} ${TODAY}" />
> <attribute name="Implementation-Vendor"
> value="${component.vendor}" />
> </section>
> <attribute name="Class-Path"
> value="${component.name}-${component.version}.jar" />
> </manifest>
> </jar>
> </target>
>
> I cannot figure out how to have ant to create the META-INF/services
> directory and move the SPI properties file into that directory.
> Any help would be greatly appreciated.
> Wayne
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)