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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to