jetbrains mps preview generate text with command line


i design my language and make sandbox for my language my language export kotlin and type script classes and enum classes i want use this export files to another projects and i want make files with jenkins so should make files with shell i read this page and cant use it because in this file

mps.home = // installation directory of MPS itself
mbeddr.home = // the root directory relative to which all other directories
              // to projects etc. are specified

i know where is mps home and no problem but where is mbeddr home?

if build.xml file

<project name="com.mbeddr.core build and test" default="all">

  <property file=""/>

  <path id="mps.ant.path">
      <pathelement location="${mps.home}/lib/mps-backend.jar"/>
      <pathelement location="${mps.home}/lib/jdom.jar"/>
      <pathelement location="${mps.home}/lib/log4j.jar"/>
      <pathelement location="${mps.home}/lib/mps-core.jar"/>

  <taskdef resource="jetbrains/mps/build/ant/antlib.xml"

  <jvmargs id="myargs">
      <arg value="-ea"/>
      <arg value="-Xss1024k"/>
      <arg value="-Xmx1024m"/>
      <arg value="-XX:MaxPermSize=92m"/>
      <arg value="-XX:+HeapDumpOnOutOfMemoryError"/>

  <!-- here is the place where all the following example code goes -->


jvmargs hase error!!!!!!!

<property name="project.mpr" value="relative/path/to/project/project.mpr"/>

<target name="build-languages-in-project">
    <jvmargs refid="myargs"/>
    <project file="${mbeddr.home}/${project.mpr}"/>

where is mpr file? i dont find any mpr file!

and dont recodnized <mps.generate>

Comment actions Permalink

The help page is outdated, don't use it. It's impractical to craft ant xml manually. Instead, you can use build language to describe your project, and generate Ant build script from the build project.

If you don't use any mbeddr library, then there'd be no mbeddr dependency at all.

Comment actions Permalink

Thank you very much
How do I do this?

Comment actions Permalink

Start with the help page, this one doesn't look outdated.

You'd need a solution with a model using and languages, BuildProject root to describe how to get your project modules (languages, solutions) built and deployed. There's also an action 'Build Solution' in project's context menu that might be helpful to get you started (it creates a solution, BuildProject root and entries for modules), although don't expect it to give complete result, you'd still need to dive into build language to understand what's going on.


Please sign in to leave a comment.