Commit 582b1e47 authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

added build script for creating runtime jar


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent a998f27b
......@@ -65,6 +65,7 @@
<!-- directory names etc -->
<!-- These properties should not be changed -->
<property name="common.name" value="org.eclipse.titan.common"/>
<property name="runtime.name" value="org.eclipse.titan.runtime"/>
<property name="designer.name" value="org.eclipse.titan.designer"/>
<property name="executor.name" value="org.eclipse.titan.executor"/>
<property name="help.name" value="org.eclipse.titan.help"/>
......
......@@ -24,6 +24,10 @@
<pathelement location="${build.dir}/${common.name}/bin"/>
</path>
<path id="runtime.classpath">
<pathelement location="${build.dir}/${runtime.name}/bin"/>
</path>
<path id="designer.classpath">
<pathelement location="${build.dir}/${designer.name}/bin"/>
</path>
......
......@@ -45,6 +45,10 @@
<build.plugin name="${common.name}"/>
</target>
<target name="runtime" depends="init">
<build.plugin name="${runtime.name}"/>
</target>
<target name="designer.plugin" depends="init, common.plugin">
<build.plugin name="${designer.name}"/>
</target>
......@@ -407,7 +411,7 @@
</macrodef>
<target name="updatesite.release"
depends="common.plugin, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
depends="common.plugin, runtime, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
<build.updatesite
site.name="${updatesite.release.name}"
location="${updatesite.release.location}"
......@@ -416,7 +420,7 @@
</target>
<target name="updatesite.FOA"
depends="common.plugin, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
depends="common.plugin, runtime, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
<build.updatesite
site.name="${updatesite.FOA.name}"
location="${updatesite.FOA.location}"
......@@ -424,7 +428,7 @@
</target>
<target name="updatesite.experimental"
depends="common.plugin, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
depends="common.plugin, runtime, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
<build.updatesite
site.name="${updatesite.experimental.name}"
location="${updatesite.experimental.location}"
......@@ -432,7 +436,7 @@
</target>
<target name="updatesite.testing"
depends="common.plugin, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
depends="common.plugin, runtime, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
<build.updatesite
site.name="${updatesite.testing.name}"
location="${updatesite.testing.location}"
......@@ -440,7 +444,7 @@
</target>
<target name="zip"
depends="common.plugin, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
depends="common.plugin, runtime, designer.plugin, executor.plugin, help.plugin, logviewer.plugin, debug.plugin, regressiontests.plugin, titanium.plugin, titanium.regressiontests.plugin">
<build.updatesite
site.name="${updatesite.release.name}"
location="${result.dir}/zip/${version.qualifier}/"
......@@ -455,6 +459,7 @@
<target name="clean">
<clean.plugin name="${common.name}"/>
<clean.plugin name="${runtime.name}"/>
<clean.plugin name="${designer.name}"/>
<clean.plugin name="${executor.name}"/>
<clean.plugin name="${help.name}"/>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
Copyright (c) 2000-2018 Ericsson Telecom AB
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
-->
<project basedir="." default="build" name="org.eclipse.titan.runtime">
<import file="build_import.xml" />
<property name="antlr.src.dir" location="${build.dir}/${runtime.name}/src/org/eclipse/titan/runtime/core/cfgparser"/>
<property name="build.generated.sources.dir" location="${antlr.src.dir}"/>
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.g4"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="bin">
<fileset dir=".">
<include name="toc.xml"/>
<include name="icons/*"/>
<include name="lib/*"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
<delete>
<fileset dir="${antlr.src.dir}" includes="*.java">
<present targetdir="${antlr.src.dir}">
<mapper type="glob" from="*.g" to="*.java" />
</present>
</fileset>
</delete>
</target>
<target depends="clean" name="cleanall"/>
<target name="build.jars" depends="build">
<mkdir dir="${result.dir}/plugins"/>
<update.manifest file="${build.dir}/${runtime.name}/META-INF/MANIFEST.MF"/>
<jar destfile="${result.dir}/plugins/org.eclipse.titan.runtime_${version.qualifier}.jar"
manifest="${build.dir}/${runtime.name}/META-INF/MANIFEST.MF">
<fileset dir="bin"/>
</jar>
</target>
<target name="build" depends="init, antlr4" >
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="${javac.debug}" debuglevel="${javac.debuglevel}"
encoding="${javac.encoding}"
destdir="bin" source="${source}" target="${target}">
<src path="src"/>
<classpath refid="PDE.classpath"/>
<classpath refid="ANTLR4.classpath"/>
</javac>
</target>
<target name="antlr4">
<apply executable="java" parallel="false" verbose="true" timeout="60000" failonerror="true">
<arg value="-classpath" />
<arg value="${antlr4.jar.location}" />
<arg value="org.antlr.v4.Tool" />
<srcfile/>
<arg value="-no-listener" />
<arg value="-no-visitor" />
<arg value="-encoding" />
<arg value="UTF-8" />
<arg value="-package" />
<arg value="org.eclipse.titan.runtime.core.cfgparser" />
<!--
Parsers are dependent to the *.token files (these are generated from lexer),
so the directory of the *.token file is added as lib
NOTE: If parser g4 compilation is made from that directory, then -lib is not needed
-->
<arg value="-lib" />
<arg value="${antlr.src.dir}" />
<fileset dir="${antlr.src.dir}" >
<include name="RuntimeCfgLexer.g4" />
<include name="RuntimeCfgParser.g4" />
<!-- TODO: add new g4 files here -->
</fileset>
</apply>
</target>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment