net.sf.antcontrib.cpptasks.devstudio
Class VisualStudioNETProjectWriter

java.lang.Object
  extended by net.sf.antcontrib.cpptasks.devstudio.VisualStudioNETProjectWriter
All Implemented Interfaces:
ProjectWriter

public final class VisualStudioNETProjectWriter
extends java.lang.Object
implements ProjectWriter

Writes a Visual Studio.NET project file.

Author:
curta

Constructor Summary
VisualStudioNETProjectWriter(java.lang.String versionArg, java.lang.String trueArg, java.lang.String falseArg)
          Constructor.
 
Method Summary
 void writeProject(java.io.File fileName, CCTask task, ProjectDef projectDef, java.util.List sources, java.util.Hashtable targets, TargetInfo linkTarget)
          Writes a project definition file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualStudioNETProjectWriter

public VisualStudioNETProjectWriter(java.lang.String versionArg,
                                    java.lang.String trueArg,
                                    java.lang.String falseArg)
Constructor.

Parameters:
versionArg - String VisualStudio.NET version
trueArg - literal to represent true, "true" in VC 2005.
falseArg - literal to represent false, "false" in VC 2005.
Method Detail

writeProject

public void writeProject(java.io.File fileName,
                         CCTask task,
                         ProjectDef projectDef,
                         java.util.List sources,
                         java.util.Hashtable targets,
                         TargetInfo linkTarget)
                  throws java.io.IOException,
                         org.xml.sax.SAXException
Writes a project definition file.

Specified by:
writeProject in interface ProjectWriter
Parameters:
fileName - project name for file, should has .cbx extension
task - cc task for which to write project
projectDef - project element
sources - source files
targets - compilation targets
linkTarget - link target
Throws:
java.io.IOException - if I/O error
org.xml.sax.SAXException - if XML serialization error


Copyright © 2001-2008 Ant-Contrib Project. All Rights Reserved.