OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | fractal-commits List | August 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[fractal-commits] [8420] trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/ Juliac.java:Run Juliac even if there is no ADL nor membrane descriptors to compile.


Title: [8420] trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/Juliac.java: Run Juliac even if there is no ADL nor membrane descriptors to compile.
Revision
8420
Author
seintur
Date
2008-08-29 18:39:07 +0200 (Fri, 29 Aug 2008)

Log Message

Run Juliac even if there is no ADL nor membrane descriptors to compile.

Modified Paths

Diff

Modified: trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/Juliac.java (8419 => 8420)


--- trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/Juliac.java	2008-08-29 16:35:47 UTC (rev 8419)
+++ trunk/juliac/compiler/src/main/java/org/objectweb/fractal/juliac/Juliac.java	2008-08-29 16:39:07 UTC (rev 8420)
@@ -133,13 +133,10 @@
         }
         
         /*
-         * Retrieve the ADL files which must be compiled.
+         * Retrieve the ADL files or membrane descriptors which must be
+         * generated.
          */
         List<String> files = cla.getFiles();
-        if( files.size() == 0 ) {
-            reportError("Missing ADL files");
-            System.exit(1);
-        }
         
         /*
          * Initialize Juliac.
@@ -201,7 +198,9 @@
                     jc.generate(file);
                 }
                 catch( NoSuchControllerDescriptorException nscde ) {
-                    String msg = file+" is neither an ADL type, nor a membrane descriptor";
+                    String msg =
+                        file+
+                        " is neither an ADL type, nor a membrane descriptor";
                     throw new IllegalArgumentException(msg,nscde);
                 }
             }


<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.