Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

305 lines (288 sloc) 17.567 kB
<project name="buildPlugin" default="build" basedir="../">
<!-- Generated by MPS -->
<property name="build.dir" location="build" />
<property name="build.tmp" location="${build.dir}/tmp/buildPlugin" />
<property name="build.layout" location="${build.dir}/artifacts/buildPlugin" />
<property name="plugin.version" value="1.0.SNAPSHOT" />
<tstamp>
<format property="date" pattern="yyyyMMdd" />
</tstamp>
<property name="idea_home" location="" />
<property name="mps_home" location="${basedir}" />
<property name="artifacts.buildCore" location="${build.dir}/artifacts/buildCore" />
<property name="artifacts.buildCoreEx" location="${build.dir}/artifacts/buildCoreEx" />
<property name="artifacts.buildBuild" location="${build.dir}/artifacts/buildBuild" />
<property name="artifacts.IDEA" location="${idea_home}" />
<property file="${artifacts.buildCore}/build.properties" prefix="import.buildCore" />
<property name="buildCore.version" value="${import.buildCore.buildCore.version}" />
<path id="path.javac2.classpath">
<fileset dir="${idea_home}/lib">
<include name="javac2.jar" />
<include name="jdom.jar" />
<include name="asm.jar" />
<include name="asm-commons.jar" />
<include name="jgoodies-forms.jar" />
</fileset>
</path>
<path id="path.java.library.idea-vcs">
<fileset dir="${artifacts.IDEA}/plugins/git4idea/lib" includes="*.jar" />
<fileset dir="${artifacts.IDEA}/plugins/svn4idea/lib" includes="*.jar" />
</path>
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="path.javac2.classpath" />
<target name="assemble" depends="classes, fetchDependencies">
<mkdir dir="${build.layout}/mps-core" />
<mkdir dir="${build.layout}/mps-core/languages" />
<copy todir="${build.layout}/mps-core/languages">
<fileset dir="${artifacts.buildCore}/mps-core/languages" />
</copy>
<copy todir="${build.layout}/mps-core/languages">
<fileset dir="${artifacts.buildCoreEx}/languages" />
</copy>
<copy todir="${build.layout}/mps-core/languages">
<fileset dir="${artifacts.buildCoreEx}/plugins/mps-core/languages" />
</copy>
<mkdir dir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/asm.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/diffutils-1.2.1.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-backend.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-closures.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-collections.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-core.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-editor.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-editor-api.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-platform.jar" todir="${build.layout}/mps-core/lib" />
<copy file="${artifacts.buildCore}/mps-core/lib/mps-tuples.jar" todir="${build.layout}/mps-core/lib" />
<mkdir dir="${build.tmp}/default/mps-plugin.jar" />
<mkdir dir="${build.tmp}/default/mps-plugin.jar/META-INF" />
<copy todir="${build.tmp}/default/mps-plugin.jar/META-INF">
<fileset file="${mps_home}/IdeaPlugin/mps-core/META-INF/plugin.xml" />
<filterchain>
<tokenfilter>
<replaceregex pattern="../classes/META-INF/" replace="" flags="gi" />
</tokenfilter>
<tokenfilter>
<replaceregex pattern="../classes/jetbrains/" replace="../jetbrains/" flags="gi" />
</tokenfilter>
</filterchain>
</copy>
<jar destfile="${build.layout}/mps-core/lib/mps-plugin.jar">
<fileset dir="${build.tmp}/java/out/mps-plugin" />
<fileset dir="${mps_home}/workbench/mps-platform/source_gen">
<include name="jetbrains/mps/ide/platform/actions/PlatformActions.xml" />
</fileset>
<fileset dir="${mps_home}/workbench/mps-editor/source_gen">
<include name="jetbrains/mps/ide/editor/actions/MPSEditorActions.xml" />
</fileset>
<zipfileset file="${mps_home}/workbench/mps-platform/source/META-INF/MPSCore.xml" prefix="META-INF" />
<zipfileset file="${mps_home}/workbench/mps-editor/source/META-INF/MPSEditor.xml" prefix="META-INF" />
<fileset dir="${build.tmp}/default/mps-plugin.jar" />
</jar>
<echo file="${build.layout}/mps-core/build.number">version=${buildCore.version}${line.separator}plugin.version=${plugin.version}</echo>
<mkdir dir="${build.layout}/mps-vcs" />
<mkdir dir="${build.layout}/mps-vcs/lib" />
<jar destfile="${build.layout}/mps-vcs/lib/mps-vcs-core.jar">
<fileset dir="${build.tmp}/java/out/mps-vcs-core" />
</jar>
<mkdir dir="${build.tmp}/default/mps-vcs-platform.jar" />
<mkdir dir="${build.tmp}/default/mps-vcs-platform.jar/META-INF" />
<copy todir="${build.tmp}/default/mps-vcs-platform.jar/META-INF">
<fileset file="${mps_home}/IdeaPlugin/mps-vcs/META-INF/plugin.xml" />
<filterchain>
<tokenfilter>
<replaceregex pattern="../classes/META-INF/" replace="" flags="gi" />
</tokenfilter>
<tokenfilter>
<replaceregex pattern="../classes/jetbrains/" replace="../jetbrains/" flags="gi" />
</tokenfilter>
</filterchain>
</copy>
<jar destfile="${build.layout}/mps-vcs/lib/mps-vcs-platform.jar">
<fileset dir="${build.tmp}/java/out/mps-vcs-platform" />
<fileset dir="${build.tmp}/default/mps-vcs-platform.jar" />
</jar>
<copy todir="${build.layout}">
<fileset dir="${artifacts.buildBuild}/plugins" />
</copy>
<mkdir dir="${build.layout}/mps-java" />
<mkdir dir="${build.layout}/mps-java/lib" />
<mkdir dir="${build.tmp}/default/mps-java.jar" />
<mkdir dir="${build.tmp}/default/mps-java.jar/META-INF" />
<copy todir="${build.tmp}/default/mps-java.jar/META-INF">
<fileset file="${mps_home}/IdeaPlugin/mps-java/META-INF/plugin.xml" />
<filterchain>
<tokenfilter>
<replaceregex pattern="../classes/META-INF/" replace="" flags="gi" />
</tokenfilter>
<tokenfilter>
<replaceregex pattern="../classes/jetbrains/" replace="../jetbrains/" flags="gi" />
</tokenfilter>
</filterchain>
</copy>
<jar destfile="${build.layout}/mps-java/lib/mps-java.jar">
<fileset dir="${build.tmp}/java/out/mps-java" />
<zipfileset file="${mps_home}/plugins/mpsjava/platform/platform.msd" prefix="modules/jetbrains.mps.ide.java.platform" />
<zipfileset dir="${mps_home}/plugins/mpsjava/platform" includes="icons/**, resources/**" prefix="modules/jetbrains.mps.ide.java.platform" />
<zipfileset dir="${mps_home}/plugins/mpsjava/platform/models" includes="**/*.mps, **/*.metadata, **/*.history" prefix="modules/jetbrains.mps.ide.java.platform/models" />
<fileset dir="${build.tmp}/default/mps-java.jar" />
</jar>
<echo file="${build.layout}/build.properties">buildPlugin.plugin.version=${plugin.version}${line.separator}buildPlugin.date=${date}${line.separator}buildCore.version=${buildCore.version}</echo>
</target>
<target name="buildDependents">
<ant antfile="build/buildCore.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="build/buildCoreEx.xml" inheritAll="false" useNativeBasedir="true" />
<ant antfile="build/buildBuild.xml" inheritAll="false" useNativeBasedir="true" />
</target>
<target name="fetchDependencies" />
<target name="build" depends="assemble, check" />
<target name="clean">
<delete dir="${build.tmp}" />
<delete dir="${build.layout}" />
</target>
<target name="compileJava" depends="java.compile.mps-plugin, java.compile.mps-vcs-core, java.compile.mps-vcs-platform, java.compile.mps-java" />
<target name="processResources" />
<target name="classes" depends="compileJava, processResources" />
<target name="test" depends="classes" />
<target name="check" depends="test" />
<target name="java.compile.mps-plugin" depends="fetchDependencies">
<mkdir dir="${build.tmp}/java/out/mps-plugin" />
<javac2 destdir="${build.tmp}/java/out/mps-plugin" fork="true" memorymaximumsize="1024m" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${mps_home}/IdeaPlugin/mps-core/src" />
</src>
<classpath>
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-closures.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-collections.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-tuples.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-core.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-platform.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor-api.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-backend.jar" />
<fileset file="${artifacts.IDEA}/lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar" />
<fileset file="${artifacts.IDEA}/lib/guava-11.0.1.jar" />
<fileset file="${artifacts.IDEA}/lib/jdom.jar" />
<fileset file="${artifacts.IDEA}/lib/log4j.jar" />
<fileset file="${artifacts.IDEA}/lib/trove4j.jar" />
<fileset file="${artifacts.IDEA}/lib/xstream.jar" />
<fileset file="${artifacts.IDEA}/lib/annotations.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-lang-2.4.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-logging-1.1.1.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/asm.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/diffutils-1.2.1.jar" />
<fileset dir="${artifacts.IDEA}/lib" includes="*.jar" />
<fileset dir="${artifacts.IDEA}/lib/ant/lib" includes="*.jar" />
</classpath>
</javac2>
<copy todir="${build.tmp}/java/out/mps-plugin">
<fileset dir="${mps_home}/IdeaPlugin/mps-core/resources" />
<fileset dir="${mps_home}/IdeaPlugin/mps-core/src" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
</copy>
</target>
<target name="java.compile.mps-vcs-core" depends="fetchDependencies">
<mkdir dir="${build.tmp}/java/out/mps-vcs-core" />
<javac2 destdir="${build.tmp}/java/out/mps-vcs-core" fork="true" memorymaximumsize="1024m" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${mps_home}/plugins/vcs-core/core/source_gen" />
</src>
<classpath>
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-closures.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-collections.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-tuples.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-core.jar" />
<fileset file="${artifacts.IDEA}/lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar" />
<fileset file="${artifacts.IDEA}/lib/guava-11.0.1.jar" />
<fileset file="${artifacts.IDEA}/lib/jdom.jar" />
<fileset file="${artifacts.IDEA}/lib/log4j.jar" />
<fileset file="${artifacts.IDEA}/lib/trove4j.jar" />
<fileset file="${artifacts.IDEA}/lib/xstream.jar" />
<fileset file="${artifacts.IDEA}/lib/annotations.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-lang-2.4.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-logging-1.1.1.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/asm.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/diffutils-1.2.1.jar" />
<path refid="path.java.library.idea-vcs" />
</classpath>
</javac2>
<copy todir="${build.tmp}/java/out/mps-vcs-core">
<fileset dir="${mps_home}/plugins/vcs-core/core/source_gen" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
</copy>
</target>
<target name="java.compile.mps-vcs-platform" depends="java.compile.mps-vcs-core, fetchDependencies">
<mkdir dir="${build.tmp}/java/out/mps-vcs-platform" />
<javac2 destdir="${build.tmp}/java/out/mps-vcs-platform" fork="true" memorymaximumsize="1024m" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${mps_home}/plugins/vcs/common/source" />
<path location="${mps_home}/plugins/vcs/common/source_gen" />
<path location="${mps_home}/IdeaPlugin/mps-vcs/source" />
</src>
<classpath>
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-closures.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-collections.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-tuples.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-core.jar" />
<pathelement path="${build.tmp}/java/out/mps-vcs-core" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-platform.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor-api.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor.jar" />
<fileset file="${artifacts.IDEA}/lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar" />
<fileset file="${artifacts.IDEA}/lib/guava-11.0.1.jar" />
<fileset file="${artifacts.IDEA}/lib/jdom.jar" />
<fileset file="${artifacts.IDEA}/lib/log4j.jar" />
<fileset file="${artifacts.IDEA}/lib/trove4j.jar" />
<fileset file="${artifacts.IDEA}/lib/xstream.jar" />
<fileset file="${artifacts.IDEA}/lib/annotations.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-lang-2.4.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-logging-1.1.1.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/asm.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/diffutils-1.2.1.jar" />
<path refid="path.java.library.idea-vcs" />
<fileset dir="${artifacts.IDEA}/lib" includes="*.jar" />
</classpath>
</javac2>
<copy todir="${build.tmp}/java/out/mps-vcs-platform">
<fileset dir="${mps_home}/plugins/vcs/common/source" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/plugins/vcs/common/source_gen" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/IdeaPlugin/mps-vcs/source" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
</copy>
</target>
<target name="java.compile.mps-java" depends="java.compile.mps-plugin, fetchDependencies">
<mkdir dir="${build.tmp}/java/out/mps-java" />
<javac2 destdir="${build.tmp}/java/out/mps-java" fork="true" memorymaximumsize="1024m" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${mps_home}/IdeaPlugin/mps-java/debugger/src" />
<path location="${mps_home}/plugins/mpsjava/platform/source_gen" />
</src>
<classpath>
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-closures.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-collections.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-tuples.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-core.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-platform.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor-api.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/mps-editor.jar" />
<pathelement path="${build.tmp}/java/out/mps-plugin" />
<fileset file="${mps_home}/lib/tools.jar" />
<fileset file="${artifacts.IDEA}/lib/org.eclipse.jdt.core_3.5.2.v_981_R35x.jar" />
<fileset file="${artifacts.IDEA}/lib/guava-11.0.1.jar" />
<fileset file="${artifacts.IDEA}/lib/jdom.jar" />
<fileset file="${artifacts.IDEA}/lib/log4j.jar" />
<fileset file="${artifacts.IDEA}/lib/trove4j.jar" />
<fileset file="${artifacts.IDEA}/lib/xstream.jar" />
<fileset file="${artifacts.IDEA}/lib/annotations.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-lang-2.4.jar" />
<fileset file="${artifacts.IDEA}/lib/commons-logging-1.1.1.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/asm.jar" />
<fileset file="${artifacts.buildCore}/mps-core/lib/diffutils-1.2.1.jar" />
<fileset dir="${artifacts.IDEA}/lib" includes="*.jar" />
</classpath>
</javac2>
<copy todir="${build.tmp}/java/out/mps-java">
<fileset dir="${mps_home}/IdeaPlugin/mps-java/debugger/src" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/plugins/mpsjava/platform/source_gen" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
</copy>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.