[openrtm-commit:00941] r382 - in trunk/rtmtools: . jp.go.aist.rtm.nameserviceview jp.go.aist.rtm.nameserviceview.nl1 jp.go.aist.rtm.repositoryView jp.go.aist.rtm.repositoryView.nl1 jp.go.aist.rtm.rtcbuilder jp.go.aist.rtm.rtcbuilder.java jp.go.aist.rtm.rtcbuilder.nl1 jp.go.aist.rtm.rtcbuilder.python jp.go.aist.rtm.systemeditor jp.go.aist.rtm.systemeditor.nl1 jp.go.aist.rtm.toolscommon jp.go.aist.rtm.toolscommon.nl1 jp.go.aist.rtm.toolscommon.profiles jp.go.aist.rtm.toolscommon.profiles.nl1
openrtm @ openrtm.org
openrtm @ openrtm.org
2013年 1月 24日 (木) 19:14:29 JST
Author: n-ando
Date: 2013-01-24 19:14:29 +0900 (Thu, 24 Jan 2013)
New Revision: 382
Modified:
trunk/rtmtools/buildall.sh
trunk/rtmtools/jp.go.aist.rtm.nameserviceview.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.nameserviceview/build.xml
trunk/rtmtools/jp.go.aist.rtm.repositoryView.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.repositoryView/build.xml
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/build.xml
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/build.xml
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml
trunk/rtmtools/jp.go.aist.rtm.systemeditor.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.systemeditor/build.xml
trunk/rtmtools/jp.go.aist.rtm.toolscommon.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles.nl1/build.xml
trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles/build.xml
trunk/rtmtools/jp.go.aist.rtm.toolscommon/build.xml
Log:
build.xml and build script for batch version numbering has been introduced. refs #2571
Modified: trunk/rtmtools/buildall.sh
===================================================================
--- trunk/rtmtools/buildall.sh 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/buildall.sh 2013-01-24 10:14:29 UTC (rev 382)
@@ -76,7 +76,7 @@
jp.go.aist.rtm.nameserviceview.nl1
jp.go.aist.rtm.systemeditor
jp.go.aist.rtm.systemeditor.nl1"
-PROJECTS="jp.go.aist.rtm.toolscommon.nl1"
+#PROJECTS="jp.go.aist.rtm.toolscommon.nl1"
#jp.go.aist.rtm.toolscommon.profiles
# jp.go.aist.rtm.toolscommon.profiles.nl1
# jp.go.aist.rtm.toolscommon
Modified: trunk/rtmtools/jp.go.aist.rtm.nameserviceview/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.nameserviceview/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.nameserviceview/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.nameserviceview" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -49,10 +52,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.nameserviceview.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.nameserviceview.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.nameserviceview.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -16,6 +16,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<!--
@@ -44,10 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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="${source}" />
<fileset dir=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.repositoryView/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.repositoryView/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.repositoryView/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.repositoryView" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -44,9 +47,22 @@
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.repositoryView.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.repositoryView.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.repositoryView.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -16,6 +16,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<!--
@@ -44,10 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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="${source}" />
<fileset dir=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<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" />
@@ -25,8 +28,21 @@
</target>
<target name="clean" description="ビルドで生成されたファイルを削除します">
+ <!-- delete dir="${build.dir}/jp" verbose="true" /-->
<delete includeEmptyDirs="true">
<fileset dir="${build.dir}" includes="**/*.class" />
+ <!--
+ <fileset dir="${build.dir}/jp/go/aist/rtm/rtcbuilder/nl"
+ includes="messages.properties" />
+ <fileset dir="${build.dir}/jp/go/aist/rtm/rtcbuilder"
+ includes="**/*Help.txt" />
+ <fileset dir="${build.dir}/jp/go/aist/rtm/rtcbuilder/model"
+ includes="component.ecore" />
+ <fileset dir="${build.dir}/jp/go/aist/rtm/rtcbuilder/model"
+ includes="RTC.genmodel" />
+ <fileset dir="${build.dir}/jp/go/aist/rtm/rtcbuilder/template"
+ includes="**/*.vsl" />
+ -->
</delete>
</target>
@@ -63,10 +79,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.java/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.rtcbuilder.java" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -49,10 +52,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -16,6 +16,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<!--
@@ -44,10 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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="${source}" />
</jar>
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.rtcbuilder.python" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -49,10 +52,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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}">
<exclude name="jp/go/aist/rtm/rtcbuilder/python/_test/_100/**" />
Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.systemeditor" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -44,10 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.systemeditor.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.systemeditor.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.systemeditor.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -16,6 +16,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<!--
@@ -44,11 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
- <jar destfile="${dist.dir}/${jar.name}.jar" manifest="META-INF/MANIFEST.MF">
+ <!-- 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="${source}" />
<fileset dir=".">
<include name="plugin_ja.properties" />
Modified: trunk/rtmtools/jp.go.aist.rtm.toolscommon/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.toolscommon/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.toolscommon/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -26,6 +26,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="idlCompile" />
@@ -80,10 +83,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.toolscommon.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.toolscommon.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.toolscommon.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -17,6 +17,10 @@
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
+
<target name="buildAll">
<!--
<antcall target="clean" />
@@ -45,9 +49,24 @@
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
+ <!-- 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="${source}" />
<fileset dir=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -21,6 +21,9 @@
<path id="jre.libs" description="Java runtime libraries">
<pathelement location="${java.home}/jre/lib" />
</path>
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<antcall target="clean" />
@@ -52,10 +55,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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=".">
Modified: trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles.nl1/build.xml
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles.nl1/build.xml 2013-01-24 08:27:05 UTC (rev 381)
+++ trunk/rtmtools/jp.go.aist.rtm.toolscommon.profiles.nl1/build.xml 2013-01-24 10:14:29 UTC (rev 382)
@@ -16,6 +16,9 @@
<property name="targetPlatformLocation" value="${eclipse.home}" />
<property name="workspace" value="${basedir}/.." />
<property name="project.name" value="jp.go.aist.rtm.toolscommon" />
+ <tstamp>
+ <format property="built.date" pattern="yyyy/MM/dd HH:mm:ss" />
+ </tstamp>
<target name="buildAll">
<!--
@@ -44,10 +47,22 @@
<delete>
<fileset dir="${dist.dir}" includes="${target.name}_*.jar" />
</delete>
-
- <manifesttask file="META-INF/MANIFEST.MF" key="Bundle-Version" property="version" />
- <property name="jar.name" value="${target.name}_${version}"/>
-
+ <!-- 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="${source}" />
<fileset dir=".">
More information about the openrtm-commit
mailing list