#1906 OrientDB and java pod

Akcelisto Fri 8 Jun 2012

I want convert OrientDB into pod.

build.fan

using build

class Build : BuildPod {
  new make() {
    podName = "javaOrientDb"
    summary = "OrientDB"
    resDirs = [`orient-commons-1.0.1.jar`,`orientdb-core-1.0.1.jar`]
  }
}

But build failed:

compile [javaOrientDb]
  Compile [javaOrientDb]
    FindSourceFiles [0 files]
    WritePod [file:/D:/Programs/fan/lib/fan/javaOrientDb.pod]
javaOrientDb.pod: Cannot write resource file '/com/orientechnologies/common/'
BUILD FAILED [95ms]!

brian Fri 8 Jun 2012

Can you specify exactly which jar from the distribution is failing?

If you are setup bootstrap compile, you can just stick a stack trace in WritePod around line 133

Akcelisto Sat 9 Jun 2012

I found: if jars has used by separate then compiler works.

using build

class Build : BuildPod {
  new make() {
    podName = "javaOrientDb"
    summary = "OrientDB"
    resDirs = [`orient-commons-1.0.1.jar`]
  }
}

using build

class Build : BuildPod {
  new make() {
    podName = "javaOrientDb"
    summary = "OrientDB"
    resDirs = [`orientdb-core-1.0.1.jar`]
  }
}

Both is ok.

--

Bootstrap setup trying may be later... I afraid to spend time.

brian Sat 9 Jun 2012

I found: if jars has used by separate then compiler works.

You are probably getting conflicts like overlapping manifest files or something. I tweaked compiler to show what underlying problem is in that case. But I would suggest putting each jar into its own pod to avoid cases like that.

Login or Signup to reply.