ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.kitt.rei...@gmail.com>
Subject Re: Create a jar with the META-INF/services dir: strange behavior...
Date Tue, 09 Jun 2009 06:46:32 GMT
This is fixed in ant 1.7.1.

Peter


On Mon, Jun 8, 2009 at 11:37 PM, Federico
Tomassetti<f.tomassetti@gmail.com> wrote:
> Hi, I am trying to build some Jars that contains annotations
> processors so they need to create a file under META-INF/services named
> javax.annotation.processing.Processor. I am doind it for annoproc_jar
> and annoproc_wd_jar:
>
>        <target name="annoproc_jar">
>                <jar destfile="${jarsdir}/jdefprog_annoproc_curr.jar"
> basedir="${annoprocdir}/bin" includes="**/*.class" >
>                <service type="javax.annotation.processing.Processor">
>                        <provider classname="net.sourceforge.jdefprog.annoproc.AnnotationsProcessor"
> />
>                </service>
>                        </jar>
>        </target>
> ...
> ...
> ...
>        <target name="annoproc_wd_jar"
> depends="utils_jar,prh_jar,mclp_jar,client_jar,annocheck_jar,annoproc_jar">
>                <jar destfile="${jarsdir}/jdefprog_annoprocwd_curr.jar">
>                        <zipfileset src="${jarsdir}/jdefprog_utils_curr.jar"
excludes="META-INF/*" />
>                        <zipfileset src="${jarsdir}/jdefprog_prh_curr.jar"
excludes="META-INF/*" />
>                        <zipfileset src="${jarsdir}/jdefprog_mclp_curr.jar"
excludes="META-INF/*" />
>                        <zipfileset src="${jarsdir}/jdefprog_client_curr.jar"
> excludes="META-INF/*" />
>                        <zipfileset src="${jarsdir}/jdefprog_annocheck_curr.jar"
> excludes="META-INF/*" />
>                        <zipfileset src="${jarsdir}/jdefprog_annoproc_curr.jar"
> excludes="META-INF/*" />
>                        <service type="javax.annotation.processing.Processor">
>                                <provider classname="net.sourceforge.jdefprog.annoproc.AnnotationsProcessor"
> />
>                        </service>
>                </jar>
>        </target>
>
> the jars are created BUT the file is stored under "META-INF/service"
> directory not "META-INF/services" (the final 's' is missing) and
> obviously it doesn't work...
> is it a bug in ANT?
>
> (I am using the version 1.7.0 integrated in Eclipse)
>
> Federico Tomassetti
>
> ---------------------------------------------------------------------
> 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