jetbrains mps preview generate text with command line

0

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 https://www.jetbrains.com/help/mps/howto-mps-and-ant.html#workingwithmpsandant and cant use it because

build.properties 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="build.properties"/>

  <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"/>
  </path>

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

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

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

</project>

jvmargs hase error!!!!!!!

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

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

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

and dont recodnized <mps.generate>

0
3 comments
Avatar
Permanently deleted user

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.

0

Thank you very much
How do I do this?

0
Avatar
Permanently deleted user

Start with the help page https://www.jetbrains.com/help/mps/build-language.html, this one doesn't look outdated.

You'd need a solution with a model using j.mps.build and j.m.build.mps 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.

0

Please sign in to leave a comment.