Package net.sf.antcontrib.cpptasks.ide

Examples of net.sf.antcontrib.cpptasks.ide.ProjectDef


      // DS: generate project file
      getLog().debug("NAR: Writing project file...");
      ProjectWriterEnum projectWriterEnum = new ProjectWriterEnum();
      projectWriterEnum.setValue("msvc8");
      ProjectDef projectDef = new ProjectDef();
      projectDef.setType(projectWriterEnum);     
      String filename = null;
      try {
        File outputDir = new File(getTargetDirectory(), "vcproj");
        if (!outputDir.exists()) {
          boolean succeeded = outputDir.mkdir();
          if (!succeeded) {
            throw new MojoExecutionException(
                "Unable to create directory: " + outputDir);
          }
        }
        filename = outputDir + "/" + getMavenProject().getArtifactId();
        File projFile = new File(filename);
        projectDef.setOutfile(projFile.getCanonicalFile());
      } catch (IOException e) {
        throw new MojoExecutionException("Unable to create file: "
            + filename, e);
      }
      task.addProject(projectDef);
View Full Code Here


            compilerDef.visitFiles(matcher);
         
         
          Enumeration iter = projects.elements();
          while (iter.hasMoreElements()) {
            ProjectDef projectDef = (ProjectDef) iter.nextElement();
            if (projectDef.isActive()) {
              projectDef.execute(this, files, targets, linkTarget);
            }
          }
        }
        if (projectsOnly) return;
     
View Full Code Here

TOP

Related Classes of net.sf.antcontrib.cpptasks.ide.ProjectDef

Copyright © 2018 www.massapicom. 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.