svn commit: r14620 - trunk/src/argouml-core-model-mdr/build.xml

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-04 23:39:30-0700
New Revision: 14620

Modified:
   trunk/src/argouml-core-model-mdr/build.xml

Log:
Add argo.tools.dir hack

Modified: trunk/src/argouml-core-model-mdr/build.xml
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/build.xml?view=diff&rev=14620&p1=trunk/src/argouml-core-model-mdr/build.xml&p2=trunk/src/argouml-core-model-mdr/build.xml&r1=14619&r2=14620
==============================================================================
--- trunk/src/argouml-core-model-mdr/build.xml	(original)
+++ trunk/src/argouml-core-model-mdr/build.xml	2008-05-04 23:39:30-0700
@@ -53,6 +53,14 @@
   	
     <!-- Do we want to read user build properties here? -->
 
+    <!-- Try to figure out where our tools directory is. Done after overrides
+    are loaded so user can override, but before defaults -->
+    <property name="tool.test.file" value="checkstyle/java.header"/>
+    <available file="${argo.root.dir}/argouml-core-tools/${tool.test.file}" 
+        type="file" property="argo.tools.dir" value="${argo.root.dir}/argouml-core-tools"/>
+    <available file="../../tools/${tool.test.file}" 
+        type="file" property="argo.tools.dir" value="../../tools"/>
+  	
     <!-- Read default build properties file (after we've set our props) -->
     <property file="${argo.root.dir}/argouml-build/default.properties"/>
   	
@@ -85,12 +93,10 @@
       <path refid="mdr.compile.classpath"/>
     </path>
 
-    <!-- Define a few places we can find Junit -->
+    <!-- Define a couple places we can find Junit -->
     <path id="junit.classpath">
       <pathelement location="${junit.jar.path}"/>
       <pathelement location="${argo.tools.dir}/junit-3.8.2/junit.jar"/>
-      <!-- root used to be the argouml dir, but now its argouml/src -->
-      <pathelement location="${argo.root.dir}/../tools/junit-3.8.2/junit.jar"/>
     </path>
 
     <path id="tests.compile.classpath">
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.