[
https://issues.apache.org/jira/browse/IGNITE-28799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aleksandr Chesnokov updated IGNITE-28799:
-----------------------------------------
Description:
>From docs/README.adoc: Code snippets must be taken from a *compilable* source
>code file (e.g. java, cs, js, etc).
But for now a lot of classes are not compilable. As an example, see
IGNITE-28788 or JavaThinClient.java with no ";" or WarmUpStrategy.java
Run to reproduce:
{noformat}
./mvnw -f docs/_docs/code-snippets/java/pom.xml -DskipTests compile{noformat}
was:
Code snippet for session context is invalid
{noformat}
try (Ignite ign = Ignition.start(ignCfg)) {
Map<String, String> appAttrs = F.asMap("SESSION_ID", "1234");
Ignite app = Ignite.withApplicationAttributes(appAttrs);
//Your code here...
}{noformat}
# F class is for private usage and is not part of public api
# We do not have static method Ignite to create node with attributes
> Fix compilation of code snipptes
> --------------------------------
>
> Key: IGNITE-28799
> URL: https://issues.apache.org/jira/browse/IGNITE-28799
> Project: Ignite
> Issue Type: Task
> Components: documentation
> Reporter: Aleksandr Chesnokov
> Assignee: Aleksandr Chesnokov
> Priority: Major
> Labels: IEP-129, doc, ise
> Fix For: 2.19
>
>
> From docs/README.adoc: Code snippets must be taken from a *compilable* source
> code file (e.g. java, cs, js, etc).
> But for now a lot of classes are not compilable. As an example, see
> IGNITE-28788 or JavaThinClient.java with no ";" or WarmUpStrategy.java
> Run to reproduce:
> {noformat}
> ./mvnw -f docs/_docs/code-snippets/java/pom.xml -DskipTests compile{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)