87 "init_components " + quote(components_base) + " " + quote(admin + "/" + name)) ::: |
87 "init_components " + quote(components_base) + " " + quote(admin + "/" + name)) ::: |
88 components.map(name => |
88 components.map(name => |
89 "init_component " + quote(components_base) + "/" + name) |
89 "init_component " + quote(components_base) + "/" + name) |
90 } |
90 } |
91 |
91 |
92 def resolve_components(echo: Boolean = false): Unit = { |
92 def resolve_components( |
|
93 echo: Boolean = false, |
|
94 clean_platforms: Option[List[Platform.Family.Value]] = None, |
|
95 clean_archives: Boolean = false |
|
96 ): Unit = { |
93 val missing = Path.split(getenv("ISABELLE_COMPONENTS_MISSING")) |
97 val missing = Path.split(getenv("ISABELLE_COMPONENTS_MISSING")) |
94 for (path <- missing) { |
98 for (path <- missing) { |
95 Components.resolve(path.dir, path.file_name, ssh = ssh, |
99 Components.resolve(path.dir, path.file_name, |
|
100 clean_platforms = clean_platforms, |
|
101 clean_archives = clean_archives, |
|
102 ssh = ssh, |
96 progress = if (echo) progress else new Progress) |
103 progress = if (echo) progress else new Progress) |
97 } |
104 } |
98 } |
105 } |
99 |
106 |
100 def scala_build(fresh: Boolean = false, echo: Boolean = false): Unit = { |
107 def scala_build(fresh: Boolean = false, echo: Boolean = false): Unit = { |
140 |
147 |
141 |
148 |
142 def init( |
149 def init( |
143 other_settings: List[String] = init_components(), |
150 other_settings: List[String] = init_components(), |
144 fresh: Boolean = false, |
151 fresh: Boolean = false, |
145 echo: Boolean = false |
152 echo: Boolean = false, |
|
153 clean_platforms: Option[List[Platform.Family.Value]] = None, |
|
154 clean_archives: Boolean = false |
146 ): Unit = { |
155 ): Unit = { |
147 init_settings(other_settings) |
156 init_settings(other_settings) |
148 resolve_components(echo = echo) |
157 resolve_components( |
|
158 echo = echo, |
|
159 clean_platforms = clean_platforms, |
|
160 clean_archives = clean_archives) |
149 scala_build(fresh = fresh, echo = echo) |
161 scala_build(fresh = fresh, echo = echo) |
150 } |
162 } |
151 |
|
152 |
163 |
153 |
164 |
154 /* cleanup */ |
165 /* cleanup */ |
155 |
166 |
156 def cleanup(): Unit = { |
167 def cleanup(): Unit = { |