Nice kludg... er, I mean "work-around". :-) Perhaps the JiBX Ant task should translate '/' to the file.separator character automatically. Except doesn't Ant let you use either character? This really seems to be an Ant issue.

 - Dennis

Linus Kamb wrote:

since this bit me...


Here's my ant task:

<target name="bind" depends="compile" >
<bind verbose="false" load="true"
binding="jibx${file.separator}ixd_binding.xml">
<classpathset dir="${build}"/>
<classpathset dir="${jibxlibs}"/>
<classpathset dir="${jibxlibs}/jibx-bind.jar"/>
<classpathset dir="libs/xpp3.jar"/>
<classpathset dir="libs/jibx-run.jar"/>
<classpathset dir="libs/hibernate2.jar"/>
</bind>
</target>

On Jun 28, 2004, at 1:49 AM, Dennis Sosnoski wrote:

    Are you using the Ant task for doing the binding? This could be a
    side effect of Ant using '/' for file paths, even on Windows. JiBX
    tries to split off the file name from the directory path, but it
    has to use the system file separator character to do this. Not
    sure how to handle this cleanly when running within Ant.

    - Dennis

    Guillaume Pothier wrote:

        Hi, I have an application that uses two binding definitions,
        and I use the BindingDirectory.getFactory method that takes a
        binding name to retrieve the right binding.
        One of my bindings is in a file named all-bindings.xml, and
        the binding name is all_bindings.xml, which works fine.
        However my second binding file is in a sub-directory, let's
        say a/b/c/other.xml. Under windows, the binding name is
        a_b_c_other.xml, but on linux it is just other.xml.
        Is this a known problem, or am I doing something wrong?
        Guillaume



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to