Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

142 lines (129 sloc) 8.096 kb
<project name="buildPluginTests" default="build" basedir="../">
<!-- Generated by MPS -->
<property name="build.dir" location="build" />
<property name="build.tmp" location="${build.dir}/tmp/buildPluginTests" />
<property name="build.layout" location="${build.dir}/artifacts/buildPluginTests" />
<property name="idea_home" location="" />
<property name="mps_home" location="${basedir}" />
<property name="artifacts.buildPlugin" location="${build.dir}/artifacts/buildPlugin" />
<property name="artifacts.IDEA" location="${idea_home}" />
<property file="${artifacts.buildPlugin}/build.properties" prefix="import.buildPlugin" />
<property name="buildPlugin.plugin.version" value="${import.buildPlugin.buildPlugin.plugin.version}" />
<property name="buildPlugin.date" value="${import.buildPlugin.buildPlugin.date}" />
<property name="buildCore.version" value="${import.buildPlugin.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>
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="path.javac2.classpath" />
<target name="assemble" depends="classes">
<mkdir dir="${build.layout}/mps-core" />
<mkdir dir="${build.layout}/mps-core/lib" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core" />
<mkdir dir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core/tests" />
<copy todir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core/tests">
<fileset dir="${mps_home}/IdeaPlugin/tests/blProject">
<include name="blProject.iml" />
<include name="models/main.mps" />
</fileset>
<flattenmapper />
</copy>
<copy todir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core/tests">
<fileset dir="${mps_home}/IdeaPlugin/tests/simple">
<include name="simple.iml" />
<include name="models/simple.mps" />
</fileset>
<flattenmapper />
</copy>
<copy todir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core/tests">
<fileset dir="${mps_home}/IdeaPlugin/tests/makeTests">
<include name="makeTests.iml" />
<include name="models/**/*" />
<include name="src/**/*" />
</fileset>
<flattenmapper />
</copy>
<copy todir="${build.tmp}/default/mps-plugin-tests.jar/jetbrains/mps/idea/core/tests">
<fileset dir="${mps_home}/IdeaPlugin/tests/makeTestBroken">
<include name="makeTestBroken.iml" />
<include name="models/**/*" />
</fileset>
<flattenmapper />
</copy>
<jar destfile="${build.layout}/mps-core/lib/mps-plugin-tests.jar">
<fileset dir="${build.tmp}/java/out/mps-plugin-tests" />
<zipfileset file="${mps_home}/IdeaPlugin/tests/editorTests/models/test.mps" prefix="jetbrains/mps/idea/core/tests" />
<fileset dir="${build.tmp}/default/mps-plugin-tests.jar" />
</jar>
<echo file="${build.layout}/build.properties">buildPlugin.plugin.version=${buildPlugin.plugin.version}${line.separator}buildPlugin.date=${buildPlugin.date}${line.separator}buildCore.version=${buildCore.version}</echo>
</target>
<target name="buildDependents">
<ant antfile="IdeaPlugin/buildPlugin.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-tests" />
<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-tests" depends="fetchDependencies">
<mkdir dir="${build.tmp}/java/out/mps-plugin-tests" />
<javac2 destdir="${build.tmp}/java/out/mps-plugin-tests" fork="true" memorymaximumsize="256m" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:none" />
<src>
<path location="${mps_home}/IdeaPlugin/mps-core/testSrc" />
<path location="${mps_home}/languages/languageDesign/editor/tests/jetbrains.mps.lang.editor.tests/testSrc" />
<path location="${mps_home}/languages/languageDesign/editor/tests/jetbrains.mps.lang.editor.tests/source_gen" />
<path location="${mps_home}/languages/languageDesign/test/solutions/jetbrains.mps.lang.test.runtime/source_gen" />
<path location="${mps_home}/testbench/source" />
<path location="${mps_home}/testbench/source_gen" />
</src>
<classpath>
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-closures.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-collections.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-tuples.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-core.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-platform.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-editor-api.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-editor.jar" />
<fileset file="${artifacts.buildPlugin}/mps-core/lib/mps-plugin.jar" />
<fileset file="${artifacts.buildPlugin}/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.buildPlugin}/mps-core/lib/asm.jar" />
<fileset file="${artifacts.buildPlugin}/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-tests">
<fileset dir="${mps_home}/IdeaPlugin/mps-core/testSrc" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/languages/languageDesign/editor/tests/jetbrains.mps.lang.editor.tests/testSrc" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/languages/languageDesign/editor/tests/jetbrains.mps.lang.editor.tests/source_gen" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/languages/languageDesign/test/solutions/jetbrains.mps.lang.test.runtime/source_gen" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/testbench/source" includes="**/*.properties, **/*.xml, **/*.html, **/*.png, **/*.txt, **/*.ico, **/*.zip, **/*.info" />
<fileset dir="${mps_home}/testbench/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.