src/JavaLibraries.st
branchjk_new_structure
changeset 1691 826f8d7dc0df
parent 1645 cbf1e4a353cb
--- a/src/JavaLibraries.st	Tue Aug 28 16:09:58 2012 +0000
+++ b/src/JavaLibraries.st	Mon Sep 03 14:57:38 2012 +0000
@@ -22,7 +22,7 @@
 
 Object subclass:#JavaLibraries
 	instanceVariableNames:''
-	classVariableNames:''
+	classVariableNames:'MavenRun'
 	poolDictionaries:''
 	category:'Languages-Java-Support'
 !
@@ -96,10 +96,11 @@
 
 runMaven
 
-    (OperatingSystem
-        executeCommand:'mvn package' inDirectory: self directory asString)
-        ifFalse:
-            [self error: 'Cannot run maven to download libraries!!'. ^self].
+    MavenRun ~~ true ifTrue:[
+        (OperatingSystem executeCommand:'mvn package' inDirectory: self directory asString)
+            ifFalse:[self error: 'Cannot run maven to download libraries!!'. ^self].
+        MavenRun := true
+    ].
 
     "Created: / 20-08-2012 / 19:39:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -199,3 +200,4 @@
 version_SVN
     ^ '$Id$'
 ! !
+