Hi all,

I am using <ant:fileScanner> to validate all XML files in a given directory ${src.dir}.

<ant:fileScanner var="xmlFiles">
        <!-- assume all files in src.dir are XML files -->
        <ant:fileset dir="${src.dir}" />
</ant:fileScanner>

<core:forEach var="xmlFilePath" items="${xmlFiles.iterator()}">

        <echo>Validating ${xmlFilePath}</echo>

        <validate:validate
                var="validationResult"
                verifier="${someVerifier}">

                <!-- this line does not work* -->
                <core:include uri="${xmlFilePath}" />

                <!-- this line works (?) -->
                <core:include uri="file:///${xmlFilePath}" />

        </validate:validate>

        <echo>Validation result: ${validationResult}</echo>

</core:forEach>

* The error message is:

BUILD FAILED
File...... E:\Documents\bmf1972\My Tests\core\maven.xml
Element... core:include
Line...... 99
Column.... 39
null:-1:-1: <null> Could not parse Jelly script

My question is about the consistency of the file references. If some function returns file references in DOS format (e.g. D:\path\filename.ext) then why other functions cannot accept this?

Is there some function that can be used to "normalize" file references?

Thanks for your time,
Adrian.

P.S. Also, from the error message is clear that the file reference format is the problem...


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



Reply via email to