Page 1 of 1

Compiling FileBot

Posted: 09 Mar 2018, 23:45
by snake98
I'm one of those running Windows 7. I don't mind compiling my own file bot, but I've ran into problems.

Code: Select all

1. I download the https://github.com/filebot/filebot/archive/master.zip
2. Installed ant from https://chocolatey.org/packages/ant
3. Downloaded java 9 development.
4. run ant and then get this: 

PS C:\temp\Filebot> ant
Buildfile: C:\temp\Filebot\build.xml

init:
  [taskdef] Could not load definitions from resource net/filebot/ant/spk/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource org/vafer/jdeb/ant/antlib.xml. It could not be found.

revision:

BUILD FAILED
C:\temp\Filebot\build.xml:829: exec returned: 128

Total time: 1 second
PS C:\temp\Filebot>

I realized I'm probably missing some dependency like ivy.  but I couldn't find a list

Re: Compiling FileBot

Posted: 10 Mar 2018, 04:24
by rednoah
Sorry, I don't do code level support. Applying for access to my private builds would make things easier for you and me. ;)

Re: Compiling FileBot

Posted: 10 Mar 2018, 23:59
by kim
yes it's not that easy :(
but a hint is
build.xml:829
=
open "build.xml"
look at line "829"
https://github.com/filebot/filebot/blob ... d.xml#L829

(*this is general info)
this will give you more info on what the problem is...
maybe it's not a needed part? then try comment it out

when all else fail... GOOGLE it ;)

btw: check if JDK9 is used ;)
echo %JAVA_HOME%

Re: Compiling FileBot

Posted: 12 Mar 2018, 18:03
by Wosser1
I was trying to build a version as well.

Seeing it fails at:

Code: Select all

revision:

BUILD FAILED
You correctly assumed it has to do with the IvyDE dependencies. The ANT script expects to find the additional jars in:

Code: Select all

filebot\lib\ivy
Look at build.xml:735 for the list. I had to install the Apache IvyDE plugin from the eclipse marktplace and then resolve the dependencies using the ivy.xml file.

The rest of the build completes successfully and I am able to use the resulting jar directly.

However, as stated here and here, running filebot with the exe's provided in

Code: Select all

filebot\installer\msi
(like a regular deployment would), results in a Java error saying it cannot run the jar file with JRE1.8.0 (because it was compiled with JDK9.0.4), but it also needs JRE1.8.0 to run (when only having version 9 on the system).

Re: Compiling FileBot

Posted: 23 Mar 2018, 11:54
by devster
Wait, does this mean that it's actually possible to have access to the private builds?
Reading the license I'm allowed to build FileBot packages as long as it's not for MacOS or Windows, maybe not publish them.
I'm definitely not sure about the instructions.

I've also noticed that recently there's been some major restructuring in the way rednoah builds the thing and it requires a lot more configuration than before, especially since I don't use Eclipse and I wanted to automate it from Jenkins or similar.