Question

I need to use fantom for a University project. I downloaded the fantom environment, and fantomIDE to go with it. It all works great.

My problem:

I have created a project named test to test some things and check all goes and runs. When I checked the fantom installation folders I fond a file named after my test project, and running it resulted with the test code.

I don't want every class I create to be exported to the installation folder of fantom (mostly because I don't want to crowd the name space with to many pods).

Is this by design? Can I prevent this from happening?

Was it helpful?

Solution

Add a blank file called fan.props to the root directory of your project folder. This is a non-documented shortcut to create a PathEnv.

You can verify your setup by doing a fan -version:

andy:~/proj/draft$ fan -version
Fantom Launcher
Copyright (c) 2006-2013, Brian Frank and Andy Frank
Licensed under the Academic Free License version 3.0

Java Runtime:
  java.version:    1.6.0_65
  java.vm.name:    Java HotSpot(TM) 64-Bit Server VM
  java.vm.vendor:  Apple Inc.
  java.vm.version: 20.65-b04-462
  java.home:       /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  fan.platform:    macosx-x86_64
  fan.version:     1.0.65
  fan.env:         util::PathEnv
  fan.home:        /Users/andy/proj/fantom/dev

Env Path:
  /Users/andy/proj/draft (work)
  /Users/andy/proj/fantom/dev (home)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top