Examples of OperatingSystem


Examples of com.abiquo.hypervisor.model.VirtualMachineDefinition.OperatingSystem

     * @param type, from CIM OSTYpe
     * @param version, optional additional info
     */
    public VirtualMachineDescriptionBuilder operatingSystem(final String type, final String version)
    {
        operatingSystem = new OperatingSystem();
        operatingSystem.setType(type);
        operatingSystem.setVersion(version);
        return this;
    }
View Full Code Here

Examples of eu.bitwalker.useragentutils.OperatingSystem

  /**
   * Test method for {@link eu.bitwalker.useragentutils.OperatingSystem#valueOf(short)}
   */
  @Test
  public void testValueOf() {
    OperatingSystem operatingSystem = OperatingSystem.parseUserAgentString(symbian9phones[0]);
    assertEquals(OperatingSystem.valueOf(operatingSystem.getId()), operatingSystem)
    try
    {
      operatingSystem = OperatingSystem.valueOf((short)0);
      fail("Should have thrown IllegalArgumentException");     
    }
View Full Code Here

Examples of freenet.support.io.FileUtil.OperatingSystem

    HTMLNode swapWarning = div.addChild("p").addChild("i");
    NodeL10n.getBase().addL10nSubstitution(swapWarning, "SecurityLevels.physicalThreatLevelTruecrypt",
            new String[]{"bold", "truecrypt"},
            new HTMLNode[]{HTMLNode.STRONG,
                    HTMLNode.linkInNewWindow(ExternalLinkToadlet.escape("http://www.truecrypt.org/"))});
    OperatingSystem os = FileUtil.detectedOS;
    div.addChild("p", NodeL10n.getBase().getString("SecurityLevels.physicalThreatLevelSwapfile",
            "operatingSystem",
            NodeL10n.getBase().getString("OperatingSystemName."+os.name())));
    if(os == FileUtil.OperatingSystem.Windows) {
      swapWarning.addChild("#", " " + WizardL10n.l10nSec("physicalThreatLevelSwapfileWindows"));
    }
    for(SecurityLevels.PHYSICAL_THREAT_LEVEL level : SecurityLevels.PHYSICAL_THREAT_LEVEL.values()) {
      HTMLNode input;
View Full Code Here

Examples of freenet.support.io.FileUtil.OperatingSystem

    NodeL10n.getBase().addL10nSubstitution(seclevelGroup.addChild("p").addChild("i"), "SecurityLevels.physicalThreatLevelTruecrypt",
            new String[]{"bold", "truecrypt"},
            new HTMLNode[]{HTMLNode.STRONG,
                    HTMLNode.linkInNewWindow(ExternalLinkToadlet.escape("http://www.truecrypt.org/"))});
    HTMLNode swapWarning = seclevelGroup.addChild("p").addChild("i");
    OperatingSystem os = FileUtil.detectedOS;
    swapWarning.addChild("#", NodeL10n.getBase().getString("SecurityLevels.physicalThreatLevelSwapfile",
            "operatingSystem",
            NodeL10n.getBase().getString("OperatingSystemName."+os.name())));
    if(os == FileUtil.OperatingSystem.Windows) {
      swapWarning.addChild("#", " " + WizardL10n.l10nSec("physicalThreatLevelSwapfileWindows"));
    }

    PHYSICAL_THREAT_LEVEL physicalLevel = node.securityLevels.getPhysicalThreatLevel();
View Full Code Here

Examples of freenet.support.io.FileUtil.OperatingSystem

    else
      return null;
  }
 
  private static boolean matchesCurrentOS(String s) {
    OperatingSystem myOS = FileUtil.detectedOS;
    String[] osList = s.split(",");
    for(String os : osList) {
      os = os.trim();
      if(myOS.toString().equalsIgnoreCase(os)) {
        return true;
      }
      if(os.equalsIgnoreCase("ALL_WINDOWS") &&
          myOS.isWindows) {
        return true;
View Full Code Here

Examples of net.sf.latexdraw.util.LSystem.OperatingSystem

    File finalPS;
    final IPoint tr    = synchronizer.getTopRightDrawingPoint();
    final IPoint bl    = synchronizer.getBottomLeftDrawingPoint();
    final int ppc      = synchronizer.getPPCDrawing();
    final float dec    = 0.2f;
    final OperatingSystem os = LSystem.INSTANCE.getSystem();

    if(texFile==null || !texFile.exists())
      return null;

    final String[] paramsLatex = {os.getLatexBinPath(), "--interaction=nonstopmode", "--output-directory=" + tmpDir2.getAbsolutePath(),//$NON-NLS-1$//$NON-NLS-2$
        texFile.getAbsolutePath()};
    log    = LSystem.INSTANCE.execute(paramsLatex, tmpDir2);
    final File dviFile = new File(tmpDir2.getAbsolutePath() + LResources.FILE_SEP + name + ".dvi"); //$NON-NLS-1$
    final boolean dviRenamed = dviFile.renameTo(new File(tmpDir2.getAbsolutePath() + LResources.FILE_SEP + name));

    final String[] paramsDvi = {os.getDvipsBinPath(), "-Pdownload35", "-T", //$NON-NLS-1$ //$NON-NLS-2$
        (tr.getX()-bl.getX())/ppc*scale+dec+"cm,"+((bl.getY()-tr.getY())/ppc*scale+dec)+"cm", //$NON-NLS-1$ //$NON-NLS-2$
            name, "-o", pathExportPs}; //$NON-NLS-1$
    log   += LSystem.INSTANCE.execute(paramsDvi, tmpDir2);

    texFile.delete();
View Full Code Here

Examples of net.sf.latexdraw.util.LSystem.OperatingSystem

    final String name = pathExportPdf.substring(pathExportPdf.lastIndexOf(LResources.FILE_SEP)+1, pathExportPdf.lastIndexOf(PDFFilter.PDF_EXTENSION));
    final File psFile = createPSFile(drawing, tmpDir.getAbsolutePath() + LResources.FILE_SEP + name + ".ps", synchronizer, tmpDir, pstGen); //$NON-NLS-1$
    String log;
    File pdfFile;
    final OperatingSystem os = LSystem.INSTANCE.getSystem();

    if(psFile==null)
      return null;

    // On windows, an option must be defined using this format:
    // -optionName#valueOption Thus, the classical = character must be replaced by a # when latexdraw runs on Windows.
    final String optionEmbed = "-dEmbedAllFonts" + (LSystem.INSTANCE.isWindows() ? "#" : "=") + "true"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$

    log = LSystem.INSTANCE.execute(new String[] {os.getPs2pdfBinPath(), optionEmbed, psFile.getAbsolutePath(),
              crop ? name + PDFFilter.PDF_EXTENSION : pathExportPdf}, tmpDir);

    if(crop) {
      pdfFile = new File(tmpDir.getAbsolutePath() + LResources.FILE_SEP + name + PDFFilter.PDF_EXTENSION);
      log   = LSystem.INSTANCE.execute(new String[] {os.getPdfcropBinPath(), pdfFile.getAbsolutePath(), pdfFile.getAbsolutePath()}, tmpDir);
      // JAVA7: test pdfFile.toPath().move(pathExportPdf)
      // the renameto method is weak and fails sometimes.
      if(!pdfFile.renameTo(new File(pathExportPdf)) && !LFileUtils.INSTANCE.copy(pdfFile, new File(pathExportPdf)))
        log += " The final pdf document cannot be moved to its final destination. If you use Windows, you must have a Perl interpretor installed, such as strawberryPerl (http://strawberryperl.com/)"; //$NON-NLS-1$
      pdfFile.delete();
View Full Code Here

Examples of net.sf.uadetector.OperatingSystem

    assertThat(agent.getTypeName()).isEqualTo("Useragent Anonymizer");
    assertThat(agent.getUrl()).isEqualTo("http://anonymouse.org/");
    assertThat(agent.getVersionNumber().toVersionString()).isEmpty();

    // check operating system informations
    final OperatingSystem os = agent.getOperatingSystem();
    assertThat(os.getFamily()).isEqualTo(OperatingSystemFamily.LINUX);
    assertThat(os.getFamilyName()).isEqualTo("Linux");
    assertThat(os.getName()).isEqualTo("Linux");
    assertThat(os.getProducer()).isEmpty();
    assertThat(os.getProducerUrl()).isEmpty();
    assertThat(os.getUrl()).isEqualTo("http://en.wikipedia.org/wiki/Linux");

    // check device category informations
    final DeviceCategory category = agent.getDeviceCategory();
    assertThat(category.getCategory()).isEqualTo(Category.OTHER);
    assertThat(category.getName()).isEqualTo(Category.OTHER.getName());
View Full Code Here

Examples of net.sf.uadetector.internal.data.domain.OperatingSystem

  @Test
  public void appendBrowser() {
    final DataBuilder b = new DataBuilder();
    final SortedSet<OperatingSystemPattern> osPatternSet = new TreeSet<OperatingSystemPattern>();
    final OperatingSystem os = new OperatingSystem(1, "n1", "f1", "iu1", osPatternSet, "p1", "pu1", "u1", "i1");
    final BrowserType browserType = new BrowserType(1, "Browser");
    final Browser browser = new Browser(4256, UserAgentFamily.FIREBIRD, UserAgentFamily.FIREBIRD.getName(),
        new TreeSet<BrowserPattern>(), browserType, os, "icn", "iu1", "p1", "pu1", "u1");
    assertThat(b.appendBrowser(browser)).isSameAs(b);
    assertThat(b.appendBrowser(browser)).isSameAs(b); // testing to add same, one more time
View Full Code Here

Examples of org.gradle.internal.os.OperatingSystem

        @Mutate
        public static void addGccToolChain(NativeToolChainRegistryInternal toolChainRegistry, ServiceRegistry serviceRegistry) {
            final FileResolver fileResolver = serviceRegistry.get(FileResolver.class);
            final ExecActionFactory execActionFactory = serviceRegistry.get(ExecActionFactory.class);
            final Instantiator instantiator = serviceRegistry.get(Instantiator.class);
            final OperatingSystem operatingSystem = serviceRegistry.get(OperatingSystem.class);
            final VisualStudioLocator visualStudioLocator = serviceRegistry.get(VisualStudioLocator.class);
            final WindowsSdkLocator windowsSdkLocator = serviceRegistry.get(WindowsSdkLocator.class);

            toolChainRegistry.registerFactory(VisualCpp.class, new NamedDomainObjectFactory<VisualCpp>() {
                public VisualCpp create(String name) {
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.