system/src/sc/layer/BuildInfo.java
public void addModelJar(JavaModel model, String mainClassName, String jarName, String[] packages, boolean src, boolean includeDeps) {
      changed = true;
      if (modelJarFiles == null)
         modelJarFiles = new ArrayList<ModelJar>();
      ModelJar newMjar = new ModelJar(model.getModelTypeName(), mainClassName, jarName, packages, src, includeDeps);
      if (!modelJarFiles.contains(newMjar))
         modelJarFiles.add(newMjar);

      if (system != null && system.buildInfo == this) {
         for (Layer l:system.layers) {
            if (needsBuildInfo(l)) {
               l.buildInfo.addModelJar(model, mainClassName, jarName, packages, src, includeDeps);
            }
         }
      }
   }
/** Adds a model jar file to the build info */
Adds a model jar file to the build info
Adds a model jar file to the build info
public void addModelJar(JavaModel model, String mainClassName, String jarName, String[] packages, boolean src, boolean includeDeps) {
      changed = true;
      if (modelJarFiles == null)
         modelJarFiles = new ArrayList<ModelJar>();
      ModelJar newMjar = new ModelJar(model.getModelTypeName(), mainClassName, jarName, packages, src, includeDeps);
      if (!modelJarFiles.contains(newMjar))
         modelJarFiles.add(newMjar);
      if (system != null && system.buildInfo == this) {
         for (Layer l:system.layers) {
            if (needsBuildInfo(l)) {
               l.buildInfo.addModelJar(model, mainClassName, jarName, packages, src, includeDeps);
            }
         }
      }
   }
public void addModelJar ( JavaModel model , String mainClassName , String jarName , String [ ] packages , boolean src , boolean includeDeps ) { changed = true ; if ( modelJarFiles == null ) modelJarFiles = new ArrayList < ModelJar > ( ) ; ModelJar newMjar = new ModelJar ( model . getModelTypeName ( ) , mainClassName , jarName , packages , src , includeDeps ) ; if ( ! modelJarFiles . contains ( newMjar ) ) modelJarFiles . add ( newMjar ) ; if ( system != null && system . buildInfo == this ) { for ( Layer l : system . layers ) { if ( needsBuildInfo ( l ) ) { l . buildInfo . addModelJar ( model , mainClassName , jarName , packages , src , includeDeps ) ; } } } }
Adds a model jar file to the build info
Adds a model jar file to the build info