35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/project.rb', line 35
def find_project(dir)
project = super(dir)
config_file = File.join(dir, 'config', 'asclass_config.rb')
rakefile = File.join(dir, 'rakefile.rb')
if(File.exists?(rakefile))
require rakefile
@default_templates = DEFAULT_TEMPLATES
elsif(File.exists?(File.join(dir, '.as2_classpath')))
@default_templates = @@DEFAULT_AS2_TEMPLATES
elsif(File.exists?(File.join(dir, '.actionScriptProperties')))
@default_templates = @@DEFAULT_AS3_TEMPLATES
end
return project
end
|