buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Toulme <anto...@lunar-ocean.com>
Subject Re: File::SEPARATOR on Windows
Date Fri, 16 Jul 2010 21:38:20 GMT
Thanks Alex! That's what I needed.

On Fri, Jul 16, 2010 at 13:03, Alex Boisvert <alex.boisvert@gmail.com>wrote:

> Yeah, see buildr/core/utils.rb
>
>     # Just like File.expand_path, but for windows systems it
>     # capitalizes the drive name and ensures backslashes are used
>     def normalize_path(path, *dirs)
>       ...
>     end
>
> Sounds like Commands.path_to_bin should use normalize_path() instead of
> expand_path().
>
> alex
>
> On Fri, Jul 16, 2010 at 11:43 AM, Antoine Toulme <antoine@lunar-ocean.com>wrote:
>
>> It looks like calling out Java doesn't work well on Windows, in particular
>> this h2.rake home made extension on Apache ODE:
>> http://svn.apache.org/viewvc/ode/trunk/tasks/h2.rake?view=markup
>>
>> The log looks like this:
>>
>>
>> https://gist.github.com/c304862ba875ba29b12f/469ac1e899ccbe1dd76ea1c2cb1081bdf5a0c479
>>
>> I tempered with it as much as I could, the only line that makes any sense
>> is:
>> The filename, directory name, or volume label syntax is incorrect.
>>
>> Which turned me to think the problem lies in the path of the command,
>> which
>> uses slashes instead of backslashes:
>>
>> "C:/Program Files (x86)/Java/jdk1.6.0_20/bin/java" "-classpath"
>> "C:/Users/vanto/.m2/repository/com/h2database/h2/1.1.117/h2-1.1.117.jar"
>> "org.h2.tools.RunScript" "-url"
>>
>> "jdbc:h2:file:C:/Users/vanto/dev/git/pxe/dao-hibernate-db/target/h2/hibdb/ode-hib-h2;DB_CLOSE_ON_EXIT=false;user=sa"
>> "-showResults" "-script"
>> "C:/Users/vanto/dev/git/pxe/dao-hibernate-db/src/schema/ode-hib-h2.sql"
>>
>> I am pretty sure Buildr worked towards supporting this before. Any hint to
>> help me on this ?
>>
>> Thanks,
>> Antoine
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message