Printing to standard output from Java code

homepage Forums BridgePoint/xtUML Usage and Training Printing to standard output from Java code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5201
    benjo123
    Participant

    Dear All,

    Is it possible to print to the standard output (System.out.println) without using CorePlugin.out.println?

    I ask it, because I have written Java codes to the model in a Realized Component, and I deploy those codes in a single jar. I forward the method-calls to the jar in the realized component. I would like to deploy only a single jar, that contains all the dependant ones, which include the core.jar that is quite large (12 MBs).

    Is it possible to include only those components from the core.jar that are responsible for printing to the standard output?

    Thank you for the help.

    Best regards,
    Ben

    #5204
    keithbrown
    Keymaster

    Hello Ben,

    Yes, it is possible to call System.out.println from your realized java class. I don’t quite follow the issue you are facing.

    The topic of using Realized classes is covered in Module 18 of the Modeling with xtUML course here on xtuml-org.hustlefish-sites.com (https://xtuml.org/learn/on-line-courses/), perhaps that will help you as well.

    Cheers,
    Keith

    #5205
    benjo123
    Participant

    Dear Keith,

    Thank you for the answer. In the previous versions of BridgePoint I faced with a problem, that I could only print to the standard output, through CorePlugin.out.println, that’s why I thought I shall use that method.

    In the built-in examples still the CorePlugin.out.println is written in the Help chapter for the Realized classes.

    Best regards,
    Ben

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.