[openrtm-commit:02466] r687 - trunk/rtmtools/jp.go.aist.rtm.rtcbuilder
openrtm @ openrtm.org
openrtm @ openrtm.org
2017年 2月 20日 (月) 11:00:33 JST
Author: ga
Date: 2017-02-20 11:00:33 +0900 (Mon, 20 Feb 2017)
New Revision: 687
Added:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml
Log:
Added: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml (rev 0)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml 2017-02-20 02:00:33 UTC (rev 687)
@@ -0,0 +1,127 @@
+<project name="jp.go.aist.rtm.rtcbuilder" default="jar"
+ xmlns:ant4eclipse="antlib:org.ant4eclipse"
+ xmlns:antcontrib="antlib:net.sf.antcontrib" >
+
+ <property name="target.name" value="jp.go.aist.rtm.rtcbuilder" />
+
+ <taskdef name="manifesttask" classname="aist.ManifestTask" />
+
+ <property name="source" value="src"/>
+
+ <property name="dist.dir" value="jar" />
+ <property name="build.dir" value="bin"/>
+ <property name="icons.dir" value="icons"/>
+ <property name="lib.dir" value="lib"/>
+
+ <property environment="env"/>
+ <property name="eclipse.home" value="${env.ECLIPSE_HOME}"/>
+<!--
+ <taskdef resource="net/sf/ant4eclipse/antlib.xml" />
+-->
+ <taskdef uri="antlib:net.sf.antcontrib"
+ resource="net/sf/antcontrib/antlib.xml" />
+ <taskdef uri="antlib:org.ant4eclipse"
+ resource="org/ant4eclipse/antlib.xml" />
+
+
+ <property name="targetPlatformLocation" value="${eclipse.home}" />
+ <property name="workspace" value="${basedir}/.." />
+ <property name="project.name" value="jp.go.aist.rtm.rtcbuilder" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
+
+ <target name="buildAll">
+ <antcall target="clean" />
+ <antcall target="compile" />
+ <antcall target="jar" />
+ </target>
+
+ <target name="clean" description="ビルドで生成されたファイルを削除します">
+ <delete includeEmptyDirs="true" quiet="true">
+ <fileset dir="${build.dir}" includes="**/*.class" />
+ <fileset dir="." includes="**/*.log" />
+ </delete>
+ <delete dir="${build.dir}/jp" quiet="true"/>
+ <delete dir="${dist.dir}" quiet="true"/>
+ </target>
+
+ <target name="compile" description="ソースをコンパイルします">
+<!--
+ <getEclipseClasspath
+ workspace="${workspace}"
+ projectname="${project.name}"
+ pathid="build.classpath"
+ targetplatformlocation="${targetPlatformLocation}"
+ />
+-->
+ <ant4eclipse:targetPlatform id="eclipse-3.8">
+ <location dir="${targetPlatformLocation}" />
+ </ant4eclipse:targetPlatform>
+ <ant4eclipse:jdtClassPathLibrary name="org.eclipse.jdt.junit.JUNIT_CONTAINER/4">
+ <fileset dir="${eclipse.home}/plugins/org.junit_4.10.0.v4_10_0_v20120426-0900" />
+ </ant4eclipse:jdtClassPathLibrary>
+
+ <ant4eclipse:getJdtClassPath
+ pathid="build.classpath"
+ workspacedirectory="${workspace}"
+ projectname="${project.name}" >
+ <jdtclasspathcontainerargument key="target.platform" value="eclipse-3.8" />
+ </ant4eclipse:getJdtClassPath>
+
+ <javac srcdir="${source}" destdir="${build.dir}"
+ classpathref="build.classpath" encoding="UTF-8" debug="on" />
+ </target>
+
+ <target name="jar" description="jarファイルを作成します">
+ <copy file="${source}/jp/go/aist/rtm/rtcbuilder/nl/messages.properties" todir="${build.dir}/jp/go/aist/rtm/rtcbuilder/nl" />
+ <copy todir="${build.dir}/jp/go/aist/rtm/rtcbuilder">
+ <fileset dir="${source}/jp/go/aist/rtm/rtcbuilder">
+ <include name="*Help.txt" />
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/jp/go/aist/rtm/rtcbuilder/model">
+ <fileset dir="${source}/jp/go/aist/rtm/rtcbuilder/model">
+ <include name="component.ecore" />
+ <include name="RTC.genmodel" />
+ </fileset>
+ </copy>
+ <copy todir="${build.dir}/jp/go/aist/rtm/rtcbuilder/template">
+ <fileset dir="${source}/jp/go/aist/rtm/rtcbuilder/template">
+ <include name="cmake/**/**.vsl" />
+ <include name="common/**.vsl" />
+ <include name="cpp/**.vsl" />
+ </fileset>
+ </copy>
+ <mkdir dir="${dist.dir}" />
+ <delete>
+ <fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
+ </delete>
+ <!-- Version settings -->
+ <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="manifest.project.version" />
+ <condition property="project.version"
+ value="${env.PROJECT_VERSION}"
+ else="${manifest.project.version}">
+ <isset property="env.PROJECT_VERSION" />
+ </condition>
+ <property name="jar.version" value="_${project.version}"/>
+ <property name="jar.name" value="${target.name}${jar.version}"/>
+ <!-- Updating MANIFEST.MF -->
+ <manifest file="META-INF/MANIFEST.MF" mode="update">
+ <attribute name="Bundle-Version" value="${project.version}"/>
+ <attribute name="Built-By" value="${user.name}"/>
+ <attribute name="Built-Date" value="${built.date}"/>
+ </manifest>
+ <!-- Creating a jar file -->
+ <jar destfile="${dist.dir}/${jar.name}.jar" manifest="META-INF/MANIFEST.MF">
+ <fileset dir="${build.dir}" />
+ <fileset dir=".">
+ <include name="icons/**.**" />
+ <include name="lib/**.**" />
+ <include name="plugin.xml" />
+ <include name="plugin.properties" />
+ </fileset>
+ </jar>
+ </target>
+
+</project>
Property changes on: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
openrtm-commit メーリングリストの案内