ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Building a Jar for SPI application
Date Mon, 25 Feb 2008 06:27:08 GMT
<jar><service></jar> ?

Jan

 

> -----Urspr√ľngliche Nachricht-----
> Von: Wayne T Richards [mailto:wayne.t.richards@gmail.com] 
> Gesendet: Freitag, 22. Februar 2008 05:41
> An: user@ant.apache.org
> 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@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message