Maybe you guys can try that out and make sure it works in your environment.
The reason I look up from your current directory is that it allows you to use flux from a different installation from the one you are developing with.
lbertrandSat 6 Mar 2010
Works for me...
But I am still not sure the code makes still sense with the new Env pod... You want to make sure that you are not building one of the core pods with flux, so the only comparison that should happen is to make sure the the build.fan home directory is not the one Env.cur.homeDir...
I don't see the point of the method findFanHome - is it not always Env.cur.homeDir? Or do you consider we may launch flux from Fantom-1.0.50 but running build.fan from a Fantom-1.0.51?
lbertrand Fri 5 Mar 2010
I have the feeling the build command is broken in Flux
When running the fan.exe command, the path is built from the
fanHome
variable which is either in theworkDir
or thehomeDir
...It should directly be using
Env.cur.homeDir
casey Fri 5 Mar 2010
The build command in flux isn't working for me either.
lbertrand Fri 5 Mar 2010
As explain above the fix is straightforward...
In file
{fan.homeDir}/etc/flux/tools/Build.fan
, line 109 changefanHome
toEnv.cur.homeDir
and the build command will work again...Line 109 should be after fix
fan := Env.cur.homeDir + (Desktop.isWindows ? `bin/fan.exe` : `bin/fan`)
brian Sat 6 Mar 2010
I pushed a fix for that problem - changeset
Maybe you guys can try that out and make sure it works in your environment.
The reason I look up from your current directory is that it allows you to use flux from a different installation from the one you are developing with.
lbertrand Sat 6 Mar 2010
Works for me...
But I am still not sure the code makes still sense with the new Env pod... You want to make sure that you are not building one of the core pods with flux, so the only comparison that should happen is to make sure the the build.fan home directory is not the one Env.cur.homeDir...
I don't see the point of the method findFanHome - is it not always Env.cur.homeDir? Or do you consider we may launch flux from Fantom-1.0.50 but running build.fan from a Fantom-1.0.51?