Examples of Library


Examples of org.criticalfailure.torchlight.core.model.model.Library

                }
                break;
               
            case ACTION_TYPE_LIBRARY:
                try {
                    Library library;

                    // find a library creation helper
                    if(runWizard) {
                        logger.debug("running wizard to create library");
View Full Code Here

Examples of org.davinci.ajaxLibrary.Library

        jsonWriter.startObject().addFieldName("userLibs").startArray();
        ILibraryManager libMan = ServerManager.getServerManager().getLibraryManager();
        for (int i = 0; i < installedLibs.length; i++) {
            String id = installedLibs[i].getId();
            String version = installedLibs[i].getVersion();
            Library lib = libMan.getLibrary(id, version);
            /* if library doesn't exist continue */
            if (lib == null) {
                continue;
            }
            jsonWriter.startObject().addField("id", id);
            jsonWriter.addField("version", version);
            jsonWriter.addField("metaRoot", lib.getMetadataPath());
            String required = installedLibs[i].getRequired();
            jsonWriter.addField("required", required!=null && (Boolean.parseBoolean(required)?true:false));
           
            jsonWriter.addField("hasSource", lib.getSourcePath()!=null);
           
            if( installedLibs[i].getVirtualRoot()!=null)
              jsonWriter.addField("root", installedLibs[i].getVirtualRoot());
            jsonWriter.endObject();
        }
View Full Code Here

Examples of org.davinci.ajaxLibrary.Library

    libs.addAll(Arrays.asList( settings.allLibs()));
    for (int i = 0; i < libs.size(); i++) {
      root = this;
      String defaultRoot = libs.get(i).getVirtualRoot();
      if(defaultRoot==null) continue;
      Library b = this.getLibrary(libs.get(i));
      /* library not found on server so avoid adding it to the workspace */
      if (b == null) {
        continue;
      }
      URL file = b.getURL("", false);
      // TODO temp fix to avoid adding virtual library entries that don't
      // exist to the workspace.
      if (file == null) {
        continue;
      }
View Full Code Here

Examples of org.davinci.ajaxLibrary.Library

          }
        /* modify the library settings with the WebContent folder */
       Library[] allLibs = ServerManager.getServerManager().getLibraryManager().getAllLibraries();
       
        for(int i=0;i<allLibs.length;i++){
          Library lib = allLibs[i];
          String root = lib.getDefaultRoot();
          if(root!=null){
            String id= lib.getID();
              String version = lib.getVersion();
              String required = lib.getRequired();
              String libPath = "./WebContent" + root;
            this.modifyLibrary(id, version,  libPath, project.getPath(), required==null?false:Boolean.parseBoolean(required));
          }
        }
       
View Full Code Here

Examples of org.davinci.ajaxLibrary.Library

        for (int i = 0; i < libs.size(); i++) {
            Map<String, String> libEntry = (Map<String, String>) libs.get(i);
            String id = libEntry.get("id");
            String version = libEntry.get("version");
            String path = libEntry.get("root");
            Library lib = ServerManager.getServerManager().getLibraryManager().getLibrary(id, version);
           
            boolean sourceLibrary = lib.getSourcePath() != null && useSource;
           
            IVResource libResource = new VLibraryResource(lib, lib.getURL("", sourceLibrary),path, "",sourceLibrary);
            zipDir(libResource,root, zos, true);
        }
    }
View Full Code Here

Examples of org.dozer.vo.cumulative.Library

  * The same is on 'Prime' side with only one exception. AuthorPrime has all the fields of Author and
  * one more - salary.
  */
  @Test
  public void testMapping() {
    Library libSrc = newInstance(Library.class);
    Author author = newInstance(Author.class, new Object[] {"The Best One", new Long(505L)});
    Book book = newInstance(Book.class, new Object[] {new Long(141L), author});
    libSrc.setBooks(Collections.singletonList(book));

    LibraryPrime libDest = newInstance(LibraryPrime.class);
    AuthorPrime authorPrime = newInstance(AuthorPrime.class, new Object[] {new Long(505L), "The Ultimate One", new Long(5100L)});
    BookPrime bookDest = newInstance(BookPrime.class, new Object[] {new Long(141L), authorPrime});
    List<BookPrime> bookDests = newInstance(ArrayList.class);
View Full Code Here

Examples of org.eclipselabs.mongoemf.query.simple.junit.model.Library

    assertThat(resource, is(notNullValue()));
    assertThat(resource.getContents().size(), is(1));

    ECollection eCollection = (ECollection) resource.getContents().get(0);
    assertThat(eCollection.getValues().size(), is(1));
    Library library = (Library) eCollection.getValues().get(0);

    assertThat(library.getLocation(), is(notNullValue()));
    assertThat(library.getLocation().getAddress(), is("Wastelands"));
  }
View Full Code Here

Examples of org.fusesource.hawtjni.runtime.Library

    private void vsBasedBuild(File buildDir) throws CommandLineException, MojoExecutionException, IOException {
     
        FileUtils.copyDirectoryStructureIfModified(packageDirectory, buildDir);

        Library library = new Library(name);
        String platform;
        String configuration="release";
        if( "windows32".equals(library.getPlatform()) ) {
          platform = "Win32";
        } else if( "windows64".equals(library.getPlatform()) ) {
          platform = "x64";
        } else {
          throw new MojoExecutionException("Usupported platform: "+library.getPlatform());
        }

        boolean useMSBuild = false;
        String tool = windowsBuildTool.toLowerCase().trim();
        if( "detect".equals(tool) ) {
            String toolset = System.getenv("PlatformToolset");
            if( "Windows7.1SDK".equals(toolset) ) {
                useMSBuild = true;
            } else {
                String vcinstalldir = System.getenv("VCINSTALLDIR");
                if( vcinstalldir!=null ) {
                    if( vcinstalldir.contains("Microsoft Visual Studio 10") ||
                        vcinstalldir.contains("Microsoft Visual Studio 11") ||
                        vcinstalldir.contains("Microsoft Visual Studio 12")
                      ) {
                        useMSBuild = true;
                    }
                }
            }
        } else if( "msbuild".equals(tool) ) {
            useMSBuild = true;
        } else if( "vcbuild".equals(tool) ) {
            useMSBuild = false;
        } else {
            throw new MojoExecutionException("Invalid setting for windowsBuildTool: "+windowsBuildTool);
        }

        if( useMSBuild ) {
            // vcbuild was removed.. use the msbuild tool instead.
            int rc = cli.system(buildDir, new String[]{"msbuild", "vs2010.vcxproj", "/property:Platform="+platform, "/property:Configuration="+configuration});
            if( rc != 0 ) {
                throw new MojoExecutionException("vcbuild failed with exit code: "+rc);
            }
        } else {
            // try to use a vcbuild..
            int rc = cli.system(buildDir, new String[]{"vcbuild", "/platform:"+platform, "vs2008.vcproj", configuration});
            if( rc != 0 ) {
                throw new MojoExecutionException("vcbuild failed with exit code: "+rc);
            }
        }



        File libFile=FileUtils.resolveFile(buildDir, "target/"+platform+"-"+configuration+"/lib/"+library.getLibraryFileName());
        if( !libFile.exists() ) {
            throw new MojoExecutionException("vcbuild did not generate: "+libFile);
        }       

        File target=FileUtils.resolveFile(libDirectory, library.getPlatformSpecifcResourcePath());
        FileUtils.copyFile(libFile, target);

  }
View Full Code Here

Examples of org.gradle.plugins.ide.eclipse.model.Library

                String natives = delayedString(NATIVES_DIR).call().replace('\\', '/');
                for (ClasspathEntry e : classpath.getEntries())
                {
                    if (e instanceof Library)
                    {
                        Library lib = (Library) e;
                        if (lib.getPath().contains("lwjg") || lib.getPath().contains("jinput"))
                        {
                            lib.setNativeLibraryLocation(natives);
                        }
                    }
                }
            }
        });
View Full Code Here

Examples of org.jampa.model.library.Library

    _dndController = new DNDController();
    _downloadController = new DownloadController();
    _radioController = new RadioController();
   
    Log.getInstance(Controller.class).debug("Initializing Library."); //$NON-NLS-1$
    _library = new Library();
   
    getEventController().addAudioItemChangeListener(this);
    getEventController().addPodcastsUpdateChangeListener(this);
    getEventController().addRadioChangeListeners(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.