svn commit: r14556 - trunk/build.xml

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2008-04-30 22:32:21-0700
New Revision: 14556

Added:
   trunk/build.xml   (contents, props changed)

Log:
Added suggested proxy ant control file to make the argouml project look like
any other of the argouml projects.

Added: trunk/build.xml
Url: http://argouml.tigris.org/source/browse/argouml/trunk/build.xml?view=auto&rev=14556
==============================================================================
--- (empty file)
+++ trunk/build.xml	2008-04-30 22:32:21-0700
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- $Id$
+
+Build file to proxy the argoumlstandard ant targets.
+-->
+
+<project basedir="." default="jar" name="argouml">
+  <!-- =================================================================== -->
+  <!-- Initialization target                                               -->
+  <!-- =================================================================== -->
+  <target name="init">
+    <property name="build.dir" value="build"/>
+
+    <path id="run.classpath">
+      <fileset dir="${build.dir}" includes="*.jar"/>
+    </path>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- Run from classes                                                    -->
+  <!-- =================================================================== -->
+  <target name="run" depends="install"
+          description="Run with this module.">
+    <java classname="org.argouml.application.Main"
+          fork="yes"
+          taskname="argouml"
+     	  maxmemory="500M">
+        <sysproperty key="log4j.configuration"
+                   value="org/argouml/resource/error_console.lcf"/>
+        <classpath>
+	  <path refid="run.classpath"/>
+        </classpath>
+    </java>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- Creates the jar file                                                -->
+  <!-- =================================================================== -->
+  <target name="jar" depends="init"
+          description="Build and copies files.">
+    <!--
+      This is how Linus Tolke would like to write this command:
+    <ant dir="src/argouml-build" inheritAll="false"    target="package"/>
+      The corrected statement below works also with
+      src/argouml-build/build.xml that has basedir="..".
+     -->
+    <ant dir="src" antfile="argouml-build/build.xml" inheritAll="false" target="package"/>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- Make sure the files are in build                                    -->
+  <!-- =================================================================== -->
+  <target name="install" depends="init, jar"
+          description="">
+    <mkdir dir="${build.dir}"/>
+    <copy todir="${build.dir}" includeEmptyDirs="false">
+      <fileset dir="src/argouml-core-infra/build">
+        <include name="*"/>
+      </fileset>
+      <fileset dir="src/argouml-core-model/build">
+        <include name="*"/>
+      </fileset>
+      <fileset dir="src/argouml-core-model-mdr/build">
+        <include name="*"/>
+      </fileset>
+      <fileset dir="src/argouml-app/build">
+        <include name="*"/>
+      </fileset>
+    </copy>
+  </target>
+
+  <!-- =================================================================== -->
+  <!-- Clean targets                                                       -->
+  <!-- =================================================================== -->
+  <target name="clean" depends="init"
+          description="Clean out all built files.">
+    <delete dir="${build.dir}" quiet="true"/>
+    <!-- see above!
+    <ant dir="src/argouml-build" inheritAll="false"    target="clean"/>
+     -->
+    <ant dir="src" antfile="argouml-build/build.xml" inheritAll="false" target="clean"/>
+  </target>
+</project>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.