Empty generated standalone IDE for windows
I am attempting to create a Standalone IDE for our DSL using MPS 2017.1 and JDK 1.8
You can find below the two build scripts, following the guidelines in https://confluence.jetbrains.com/display/MPSD20171/Building+standalone+IDEs+for+your+languages. Before I tried to use the wizard, but after the first generation of build files I had to continue manually, customizing them.
They seem to run successfully, but something went different than expected :
- I just have a tar and a zip file (no directory apart, as it was expected in the following image taken from the above url). Not so surprisingly to me, because I cannot find where in the build files it should be created.
- but I need a standalone IDE for windows and, according to the docs, I should find the bin/win directory and copy its contents under the generic installation corresponding directory
Sadly, without that directory, I cannot find anything to copy. To be sure, I tried also to find out if they were in the produced zip files, but no, I can find the directory in the zip, but it's empty.
It seems to me that the build process lacks the instructions to build that directory, but I don't know how to generate them
Any suggestions?
Thank you in advance.
******* First build file: *****
build MrJEditor generates build.xml
base directory: ../../ [JComponent javax.swing.JButton[,495,46,20x20,alignmentX=0.0,alignmentY=0.5,border=com.intellij.ide.ui.laf.darcula.ui.DarculaButtonPainter@36d25d5d,flags=296,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=20,height=20],defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=com.intellij.util.ui.JBInsets$JBInsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=...,defaultCapable=true] ]
use plugins:
java
mps
macros:
var date = date yyyyMMdd
var build.number = MrJEditor-171.SNAPSHOT
folder mps_home = ./../../../../Program Files (x86)/JetBrains/MPS 2017.1
dependencies:
mpsStandalone (artifacts location $mps_home)
mpsMakePlugin (artifacts location $mps_home/plugins)
com.dslfoundry.plaintextgen (artifacts location .)
project structure:
idea branding
version
codename MrJEditor
1.0.<no bugfixNr>, eap false
company <no company>
build number ${build.number}, date ${date}
logo splash screen ./icons/splash.png
textcolor 002387
progressColor <no progressColor>
progressX <no progressX>
progressY <no progressY>
progressHeight <no progressHeight>
about screen ./icons/about.png
icons
16x16 ./icons/MPS16.png
32x32 ./icons/MPS32.png
32x32 opaque ./icons/MPS32.png
128x128 <no icon128>
icon <no icon>
icon toolWindow <no iconToolWindow>
names
name MrJEditor
full name MrJEditor
welcome screen ./icons/logo.png
editor background-url default background
plugins <no plugins>
<no updateWebsite>
<no help>
documentation <no documentation>
support <no support>
feedback url <no feedbackUrl>
whats new <no whatsnew>
<no keymap>
third-party <no thirdparty>
custom elements
<< ... >>
<no stats>
idea plugin MrJEditor
name MrJEditor
short (folder) name MrJEditor
description <no description>
version 1.0
<< no vendor >>
content:
MrJEditor
dependencies:
jetbrains.mps.core
com.dslfoundry.plaintextgen
<< ... >>
mps group MrJEditor
solution OpenNLP
load from ./solutions/OpenNLP/OpenNLP.msd
language MrJEditor
load from ./languages/MrJEditor/MrJEditor.mpl
default layout:
import mpsStandalone::languages
import mpsStandalone::license
folder bin
import files from mpsStandalone::bin
include log.xml
include log4j.dtd
file $mps_home/bin/idea.properties
replace regex "\.MPS(\w+)" /g -> \.${build.number}
folder lib
import files from mpsStandalone::lib
exclude MPS-src.zip
exclude branding.jar
jar branding.jar
files of idea branding MrJEditor
folder plugins
import mpsStandalone::plugins/cvsIntegration
import //plugins/svn4idea
import //plugins/git4idea
import mpsStandalone::plugins/mps-core
plugin MrJEditor
file ./opennlp-tools-1.7.2.jar
properties file build.number
build.number = ${build.number}
date = ${date}
version = 1.0
<<additional aspects>>
C:/Users/adepase/MPSProjects/MrJEditor_real
**** Second build (distribution) file ****:
build MrJEditorDistribution generates buildDistribution.xml
base directory: ../../ [JComponent javax.swing.JButton[,495,46,20x20,alignmentX=0.0,alignmentY=0.5,border=com.intellij.ide.ui.laf.darcula.ui.DarculaButtonPainter@36d25d5d,flags=296,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=20,height=20],defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=com.intellij.util.ui.JBInsets$JBInsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=...,defaultCapable=true] ]
use plugins:
<< ... >>
macros:
folder mps_home = ./../../mpswork/MPS 2017.1
var version = 2017.1.2
dependencies:
MrJEditor
project structure:
<< ... >>
default layout:
tar ${build.number}-linux.tar.gz (compression gzip)
folder MrJEditor ${version}
import files from MrJEditor::/
<any>
folder bin
file $mps_home/bin/linux/fsnotifier (755)
file $mps_home/bin/linux/fsnotifier64 (755)
file $mps_home/bin/mps.vmoptions (644)
fix eol: convert to a single LF, remove eof (Ctrl-Z): true
file $mps_home/bin/mps64.vmoptions (644)
fix eol: convert to a single LF, remove eof (Ctrl-Z): true
files from $mps_home/bin/linux
exclude **/fsnotifier
exclude **/fsnotifier64
file $mps_home/mps.sh (755)
fix eol: convert to a single LF, remove eof (Ctrl-Z): true
zip ${build.number}.zip
folder MrJEditor ${version}
import files from MrJEditor::/
<any>
folder bin
file $mps_home/bin/mps.vmoptions (644)
file $mps_home/bin/mps.exe.vmoptions (644)
file $mps_home/bin/mps64.vmoptions (644)
file $mps_home/bin/mps64.exe.vmoptions (644)
folder win
files from $mps_home/bin/win
exclude **/*.exe
filemode folders: <default (755)>, files: 755
files from $mps_home/bin/win
include **/*.exe
folder linux
files from $mps_home/bin/linux
exclude **/fsnotifier
exclude **/fsnotifier64
file $mps_home/bin/linux/fsnotifier (755)
file $mps_home/bin/linux/fsnotifier64 (755)
file $mps_home/mps.sh (755)
file $mps_home/mps.bat (755)
<<additional aspects>>
C:/Users/adepase/MPSProjects/MrJEditor_real
Please sign in to leave a comment.
See this for a possible solution: Distribution script (Standalone IDE) – MPS Support | JetBrains