net.sf.antcontrib.cpptasks.devstudio

Class VisualStudioNETProjectWriter

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(String versionArg, String trueArg, String falseArg)
Constructor.

Method Summary

void
writeProject(File fileName, CCTask task, ProjectDef projectDef, List sources, Hashtable targets, TargetInfo linkTarget)
Writes a project definition file.

Constructor Details

VisualStudioNETProjectWriter

public VisualStudioNETProjectWriter(String versionArg,
                                    String trueArg,
                                    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 Details

writeProject

public void writeProject(File fileName,
                         CCTask task,
                         ProjectDef projectDef,
                         List sources,
                         Hashtable targets,
                         TargetInfo linkTarget)
            throws IOException,
                   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

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.