<service> does not work in ant 1.7.0 (due to a typeo error).

Easiest way to add services is simplly to create the service file
in the correct location:

src/jar-src/META-INF/services/com.example.apis.API
for example

<jar jarfile="x.jar">
   <fileset dir="src/java-src"/>
</jar>
Peter


On Mon, Feb 25, 2008 at 6:27 AM,  <[EMAIL PROTECTED]> wrote:
> <jar><service></jar> ?
>
>  Jan
>
>
>
>  > -----Ursprüngliche Nachricht-----
>  > Von: Wayne T Richards [mailto:[EMAIL PROTECTED]
>  > Gesendet: Freitag, 22. Februar 2008 05:41
>  > An: [email 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: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to