<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,6 +16,7 @@ export('absolute',
        'dirname',
        'exists',
        'extension',
+       'isRelative',
        'isAbsolute',
        'isDirectory',
        'isFile',
@@ -141,6 +142,8 @@ function chmod(path, mode) {
 }
 
 function symlink(source, target) {
+    if (isRelative(source))
+        source = relative(target, source);
     try {
         var POSIX = org.jruby.ext.posix.POSIXFactory.getPOSIX(
                 new JavaAdapter(org.jruby.ext.posix.POSIXHandler, {}), true);
@@ -226,6 +229,10 @@ function isAbsolute(path) {
     return new File(path).isAbsolute();
 }
 
+function isRelative(path) {
+    return !isAbsolute(path);
+}
+
 function absolute(path) {
     return resolve(join(cwd(), ''), path);
 }</diff>
      <filename>modules/file.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f011f856f97e893d236f44be64d19ef2657b82dd</id>
    </parent>
  </parents>
  <author>
    <name>Hannes Walln&#246;fer</name>
    <email>hannesw@gmail.com</email>
  </author>
  <url>http://github.com/hns/helma-ng/commit/c0d73265b193a61ac9d72403f194e6f3fcfb207f</url>
  <id>c0d73265b193a61ac9d72403f194e6f3fcfb207f</id>
  <committed-date>2009-11-07T22:49:12-08:00</committed-date>
  <authored-date>2009-11-07T22:49:12-08:00</authored-date>
  <message>Add isRelative(), fix symlink()</message>
  <tree>f1f207fb30ca45b470caa1e27ebd2ba62ac2ba2b</tree>
  <committer>
    <name>Hannes Walln&#246;fer</name>
    <email>hannesw@gmail.com</email>
  </committer>
</commit>
