[Ngms-svn] SVN-Commit: [33] add build.xml, and some comments.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 11月 5日 (木) 17:22:27 JST


Revision: 33
          http://sourceforge.jp/projects/ngms/svn/view?view=rev&revision=33
Author:   osiire
Date:     2009-11-05 17:22:27 +0900 (Thu, 05 Nov 2009)

Log Message:
-----------
add build.xml, and some comments.

Modified Paths:
--------------
    trunk/source/NMShell/src/info/ngms/nmshell/Main.scala

Added Paths:
-----------
    trunk/source/NMShell/build.xml

Added: trunk/source/NMShell/build.xml
===================================================================
--- trunk/source/NMShell/build.xml	                        (rev 0)
+++ trunk/source/NMShell/build.xml	2009-11-05 08:22:27 UTC (rev 33)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- WARNING: Eclipse auto-generated file.
+              Any modifications will be overwritten.
+              To include a user specific buildfile here, simply create one in the same
+              directory with the processing instruction <?eclipse.ant.import?>
+              as the first entry and export the buildfile again. -->
+<project basedir="." default="build" name="NMShell">
+    <property environment="env"/>
+    <property name="ECLIPSE_HOME" value="../../../../../../../Applications/eclipse"/>
+    <property name="NMTree.location" value="../NMTree"/>
+    <property name="debuglevel" value="source,lines,vars"/>
+    <property name="target" value="1.5"/>
+    <property name="source" value="1.5"/>
+    <path id="Scala Library version 2.7.7.final.libraryclasspath">
+        <pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/197/1/.cp/lib/scala-library.jar"/>
+        <pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/197/1/.cp/lib/scala-dbc.jar"/>
+        <pathelement location="${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/197/1/.cp/lib/scala-swing.jar"/>
+    </path>
+    <path id="NMTree.classpath">
+        <pathelement location="${NMTree.location}/bin"/>
+        <path refid="Scala Library version 2.7.7.final.libraryclasspath"/>
+    </path>
+    <path id="NMShell.classpath">
+        <pathelement location="bin"/>
+        <path refid="Scala Library version 2.7.7.final.libraryclasspath"/>
+        <path refid="NMTree.classpath"/>
+    </path>
+    <target name="init">
+        <mkdir dir="bin"/>
+        <copy includeemptydirs="false" todir="bin">
+            <fileset dir="src">
+                <exclude name="**/*.launch"/>
+                <exclude name="**/*.java"/>
+            </fileset>
+        </copy>
+    </target>
+    <target name="clean">
+        <delete dir="bin"/>
+    </target>
+    <target depends="clean" name="cleanall">
+        <ant antfile="${NMTree.location}/build.xml" dir="${NMTree.location}" inheritAll="false" target="clean"/>
+    </target>
+    <target depends="build-subprojects,build-project" name="build"/>
+    <target name="build-subprojects">
+        <ant antfile="${NMTree.location}/build.xml" dir="${NMTree.location}" inheritAll="false" target="build-project">
+            <propertyset>
+                <propertyref name="build.compiler"/>
+            </propertyset>
+        </ant>
+    </target>
+    <target depends="init" name="build-project">
+        <echo message="${ant.project.name}: ${ant.file}"/>
+        <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
+            <src path="src"/>
+            <classpath refid="NMShell.classpath"/>
+        </javac>
+    </target>
+    <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
+    <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
+        <copy todir="${ant.library.dir}">
+            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
+        </copy>
+        <unzip dest="${ant.library.dir}">
+            <patternset includes="jdtCompilerAdapter.jar"/>
+            <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
+        </unzip>
+    </target>
+    <target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
+        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
+        <antcall target="build"/>
+    </target>
+</project>

Modified: trunk/source/NMShell/src/info/ngms/nmshell/Main.scala
===================================================================
--- trunk/source/NMShell/src/info/ngms/nmshell/Main.scala	2009-11-05 08:21:24 UTC (rev 32)
+++ trunk/source/NMShell/src/info/ngms/nmshell/Main.scala	2009-11-05 08:22:27 UTC (rev 33)
@@ -1,6 +1,14 @@
 package info.ngms.nmshell
 
+/**
+ * NGMS用シェルプログラム
+ * @version $Id$
+ * @author ogasa****@itpl*****
+ */
 object Main {
+  /**
+   * メイン関数
+   */
   def main(args : Array[String]) : Unit = {
     println("this is ngms shell")
   }




Ngms-svn メーリングリストの案内
Back to archive index