Failed Source Build

11 views
Skip to first unread message

Jen

unread,
Jul 21, 2011, 1:19:04 PM7/21/11
to formulacompiler-users
Hi,

Forgive me if this a basic question; I am fairly new to Java/Eclipse
and am having some trouble setting up AFC. I tried running "ant -q
build" to rebuild all of the sources but got the following error:

BUILD FAILED
C:\formulacompiler-1.4.0\build.xml:162: The following error occurred
while execu
ting this line:
C:\formulacompiler-1.4.0\build.xml:106: The following error occurred
while execu
ting this line:
C:\formulacompiler-1.4.0\components\build-common.xml:226: Execute
failed: java.i
o.IOException: Cannot run program "hg" (in directory "C:
\formulacompiler-1.4.0\c
omponents\runtime"): CreateProcess error=2, The system cannot find the
file spec
ified


I thought I followed all of the setup instructions (for the pre-
packaged download) pretty carefully but maybe I'm missing something.
If someone could help me figure out what the problem is I would really
appreciate it--I have high hopes that AFC is what I've spent the last
6 weeks looking for to help me create my spreadsheet-based app!

Thanks,
Jen

Vladimir Korenev

unread,
Jul 25, 2011, 10:32:52 AM7/25/11
to formulacompiler-users
Hi Jen,

This error indicates that hg (Mercurial executable) cannot be found.
We use Mercurial version control for AFC development.

Of course Mercurial should not be required to build AFC from source
distribution package. This will be fixed in the next AFC release.

To fix the current build you can either
1. install Mercurial and check that hg is in your path
or
2. pull the latest sources from project repository (you will have to
install Mercurial for that anyway)
or
3. edit the following line in build.xml and components/build-
common.xml:
<exec executable="hg" dir="${basedir}" outputproperty="hgrev">
to make it look like this:
<exec executable="hg" dir="${basedir}" outputproperty="hgrev"
failifexecutionfails="false">

Regards,
Vladimir

Jen Liu

unread,
Jul 25, 2011, 4:54:07 PM7/25/11
to formulacom...@googlegroups.com
Thank you so much!! It finally works! I will probably have more questions soon but for now I am excited to try building my app with AFC :)

Jen

--
You received this message because you are subscribed to the Google Groups "formulacompiler-users" group.
To post to this group, send email to formulacom...@googlegroups.com.
To unsubscribe from this group, send email to formulacompiler-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/formulacompiler-users?hl=en.


Reply all
Reply to author
Forward
0 new messages