[fedora-java] strange ant bug

Christoph Höger choeger at cs.tu-berlin.de
Sat Sep 12 08:20:31 UTC 2009


Hi,

as mentioned earlier, I want to build bsf-2.4.0 with jython enabled. In
fact I cannot due to a weird bug in ant:

The buildfile has this in the root:
(line numbers 

        <patternset id="java.source.files">
                <!-- Optionally includes engines based on dependencies
being present -->
                <include name="**/bsf/*.java" />
                <include name="**/util/**/*.java" />
                <include name="**/jacl/**" if="jacl.present" />
                <include name="**/javascript/**" if="rhino.present" />
                <include name="**/jython/**" if="jython.present" />
                <include name="**/netrexx/**" if="netrexx.present" />
                <include name="**/xslt/**" if="xalan.present" />
                <include name="**/test/**" if="junit.present" />
        </patternset>

The problem is, that this patternset is referenced in the prepare task:

<uptodate property="javac.notRequired"
targetfile="${build.lib}/${project.name}.jar">
	<srcfiles dir="${src.dir}">
		<patternset refid="javac.source.files" />
	</srcfiles>
</uptodate>


But ant cannot resolve the reference here and stops with an error saying
that the id 'javac.source.files' cannot be found.

Please note that this bug may not have affected anyone else till now,
due to the fact that in the original buildfile prepare always caused
clean which in turn removed the jar file.

Is that a bug or what?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/java-devel/attachments/20090912/c2bcdae1/attachment.bin 


More information about the java-devel mailing list