Navigation Menu

Skip to content

Commit

Permalink
[lang][core] Move the bootstrap from the core library to the lang lib…
Browse files Browse the repository at this point in the history
…rary.

see #804

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jan 28, 2018
1 parent e2b87eb commit f0d7ccf
Show file tree
Hide file tree
Showing 13 changed files with 313 additions and 235 deletions.
Expand Up @@ -21,7 +21,7 @@ application classpath.

The SARL API defines a SRE bootstrap as:

[:ShowType:]([:bootstrap]$io.sarl.core.SREBootstrap$)
[:ShowType:]([:bootstrap]$io.sarl.bootstrap.SREBootstrap$)


A run-time environment, such as [Janus](http://www.janusproject.io) must provide a service implementing this bootstrap interface.
Expand All @@ -37,7 +37,7 @@ In the following Java code, the [:sre:] utility type is used for retrieving the

[:Success:]
package io.sarl.docs.bootstrap
import io.sarl.core.SRE
import io.sarl.bootstrap.SRE
class MyProgram {
static def main(arguments : String*) {
Expand All @@ -61,7 +61,7 @@ It is the role of the SARL run-time environment to create this instance for you,

[:Success:]
package io.sarl.docs.bootstrap
import io.sarl.core.SRE
import io.sarl.bootstrap.SRE
agent [:myagent](MyAgent) {
}
class MyProgram {
Expand Down
Expand Up @@ -3216,7 +3216,7 @@ programmatically without having a specific SRE library into the *compilation cla

The [:bootstrapname:] service provides the following functions:

[:ShowType:]([:bootstrapqname]{io.sarl.core.[:bootstrapname]$SREBootstrap$})
[:ShowType:]([:bootstrapqname]{io.sarl.bootstrap.[:bootstrapname]$SREBootstrap$})


### Configuration by hand
Expand Down
221 changes: 0 additions & 221 deletions main/apiplugins/io.sarl.core/src/io/sarl/core/bootstrap.sarl

This file was deleted.

3 changes: 2 additions & 1 deletion main/coreplugins/io.sarl.lang.core/META-INF/MANIFEST.MF
Expand Up @@ -7,7 +7,8 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-Vendor: %Bundle-Vendor
Require-Bundle: org.eclipse.xtext.xbase.lib;bundle-version="2.13.0";visibility:=reexport,
javax.inject;bundle-version="1.0.0"
Export-Package: io.sarl.lang,
Export-Package: io.sarl.bootstrap,
io.sarl.lang,
io.sarl.lang.annotation,
io.sarl.lang.core,
io.sarl.lang.scoping.batch,
Expand Down

0 comments on commit f0d7ccf

Please sign in to comment.